The Size class defines the size of a two-dimensional object using integer point precision.
More...
#include <size.h>
The Size class defines the size of a two-dimensional object using integer point precision.
Definition at line 16 of file size.h.
◆ Size() [1/2]
constexpr Media::Size::Size |
( |
| ) |
|
Constructs a new Size.
Definition at line 39 of file size.h.
◆ Size() [2/2]
constexpr Media::Size::Size |
( |
uint32 |
width, |
|
|
uint32 |
height |
|
) |
| |
Constructs a new Size of the specified width and height.
Definition at line 47 of file size.h.
◆ height()
constexpr uint32 Media::Size::height |
( |
| ) |
const |
|
inline |
Returns the height.
Definition at line 63 of file size.h.
◆ isNull()
constexpr bool Media::Size::isNull |
( |
| ) |
const |
|
inline |
Returns an indication whether both the width and height is 0.
Definition at line 87 of file size.h.
◆ operator==()
constexpr bool Media::Size::operator== |
( |
const Size & |
other | ) |
const |
|
inline |
Returns whether this instance equals other.
Definition at line 95 of file size.h.
◆ setHeight()
void Media::Size::setHeight |
( |
uint32 |
value | ) |
|
|
inline |
Sets the height.
Definition at line 79 of file size.h.
◆ setWidth()
void Media::Size::setWidth |
( |
uint32 |
value | ) |
|
|
inline |
Sets the width.
Definition at line 71 of file size.h.
◆ toString()
std::string Media::Size::toString |
( |
| ) |
const |
|
inline |
Returns the string representation of the current size.
Definition at line 103 of file size.h.
◆ width()
constexpr uint32 Media::Size::width |
( |
| ) |
const |
|
inline |
Returns the width.
Definition at line 55 of file size.h.
The documentation for this class was generated from the following file: