|
ZenitUI
Retained-mode C++20 UI framework
|
Four-sided Value tuple used for padding, margin and border-width. More...
#include <Style.hpp>
Public Member Functions | |
| Spacing (float all) | |
| Spacing (Value all) | |
| Spacing (Value v, Value h) | |
| Spacing (Value v, Value h, Value b) | |
| Spacing (Value t, Value r, Value b, Value l) | |
| bool | operator== (const Spacing &o) const |
| bool | operator!= (const Spacing &o) const |
Public Attributes | |
| Value | top {0.0f} |
| Value | right {0.0f} |
| Value | bottom {0.0f} |
| Value | left {0.0f} |
Four-sided Value tuple used for padding, margin and border-width.
Follows the CSS shorthand convention: 1 value sets all sides, 2 sets vertical/horizontal, 3 sets top/horizontal/bottom, 4 sets all sides individually.