Skip to main content

Crate xrack_runtime

Crate xrack_runtime 

Source
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::button_text;
pub use controls::combo_editable;
pub use controls::delay_millis;
pub use controls::dialog_button_action;
pub use controls::group_index;
pub use controls::group_item;
pub use controls::is_button;
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::StackNavigation;
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§

ActionKey
Identity shared by all presentations of one component instance’s Action.
Animation
CalendarState
ChangeSignal
A dependency on mutable state that is stored outside a property.
ChoiceIdentity
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.
DecimalSpinRange
Easing
EmbeddedFonts
Immutable font data shared by scenes from the same generated UI library.
FileDialogOptions
FocusContext
FocusHandle
Identity of a focus target in one component instance.
FocusRequest
FocusRequests
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.
GradientStop
ImageAnimation
Immutable, compiler-prepared frames shared by every use of an image.
ImageAnimationFrame
A composited frame and its exclusive end on the source’s timeline.
ImagePixels
InvalidNineSlice
KeyEvent
KeyModifiers
Length
ListMetrics
LoadedAnimation
LoadedFonts
Owned font data shared by the roots of an interpreted UI.
LoadedImage
LoaderItem
A weak reference to a Loader candidate. Unmounting invalidates the handle.
LocaleContext
The requested UI language shared by components on the UI thread. Until a language is selected, each catalog uses its declared default.
MediaFrame
One tightly packed, straight-alpha video image shared by scene snapshots.
MediaOptions
MediaState
MessageDialogOptions
NineSlice
Source edge widths in pixels, clockwise from the top.
Node
Percent
PointerButtons
A set of buttons accepted by a TouchArea.
PointerEvent
Property
Stores an explicit value or a lazily computed binding result.
RecordList
RecordValue
Repeater
Scene and binding caches scoped to each position in a generated repeat.
RowKey
ScaleRotateHandle
ScaleRotateSample
A cumulative scale and clockwise rotation in degrees, with a local centroid.
SceneTransition
ScrollBarRange
ScrollContext
ScrollRequest
ScrollRequests
Commands are resolved against the window’s newly prepared scene.
SliderInterval
SliderRange
SpinDecimal
A finite value carried by a decimal editor action.
SpinRange
StackSnapshot
StateTiming
StyledLink
A link’s visible text range and its application-defined destination.
StyledRun
A half-open UTF-8 byte range. Gaps use the element’s base style.
StyledText
Immutable text with inline styles. Cloning shares the underlying data.
SwipeHandle
SwipeSample
TabClose
TabMove
TableColumnOrder
Visual positions map to the declaration indices used by cells and model actions.
TableHeader
TableSelectionSnapshot
Selection in a table snapshot, including units outside the viewport.
TableSort
TextStyle
Time
A time of day with second precision.
TouchPoint
TouchPoints
Read-only, reactive rows in contact order. Cloning shares the same rows.
TreeItem
TreeSnapshot
The flattened navigation order. Row delegates are materialized separately by the viewport.
Tumbler
TumblerItems
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.
ViewportHandle
A viewport’s stable identity and reactive geometry, owned by its component instance.
WeakComponent
A handle that can be sent to a worker without keeping the component alive.
WheelEvent
A wheel movement in logical pixels, with position relative to its handler.
WindowStatus
Native state reported by the host. Some window managers do not report minimization.

Enums§

Brush
ButtonDisplay
CalendarAction
CheckState
ColorScheme
ControlAction
CrossAxisAlignment
CursorShape
DialInputMode
DialogCommand
DialogRole
DragAction
DragEvent
DrawerEdge
EventLoopError
EventResult
FileDialogMode
FlexboxLayoutDirection
FlexboxLayoutWrap
FlickBoundsBehavior
FlickBoundsMovement
FlickDirection
FocusAction
FocusEvent
FocusReason
Image
ImageAsset
The image value accepted by layout, rendering, and playback.
ImageFit
ImageFormat
ImageHorizontalAlignment
ImageIdentity
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.
ImageRendering
ImageTileMode
ImageVerticalAlignment
IndicatorState
InputType
InputValidity
The validity of a draft relative to the editor’s current submission rules.
KeyPhase
LayoutAlignment
LayoutDirection
LogLevel
Event levels used by logging statements in XRack UI code.
MediaCommand
MediaStatus
MessageButtons
MessageLevel
MouseSelectionMode
Orientation
PointerButton
PointerEventKind
PopupPlacement
RangeAction
The normalized input understood by range controls, independent of the backend.
RowSelection
ScrollAction
ScrollAlignment
ScrollBarPolicy
ScrollSnapMode
SelectionGesture
SelectionTarget
SpinAction
StackNavigation
StandardButtonKind
StyledTextError
SwipeSide
TableSelectionAction
TextCommand
A programmatic edit using the same selection, validation and history as keyboard input.
TextHorizontalAlignment
TextOverflow
TextVerticalAlignment
TextWrap
TreeAction
TreeCommand
Commands address the model’s stable non-negative business keys.
TreeSelectionAction
Value
ViewportMotion
WindowCommand
An ordered request from a component to the host of its native window.

Traits§

Component
The backend-independent interface implemented by generated UI components.
MediaSession

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