#include <omgui/types.h>
Public Member Functions | |
bool | operator!= (const Size &s) |
Size & | operator*= (float f) |
Size & | operator+= (const Size &s) |
Size & | operator-= (const Size &s) |
Size & | operator/= (float f) |
bool | operator== (const Size &s) |
Size (int w, int h) | |
Size () | |
Public Attributes | |
int | height |
int | width |
omgui::Size::Size | ( | ) | [inline] |
Default constructor, initializes values to 0
omgui::Size::Size | ( | int | w, | |
int | h | |||
) | [inline] |
Constructs a Size object from a width and height.
w | Width | |
h | Height |
bool omgui::Size::operator!= | ( | const Size & | s | ) | [inline] |
Size& omgui::Size::operator*= | ( | float | f | ) | [inline] |
Multiply the height and width of this size by the factor f.
Adds the width and height from size s to this size's width and height.
Subtracts the width and height from size s from this size's width and height.
Size& omgui::Size::operator/= | ( | float | f | ) | [inline] |
Divide the height and width of this size by the factor f.
bool omgui::Size::operator== | ( | const Size & | s | ) | [inline] |