Structs§
- Calendar
Date - A Gregorian calendar date with year, month (1..=12), and day (1..=31).
- Canvas
Rect - Rectangle geometry used by
CanvasSceneprimitives. - Canvas
Scene - A canvas scene is a logical drawing surface of primitives.
- Canvas
Surface - Immutable RGBA8 raster surface painted beneath a
WidgetKind::Canvasscene. - Clipboard
Image - Raw image payload from the system clipboard or screenshot buffer.
- Color
- RGB background color used for widget styling.
- Column
Spec - One column of a columned collection widget.
- GpuSurface
Capabilities - Host GPU surfaces that a backend can expose to an external renderer.
- Grid
Cell Attr - Attributes for a
WidgetKind::DataGridcell (Phase 2). - Rich
Text Image - An inline image rendered in-flow within a rich text widget.
- RowDelta
- What a keyed row update changed.
- RowKey
- Application-owned row identity for keyed collection updates.
- RowSet
- One keyed row: identity plus the cells the widget renders.
- Simple
Data Grid Model - A simple in-memory data grid model used for compatibility with
WidgetSpec::data_grid_rows. - TextRun
- A styled run of text spanning a byte range within a rich text widget.
- Text
Style - Visual and semantic style attributes for a text run in a rich text widget.
- Tree
Item - Hierarchical item for
WidgetKind::TreeViewcontent. - Widget
Id - Opaque identifier for a widget instance managed by
crate::Ui. - Widget
Spec - In-memory widget description shared between
Uiand backends. - Windowed
Data Grid Config - Configuration for a
WindowedDataGridModel’s resident window. - Windowed
Data Grid Handle - A cloneable handle to one
WindowedDataGridModel’s resident window. - Windowed
Data Grid Model - A lazily-loaded, bounded resident row window over an arbitrary source
(T1, contract in
docs/design/datagrid-model-tiers.md§4.2/§5/§8).
Enums§
- Alert
Level - Alert severity for
WidgetKind::AlertDialog. - Calendar
First DayOf Week - The first day of the week convention used in calendar views.
- Calendar
Selection Mode - Date selection mode supported by a calendar widget.
- Canvas
Primitive - A primitive in a canvas scene.
- Container
Direction - Direction used by container widgets to stack their children.
- Container
Wrap - Wrapping behavior along the flex axis for container widgets.
- File
Chooser Mode - What a
WidgetKind::FileChooserDialoglets the user pick. - GpuDegradation
Policy - Behavior requested when a Vulkan canvas cannot obtain a host surface.
- Grid
Cell Editor - Built-in editors for a
WidgetKind::DataGridcell (Phase 3). - Grid
Cell Renderer - Built-in renderers for a
WidgetKind::DataGridcell (Phase 4). - Image
Fit - How an image scales into its widget bounds.
- Label
Alignment - Text alignment for
WidgetKind::Label. - Label
Wrap - Word-wrap behavior for
WidgetKind::Label. - RowOp
- An incremental operation to apply to a row widget.
- Text
Alignment - Text alignment for widgets and grid cells.
- Widget
Kind - Cross-platform widget kinds supported by the abstraction layer.
- Widget
Property - A kind-restricted widget property, shared by
crate::Uiand the backends. - Windowed
Delivery - Outcome of
WindowedDataGridHandle::deliver_row. - Windowed
Delivery Rejection - Why a delivered row was refused. Every variant is a typed, non-panicking refusal.
Constants§
- ALL_
KINDS - Every
WidgetKindvariant, in declaration order.
Traits§
- Data
Grid Model - Virtual data model for
WidgetKind::DataGrid(Phase 1-5 implementation).
Functions§
- abstractable_
widget_ types - Returns the set of widgets intended to be portable across backends.
- apply_
row_ ops_ to_ cells - Applies
RowOpoperations in place to a cell matrix. - apply_
row_ ops_ to_ items - Applies
RowOpoperations in place to a text item list. - apply_
row_ ops_ to_ rows - Applies
RowOpoperations in place to a row buffer. - diff_
row_ ops - Computes incremental
RowOps transformingold_rowsintonew_rows. - diff_
rows - Classifies
new_rowsagainstold_rowswithout touching either. - encode_
rgba_ to_ png - Pure, dependency-free RGBA to PNG encoder.
Type Aliases§
- Label
Wrap Mode - Convenience alias for
LabelWrap.