Skip to main content

Module widgets

Module widgets 

Source

Structs§

CalendarDate
A Gregorian calendar date with year, month (1..=12), and day (1..=31).
CanvasRect
Rectangle geometry used by CanvasScene primitives.
CanvasScene
A canvas scene is a logical drawing surface of primitives.
CanvasSurface
Immutable RGBA8 raster surface painted beneath a WidgetKind::Canvas scene.
ClipboardImage
Raw image payload from the system clipboard or screenshot buffer.
Color
RGB background color used for widget styling.
ColumnSpec
One column of a columned collection widget.
GpuSurfaceCapabilities
Host GPU surfaces that a backend can expose to an external renderer.
GridCellAttr
Attributes for a WidgetKind::DataGrid cell (Phase 2).
RichTextImage
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.
SimpleDataGridModel
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.
TextStyle
Visual and semantic style attributes for a text run in a rich text widget.
TreeItem
Hierarchical item for WidgetKind::TreeView content.
WidgetId
Opaque identifier for a widget instance managed by crate::Ui.
WidgetSpec
In-memory widget description shared between Ui and backends.
WindowedDataGridConfig
Configuration for a WindowedDataGridModel’s resident window.
WindowedDataGridHandle
A cloneable handle to one WindowedDataGridModel’s resident window.
WindowedDataGridModel
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§

AlertLevel
Alert severity for WidgetKind::AlertDialog.
CalendarFirstDayOfWeek
The first day of the week convention used in calendar views.
CalendarSelectionMode
Date selection mode supported by a calendar widget.
CanvasPrimitive
A primitive in a canvas scene.
ContainerDirection
Direction used by container widgets to stack their children.
ContainerWrap
Wrapping behavior along the flex axis for container widgets.
FileChooserMode
What a WidgetKind::FileChooserDialog lets the user pick.
GpuDegradationPolicy
Behavior requested when a Vulkan canvas cannot obtain a host surface.
GridCellEditor
Built-in editors for a WidgetKind::DataGrid cell (Phase 3).
GridCellRenderer
Built-in renderers for a WidgetKind::DataGrid cell (Phase 4).
ImageFit
How an image scales into its widget bounds.
LabelAlignment
Text alignment for WidgetKind::Label.
LabelWrap
Word-wrap behavior for WidgetKind::Label.
RowOp
An incremental operation to apply to a row widget.
TextAlignment
Text alignment for widgets and grid cells.
WidgetKind
Cross-platform widget kinds supported by the abstraction layer.
WidgetProperty
A kind-restricted widget property, shared by crate::Ui and the backends.
WindowedDelivery
Outcome of WindowedDataGridHandle::deliver_row.
WindowedDeliveryRejection
Why a delivered row was refused. Every variant is a typed, non-panicking refusal.

Constants§

ALL_KINDS
Every WidgetKind variant, in declaration order.

Traits§

DataGridModel
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 RowOp operations in place to a cell matrix.
apply_row_ops_to_items
Applies RowOp operations in place to a text item list.
apply_row_ops_to_rows
Applies RowOp operations in place to a row buffer.
diff_row_ops
Computes incremental RowOps transforming old_rows into new_rows.
diff_rows
Classifies new_rows against old_rows without touching either.
encode_rgba_to_png
Pure, dependency-free RGBA to PNG encoder.

Type Aliases§

LabelWrapMode
Convenience alias for LabelWrap.