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 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::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 property::ChangeSignal;
pub use property::Property;
pub use stack::StackNavigation;
pub use stack::StackSnapshot;
pub use table_selection::RowSelection;
pub use table_selection::SelectionTarget;
pub use table_selection::TableSelectionAction;
pub use table_selection::TableSelectionSnapshot;
pub use tree::TreeAction;
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.
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.
InvalidNineSlice
KeyEvent
KeyModifiers
Length
ListMetrics
MessageDialogOptions
NineSlice
Source edge widths in pixels, clockwise from the top.
Node
Percent
Property
Stores an explicit value or a lazily computed binding result.
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
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.
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 UI-thread handle that can be captured by callbacks without keeping a component alive.
WindowStatus
Native state reported by the host. Some window managers do not report minimization.

Enums§

Brush
CalendarAction
CheckState
ColorScheme
ControlAction
CrossAxisAlignment
DialInputMode
DialogCommand
DialogRole
DragAction
DragEvent
DrawerEdge
EventResult
FileDialogMode
FlexboxLayoutDirection
FlexboxLayoutWrap
FlickBoundsBehavior
FlickBoundsMovement
FlickDirection
FocusAction
FocusEvent
FocusReason
Image
ImageFit
ImageFormat
ImageHorizontalAlignment
ImageRendering
ImageTileMode
ImageVerticalAlignment
IndicatorState
InputType
KeyPhase
LayoutAlignment
MessageButtons
MessageLevel
Orientation
PopupPlacement
RangeAction
The normalized input understood by range controls, independent of the backend.
RowSelection
ScrollAction
ScrollAlignment
ScrollBarPolicy
ScrollSnapMode
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
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.

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
Resolve an eligible option without giving each option independent selection state.
indicator_state
is_button
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
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