ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
ZenitUI::Spacing Struct Reference

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}

Detailed Description

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.

Examples
14_desktop_workspace/main.cpp.

The documentation for this struct was generated from the following file: