TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
gui_constraints.h File Reference

Go to the source code of this file.

Classes

struct  tachyon::SizeConstraintAxis
 Per-axis size constraint: an explicit size, or a min / max clamp on the content-driven size. More...
struct  tachyon::PositionConstraintAxis
 Where an element goes on one axis: in the parent's flow (Relative, Centered, Sticky) or out of it (Absolute, Fixed, Anchored). More...
struct  tachyon::FlexOverride
 kDefault = use style value, >= 0 = override. More...
struct  tachyon::LayoutOverride
 Per-element overrides of style layout properties. More...

Namespaces

namespace  tachyon

Macros

#define TACHYON_LO_BUILDER(name, body)

Enumerations

enum class  tachyon::AutoFlipMode : uint8_t { tachyon::AutoFlipMode::None = 0 , tachyon::AutoFlipMode::Flip = 1 , tachyon::AutoFlipMode::FlipAvoidTarget = 2 }
 What an anchored element does when its placement would leave the work area. More...
enum class  tachyon::TriState : uint8_t { tachyon::TriState::Default = 0 , tachyon::TriState::False = 1 , tachyon::TriState::True = 2 }
 Default defers to the element's style. More...

Functions

AnchorPlacement tachyon::FlipHorizontal (AnchorPlacement p)
 Mirrors the horizontal part of a placement (e.g. right-of becomes left-of); vertical is kept.
AnchorPlacement tachyon::FlipVertical (AnchorPlacement p)
 Mirrors the vertical part of a placement (e.g. below becomes above); horizontal is kept.

Macro Definition Documentation

◆ TACHYON_LO_BUILDER

#define TACHYON_LO_BUILDER ( name,
body )
Value:
LayoutOverride& name & { body return *this; } \
LayoutOverride&& name && { body return std::move(*this); }