TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::BoxCorners Struct Reference

Per-corner values (border radius). More...

#include <gui_core/style/gui_style.h>

Public Member Functions

constexpr BoxCorners ()=default
constexpr BoxCorners (uint16_t all)
 All four corners the same.
constexpr BoxCorners (uint16_t tl, uint16_t tr, uint16_t br, uint16_t bl)
 In CSS order: top-left, top-right, bottom-right, bottom-left.
constexpr bool IsZero () const
 All corners are 0 (square).
bool operator== (const BoxCorners &) const noexcept=default

Public Attributes

uint16_t topLeft = 0
uint16_t topRight = 0
uint16_t bottomRight = 0
uint16_t bottomLeft = 0

Detailed Description

Per-corner values (border radius).

Constructor & Destructor Documentation

◆ BoxCorners() [1/3]

tachyon::BoxCorners::BoxCorners ( )
constexprdefault

◆ BoxCorners() [2/3]

tachyon::BoxCorners::BoxCorners ( uint16_t all)
inlineconstexpr

All four corners the same.

◆ BoxCorners() [3/3]

tachyon::BoxCorners::BoxCorners ( uint16_t tl,
uint16_t tr,
uint16_t br,
uint16_t bl )
inlineconstexpr

In CSS order: top-left, top-right, bottom-right, bottom-left.

Member Function Documentation

◆ IsZero()

bool tachyon::BoxCorners::IsZero ( ) const
inlineconstexpr

All corners are 0 (square).

◆ operator==()

bool tachyon::BoxCorners::operator== ( const BoxCorners & ) const
defaultnoexcept

Member Data Documentation

◆ topLeft

uint16_t tachyon::BoxCorners::topLeft = 0

◆ topRight

uint16_t tachyon::BoxCorners::topRight = 0

◆ bottomRight

uint16_t tachyon::BoxCorners::bottomRight = 0

◆ bottomLeft

uint16_t tachyon::BoxCorners::bottomLeft = 0

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