Per-side values of the box model (margin, padding, border widths).
More...
#include <gui_core/style/gui_style.h>
|
| constexpr | BoxEdges ()=default |
| constexpr | BoxEdges (uint16_t all) |
| | All four edges the same.
|
| constexpr | BoxEdges (uint16_t vertical, uint16_t horizontal) |
| | Top/bottom and left/right, like the two-value CSS shorthand.
|
| constexpr | BoxEdges (uint16_t t, uint16_t r, uint16_t b, uint16_t l) |
| | In CSS order: top, right, bottom, left.
|
| constexpr uint16_t | Horizontal () const |
| | left + right
|
| constexpr uint16_t | Vertical () const |
| | top + bottom
|
| constexpr bool | IsZero () const |
| | All edges are 0.
|
| bool | operator== (const BoxEdges &) const noexcept=default |
Per-side values of the box model (margin, padding, border widths).
◆ BoxEdges() [1/4]
| tachyon::BoxEdges::BoxEdges |
( |
| ) |
|
|
constexprdefault |
◆ BoxEdges() [2/4]
| tachyon::BoxEdges::BoxEdges |
( |
uint16_t | all | ) |
|
|
inlineconstexpr |
◆ BoxEdges() [3/4]
| tachyon::BoxEdges::BoxEdges |
( |
uint16_t | vertical, |
|
|
uint16_t | horizontal ) |
|
inlineconstexpr |
Top/bottom and left/right, like the two-value CSS shorthand.
◆ BoxEdges() [4/4]
| tachyon::BoxEdges::BoxEdges |
( |
uint16_t | t, |
|
|
uint16_t | r, |
|
|
uint16_t | b, |
|
|
uint16_t | l ) |
|
inlineconstexpr |
In CSS order: top, right, bottom, left.
◆ Horizontal()
| uint16_t tachyon::BoxEdges::Horizontal |
( |
| ) |
const |
|
inlineconstexpr |
◆ Vertical()
| uint16_t tachyon::BoxEdges::Vertical |
( |
| ) |
const |
|
inlineconstexpr |
◆ IsZero()
| bool tachyon::BoxEdges::IsZero |
( |
| ) |
const |
|
inlineconstexpr |
◆ operator==()
| bool tachyon::BoxEdges::operator== |
( |
const BoxEdges & | | ) |
const |
|
defaultnoexcept |
◆ top
| uint16_t tachyon::BoxEdges::top = 0 |
◆ right
| uint16_t tachyon::BoxEdges::right = 0 |
◆ bottom
| uint16_t tachyon::BoxEdges::bottom = 0 |
◆ left
| uint16_t tachyon::BoxEdges::left = 0 |
The documentation for this struct was generated from the following file: