|
TachyonUI 0.1.0
High-performance UI for building tools.
|
Flexbox and grid layout, constraints and units. More...
Classes | |
| struct | tachyon::CssPx |
| A size in CSS px. More... | |
| struct | tachyon::Pixels |
| A size in device pixels, used as is (not scaled by the UI scale). More... | |
| 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... | |
| struct | tachyon::LayoutOverride::[struct].grid |
| Grid item overrides; Default tracks and start < 0 keep the style's values. More... | |
| struct | tachyon::LayoutHelpers |
| struct | tachyon::LayoutGrid |
| struct | tachyon::LayoutFlexbox |
| class | tachyon::LayoutEngine |
| Computes element sizes and positions from styles, content and constraints, in four passes run after construction: More... | |
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. | |
Flexbox and grid layout, constraints and units.
Sizes are CSS px scaled by the UI scale; see Return values, content and units.
|
strong |
#include <gui_core/layout/gui_constraints.h>
What an anchored element does when its placement would leave the work area.
| Enumerator | |
|---|---|
| None | Keep the placement as given. |
| Flip | Flip placement, then clamp to workArea. |
| FlipAvoidTarget | Flip, then shrink to avoid overlapping the anchor target. |
|
strong |
#include <gui_core/layout/gui_constraints.h>
Default defers to the element's style.
| Enumerator | |
|---|---|
| Default | |
| False | |
| True | |
| AnchorPlacement tachyon::FlipHorizontal | ( | AnchorPlacement | p | ) |
#include <gui_core/layout/gui_constraints.h>
Mirrors the horizontal part of a placement (e.g. right-of becomes left-of); vertical is kept.
| AnchorPlacement tachyon::FlipVertical | ( | AnchorPlacement | p | ) |
#include <gui_core/layout/gui_constraints.h>
Mirrors the vertical part of a placement (e.g. below becomes above); horizontal is kept.