Skip to main content

Module framework

Module framework 

Source
Expand description

Standalone UI framework — widget tree, event system, theming, and layout.

Designed to be graphics-backend-agnostic: outputs a DrawList of DrawCommand primitives that the renderer can consume.

§Architecture

UiContext → UiTree → UiNode hierarchy → layout → DrawList
                         ↑
            Widget impls (Button, Label, Slider, etc.)

Structs§

Button
Checkbox
Color
DrawList
Output draw list for one frame of UI.
Dropdown
FlexLayout
Label
Panel
ProgressBar
Rect
ScrollView
Slider
TextInput
Theme
Toast
ToastManager
Manages a toast notification stack.
TooltipManager
UiContext
The top-level UI context: manages widgets, events, and layout.
UiInput
Input snapshot for one UI tick.
WidgetId
Stable identifier for a UI widget.
WidgetState

Enums§

AlignItems
DrawCommand
A single draw command for the renderer.
FlexDirection
JustifyContent
SizeConstraint
TextAlign
ToastKind
UiEvent

Traits§

Widget
A UI widget that can draw itself and handle input.