Public Member Functions | |
| operator GuiSize () const | |
| bool | operator!= (const Size &s) const |
| Size & | operator*= (int f) |
| Size & | operator+= (const Size &s) |
| Size & | operator-= (const Size &s) |
| Size & | operator/= (int f) |
| bool | operator== (const Size &s) const |
| Size (const GuiSize &) | |
| Size (int w, int h) | |
| Size () | |
Public Attributes | |
| int | height |
| int | width |
| ifm::Size::Size | ( | ) |
Default constructor, initializes values to 0.
| ifm::Size::Size | ( | int | w, | |
| int | h | |||
| ) |
Constructs a Size object from a width and height.
| w | Width | |
| h | Height |
| ifm::Size::Size | ( | const GuiSize & | ) |
Allow implicit conversions for compatability with gui toolkits.
| ifm::Size::operator GuiSize | ( | ) | const |
Allow implicit conversions for compatability with gui toolkits.
| bool ifm::Size::operator!= | ( | const Size & | s | ) | const |
| Size & ifm::Size::operator*= | ( | int | f | ) |
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 & ifm::Size::operator/= | ( | int | f | ) |
Divide the height and width of this size by the factor f.
| bool ifm::Size::operator== | ( | const Size & | s | ) | const |
| int ifm::Size::width |