Specifies the margins for a group, in units of virtual resolution.
More...
#include <flatui.h>
Specifies the margins for a group, in units of virtual resolution.
|
| Margin (float m) |
| Create a Margin with all four sides of equal size. More...
|
|
| Margin (float x, float y) |
| Create a Margin with the left and right sizes of x , and top and bottom sizes of y . More...
|
|
| Margin (float left, float top, float right, float bottom) |
| Creates a margin specifying all four sides individually. More...
|
|
|
mathfu::vec4_packed | borders |
| A vector of four floats containing the values for the four sides of the margin. More...
|
|
flatui::Margin::Margin |
( |
float |
m | ) |
|
|
inline |
Create a Margin with all four sides of equal size.
- Parameters
-
[in] | m | A float size to be used as the margin on all sides. |
flatui::Margin::Margin |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
inline |
Create a Margin with the left and right sizes of x
, and top and bottom sizes of y
.
- Parameters
-
[in] | x | A float size to be used as the margin for the left and right sides. |
[in] | y | A float size to be used as the margin for the right and left sides. |
flatui::Margin::Margin |
( |
float |
left, |
|
|
float |
top, |
|
|
float |
right, |
|
|
float |
bottom |
|
) |
| |
|
inline |
Creates a margin specifying all four sides individually.
- Parameters
-
[in] | left | A float size to be used as the margin for the left side. |
[in] | top | A float size to be used as the margin for the top side. |
[in] | right | A float size to be used as the margin for the right side. |
[in] | bottom | A float size to be used as the margin for the bottom side. |
A vector of four floats containing the values for the four sides of the margin.
The internal layout of the margin is: left
, top
, right
, bottom
.
The documentation for this struct was generated from the following file: