Class to represent a two-dimensional size.
More...
#include <size.h>
|
int | width |
| Width of size object.
|
|
int | height |
| Height of size object.
|
|
Class to represent a two-dimensional size.
Construct an uninitialised size object.
The width and height have undefined values
tbx::Size::Size |
( |
int |
w, |
|
|
int |
h |
|
) |
| |
|
inline |
Construct a size object with the given dimensions.
- Parameters
-
w | width for size object |
h | height for size object |
tbx::Size::Size |
( |
const Size & |
other | ) |
|
|
inline |
Copy constructor.
- Parameters
-
bool tbx::Size::operator!= |
( |
const Size & |
other | ) |
const |
|
inline |
Check if two size have a different width or height.
- Parameters
-
other | Size to compare with |
- Returns
- true if sizes do not match
Size& tbx::Size::operator= |
( |
const Size & |
other | ) |
|
|
inline |
Assign size to be equal to another.
- Parameters
-
- Returns
- *this
bool tbx::Size::operator== |
( |
const Size & |
other | ) |
const |
|
inline |
Check if two size have the same values.
- Parameters
-
other | Size to compare with |
- Returns
- true if sizes match
The documentation for this class was generated from the following file: