The Margin class defines the four margins of a rectangle.
More...
#include <margin.h>
The Margin class defines the four margins of a rectangle.
Definition at line 16 of file margin.h.
◆ Margin()
constexpr Media::Margin::Margin |
( |
uint32 |
top = 0 , |
|
|
uint32 |
left = 0 , |
|
|
uint32 |
bottom = 0 , |
|
|
uint32 |
right = 0 |
|
) |
| |
◆ bottom()
constexpr uint32 Media::Margin::bottom |
( |
| ) |
const |
|
inline |
Returns the bottom margin.
Definition at line 83 of file margin.h.
◆ isNull()
constexpr bool Media::Margin::isNull |
( |
| ) |
const |
|
inline |
Returns true if all margins are is 0; otherwise returns false;.
Definition at line 115 of file margin.h.
◆ left()
constexpr uint32 Media::Margin::left |
( |
| ) |
const |
|
inline |
Returns the left margin.
Definition at line 67 of file margin.h.
◆ right()
constexpr uint32 Media::Margin::right |
( |
| ) |
const |
|
inline |
Returns the right margin.
Definition at line 99 of file margin.h.
◆ setBottom()
void Media::Margin::setBottom |
( |
uint32 |
bottom | ) |
|
|
inline |
Sets the bottom margin to bottom.
Definition at line 91 of file margin.h.
◆ setLeft()
void Media::Margin::setLeft |
( |
uint32 |
left | ) |
|
|
inline |
Sets the left margin to left.
Definition at line 75 of file margin.h.
◆ setRight()
void Media::Margin::setRight |
( |
uint32 |
right | ) |
|
|
inline |
Sets the right margin to right.
Definition at line 107 of file margin.h.
◆ setTop()
void Media::Margin::setTop |
( |
uint32 |
top | ) |
|
|
inline |
Sets the top margin to top.
Definition at line 59 of file margin.h.
◆ top()
constexpr uint32 Media::Margin::top |
( |
| ) |
const |
|
inline |
Returns the top margin.
Definition at line 51 of file margin.h.
◆ toString()
std::string Media::Margin::toString |
( |
| ) |
const |
|
inline |
Returns a string representation of the margin.
Definition at line 123 of file margin.h.
The documentation for this class was generated from the following file: