Skip to main content

Module ui

Module ui 

Source
Expand description

Vector Holo UI & Desktop Studio Widget System (ui.rs)

Re-exports the declarative vector UI primitives and layout solver from etalon_render::ui_canvas.

Modules§

ui_layout

Structs§

ComputedUiRect
Resolved screen-space rectangle and scissor clip rectangle for a layout node.
Edges
NodeWire
Cubic bezier connection wire between two node graph pins.
Rect2D
2D bounding rectangle.
UiLayoutNode
Single node in the zero-heap intrusive UI layout tree.
UiLayoutStyle
Layout style properties for a UiLayoutNode (supports Flexbox + 2D CSS-Grid-lite + scissor clipping).
UiWidget
A single UI widget element.
ZeroHeapUiCanvas
Fixed-capacity declarative UI canvas (upgraded to 512 Flexbox/Grid widgets + MSDF text runs).
ZeroHeapUiLayoutTree
Zero-heap two-pass (measure + arrange) Flexbox & 2D Grid layout solver.

Enums§

AlignItems
FlexDirection
JustifyContent
SizeRule
WidgetKind
Interactive widget types.

Constants§

COLOR_ACCENT_CYAN
COLOR_GLASS_BORDER
COLOR_GLASS_PANEL
Standard glassmorphic color presets.
COLOR_TEXT_PRIMARY
MAX_UI_LAYOUT_NODES
Maximum layout nodes supported in a single zero-heap UI layout tree.
MAX_UI_TEXT_QUADS
Maximum shaped MSDF text quads stored directly in a ZeroHeapUiCanvas.
MAX_UI_WIDGETS
Maximum interactive widgets in a single local viewport frame (upgraded to 512 for Flexbox/Grid layout).
MAX_UI_WIRES
Maximum connection wires in a node graph.
NO_UI_NODE

Type Aliases§

Color4f
RGBA normalized color [r, g, b, a].
Margin
Padding
UiLayoutTree
Type alias so callers can refer to UiLayoutTree or ZeroHeapUiLayoutTree interchangeably.