A struct that holds the padding that a parent widget may impose on a child widget. More...
#include <padding.hpp>
Public Member Functions | |
| Padding (uisize_t size) | |
| Construct the padding with all sides equal. | |
| Padding (uisize_t left_right, uisize_t top_bottom) | |
| Construct the padding with parallel sides equal. | |
| Padding (uisize_t left, uisize_t top, uisize_t right, uisize_t bottom) | |
| Construct the padding with all sides specified individually. | |
Public Attributes | |
| uisize_t | left |
| The left padding. | |
| uisize_t | top |
| The top padding. | |
| uisize_t | right |
| The right padding. | |
| uisize_t | bottom |
| The bottom padding. | |
A struct that holds the padding that a parent widget may impose on a child widget.
| ui::Padding::Padding | ( | uisize_t | size | ) |
Construct the padding with all sides equal.
| size | The number of pixels to pad on the left, top, right and bottom. |
Construct the padding with parallel sides equal.
| left_right | The number of pixels to pad on the left and right. |
| top_bottom | The number of pixels to pad on the top and bottom. |
Construct the padding with all sides specified individually.
| left | The number of pixels to pad on the left. |
| top | The number of pixels to pad on the top. |
| right | The number of pixels to pad on the right. |
| bottom | The number of pixels to pad on the bottom. |