Expand description
Renderer-independent scene snapshots produced by generated components.
Re-exports§
pub use media::MediaCommand;pub use media::MediaFrame;pub use media::MediaOptions;pub use media::MediaSession;pub use media::MediaState;pub use media::MediaStatus;pub use media::register_media_backend;pub use record::RecordList;pub use record::RecordValue;pub use controls::ActionKey;pub use controls::ControlAction;pub use controls::DialogCommand;pub use controls::DialogRole;pub use controls::PopupPlacement;pub use controls::SpinAction;pub use controls::SpinRange;pub use controls::StandardButtonKind;pub use controls::SwipeSide;pub use controls::TabClose;pub use controls::TabMove;pub use controls::TableColumnOrder;pub use controls::TableHeader;pub use controls::TableSort;pub use controls::combo_editable;pub use controls::delay_millis;pub use controls::group_index;pub use controls::group_item;pub use controls::is_modal_overlay;pub use controls::is_spin_box;pub use controls::is_window_overlay;pub use controls::page_indicator_count;pub use controls::page_indicator_index;pub use controls::resizable_table_column;pub use controls::search_suggestion;pub use controls::search_suggestions;pub use controls::spin_editable;pub use controls::spin_text;pub use controls::spin_value_after;pub use controls::text_input_value;pub use focus::FocusAction;pub use focus::FocusContext;pub use focus::FocusEvent;pub use focus::FocusHandle;pub use focus::FocusReason;pub use focus::FocusRequest;pub use focus::FocusRequests;pub use focus::TextCommand;pub use hover::CursorShape;pub use native_dialog::FileDialogMode;pub use native_dialog::FileDialogOptions;pub use native_dialog::MessageButtons;pub use native_dialog::MessageDialogOptions;pub use native_dialog::MessageLevel;pub use pointer::PointerButton;pub use pointer::PointerButtons;pub use pointer::PointerEvent;pub use pointer::PointerEventKind;pub use pointer::TouchPoint;pub use pointer::TouchPoints;pub use property::ChangeSignal;pub use property::Property;pub use range::DialInputMode;pub use range::IndicatorState;pub use range::RangeAction;pub use range::ScrollBarRange;pub use range::ScrollSnapMode;pub use range::SliderInterval;pub use range::SliderRange;pub use range::indicator_state;pub use range::progress_value;pub use repeat::Repeater;pub use stack::StackSnapshot;pub use table_selection::RowSelection;pub use table_selection::SelectionGesture;pub use table_selection::SelectionTarget;pub use table_selection::TableSelectionAction;pub use table_selection::TableSelectionSnapshot;pub use tree::TreeAction;pub use tree::TreeCommand;pub use tree::TreeItem;pub use tree::TreeSelectionAction;pub use tree::TreeSnapshot;
Structs§
- Action
Key - Identity shared by all presentations of one component instance’s Action.
- Animation
- Calendar
State - Change
Signal - A dependency on mutable state that is stored outside a property.
- Choice
Identity - A pressed or projected option must still identify the same record and business value.
- Color
- Date
- A Gregorian civil date. Validation is independent of time zones and clocks.
- Decimal
Spin Range - Easing
- Embedded
Fonts - Immutable font data shared by scenes from the same generated UI library.
- File
Dialog Options - Focus
Context - Focus
Handle - Identity of a focus target in one component instance.
- Focus
Request - Focus
Requests - A window’s commands, drained against the scene prepared after the callback.
- Font
- A font selection expressed in logical pixels and CSS-style font weight.
- Gradient
Stop - Image
Animation - Immutable, compiler-prepared frames shared by every use of an image.
- Image
Animation Frame - A composited frame and its exclusive end on the source’s timeline.
- Image
Pixels - Invalid
Nine Slice - KeyEvent
- KeyModifiers
- Length
- List
Metrics - Loaded
Animation - Loaded
Fonts - Owned font data shared by the roots of an interpreted UI.
- Loaded
Image - Loader
Item - A weak reference to a Loader candidate. Unmounting invalidates the handle.
- Locale
Context - The requested UI language shared by components on the UI thread. Until a language is selected, each catalog uses its declared default.
- Media
Frame - One tightly packed, straight-alpha video image shared by scene snapshots.
- Media
Options - Media
State - Message
Dialog Options - Nine
Slice - Source edge widths in pixels, clockwise from the top.
- Node
- Percent
- Pointer
Buttons - A set of buttons accepted by a TouchArea.
- Pointer
Event - Property
- Stores an explicit value or a lazily computed binding result.
- Record
List - Record
Value - Repeater
- Scene and binding caches scoped to each position in a generated repeat.
- RowKey
- Scale
Rotate Handle - Scale
Rotate Sample - A cumulative scale and clockwise rotation in degrees, with a local centroid.
- Scene
Transition - Scroll
BarRange - Scroll
Context - Scroll
Request - Scroll
Requests - Commands are resolved against the window’s newly prepared scene.
- Slider
Interval - Slider
Range - Spin
Decimal - A finite value carried by a decimal editor action.
- Spin
Range - Stack
Snapshot - State
Timing - Styled
Link - A link’s visible text range and its application-defined destination.
- Styled
Run - A half-open UTF-8 byte range. Gaps use the element’s base style.
- Styled
Text - Immutable text with inline styles. Cloning shares the underlying data.
- Swipe
Handle - Swipe
Sample - TabClose
- TabMove
- Table
Column Order - Visual positions map to the declaration indices used by cells and model actions.
- Table
Header - Table
Selection Snapshot - Selection in a table snapshot, including units outside the viewport.
- Table
Sort - Text
Style - Time
- A time of day with second precision.
- Touch
Point - Touch
Points - Read-only, reactive rows in contact order. Cloning shares the same rows.
- Tree
Item - Tree
Snapshot - The flattened navigation order. Row delegates are materialized separately by the viewport.
- Tumbler
- Tumbler
Items - A live model handle. Layout reads only the rows that intersect the wheel.
- VecModel
- A shared UI-thread model with separately tracked row and length reads. Cloning the handle shares its data and subscriptions.
- Viewport
Handle - A viewport’s stable identity and reactive geometry, owned by its component instance.
- Weak
Component - A handle that can be sent to a worker without keeping the component alive.
- Wheel
Event - A wheel movement in logical pixels, with position relative to its handler.
- Window
Status - Native state reported by the host. Some window managers do not report minimization.
Enums§
- Accessible
Live - Priority of accessibility announcements for changes to a text label.
- Brush
- Button
Display - Calendar
Action - Check
State - Color
Scheme - Control
Action - Cross
Axis Alignment - Cursor
Shape - Dial
Input Mode - Dialog
Command - Dialog
Role - Drag
Action - Drag
Event - Drawer
Edge - Event
Loop Error - Event
Result - File
Dialog Mode - Flexbox
Layout Direction - Flexbox
Layout Wrap - Flick
Bounds Behavior - Flick
Bounds Movement - Flick
Direction - Focus
Action - Focus
Event - Focus
Reason - Image
- Image
Asset - The image value accepted by layout, rendering, and playback.
- Image
Fit - Image
Format - Image
Horizontal Alignment - Image
Identity - Identity for a cache entry. Loaded assets can outlive their original scene without making a later allocation at the same address hit an old texture.
- Image
Rendering - Image
Tile Mode - Image
Vertical Alignment - Indicator
State - Input
Purpose - Native autofill hint for a single-line text editor.
- Input
Type - Input
Validity - The validity of a draft relative to the editor’s current submission rules.
- KeyPhase
- Keyboard
Capitalization - Native keyboard capitalization requested by a text editor.
- Layout
Alignment - Layout
Direction - LogLevel
- Event levels used by logging statements in XRack UI code.
- Media
Command - Media
Status - Message
Buttons - Message
Level - Mouse
Selection Mode - Orientation
- Pointer
Button - Pointer
Event Kind - Popup
Placement - Range
Action - The normalized input understood by range controls, independent of the backend.
- Return
Key - RowSelection
- Scroll
Action - Scroll
Alignment - Scroll
BarPolicy - Scroll
Snap Mode - Selection
Gesture - Selection
Target - Spin
Action - Stack
Navigation - Standard
Button Kind - Styled
Text Error - Swipe
Side - Table
Selection Action - Text
Command - A programmatic edit using the same selection, validation and history as keyboard input.
- Text
Horizontal Alignment - Text
Overflow - Text
Vertical Alignment - Text
Wrap - Tree
Action - Tree
Command - Commands address the model’s stable non-negative business keys.
- Tree
Selection Action - Value
- Viewport
Motion - Window
Command - An ordered request from a component to the host of its native window.
Traits§
- Component
- The backend-independent interface implemented by generated UI components.
- Media
Session
Functions§
- button_
text - choice_
enabled - choice_
identity - combo_
count - combo_
editable - combo_
find_ enabled_ label - Search enabled rows from a model index, wrapping to the beginning once.
- combo_
find_ label - combo_
index - combo_
label - combo_
labels - combo_
row_ index - combo_
row_ key - combo_
text - decimal_
separator - decimal_
spin_ value_ after - delay_
millis - dialog_
button_ action - editable_
table_ cell - group_
index - group_
item - indicator_
state - invoke_
from_ event_ loop - Schedule a closure on the UI event loop from any thread. A successful return means the closure was queued. The queue holds at most 256 callbacks on the desktop host. Pending callbacks are discarded when the loop exits.
- is_
button - is_
calendar_ control - is_
drag_ area - is_
modal_ overlay - is_
multiline_ text_ input - is_
spin_ box - is_
text_ input - is_
toggle - is_
window_ overlay - page_
indicator_ count - page_
indicator_ index - progress_
value - register_
media_ backend - resizable_
table_ column - search_
suggestion - search_
suggestions - Suggestions can be tagged with the query that produced them.
- spin_
editable - spin_
text - spin_
text_ is_ valid - spin_
value_ after - text_
input_ value