Skip to main content

Module context

Module context 

Source
Expand description

UI context, container builder, and widget rendering. Context — the per-frame handle threaded into every render closure.

This file defines the Context struct itself plus the dispatching facade that imports widget impl blocks from the widgets_display, widgets_input, widgets_interactive, and widgets_viz sub-modules. See crate root for the entry-point crate::run / crate::frame functions and docs/ARCHITECTURE.md for the 5-layer model that organizes which method lives where.

Structs§

Bar
A single bar in a styled bar chart.
BarChartConfig
Configuration for bar chart rendering.
BarGroup
A group of bars rendered together (for grouped bar charts).
Breadcrumb
Breadcrumb navigation bar builder. Auto-renders on Drop.
CanvasContext
Drawing context for the canvas widget.
CodeBlock
Syntax-highlighted code block builder. Auto-renders on Drop.
ContainerBuilder
Fluent builder for configuring containers before calling .col() or .row().
Context
The main rendering context passed to your closure each frame.
Gauge
Block-fill gauge builder. Auto-renders on Drop.
GutterOpts
Options for Context::scrollable_with_gutter.
LineGauge
Single-line gauge builder. Auto-renders on Drop.
Memo
Handle to a memoized value created by Context::use_memo.
ModalOptions
Options for Context::modal_with.
Response
Interaction response returned by all widgets.
State
Handle to state created by use_state(). Access via .get(ui) / .get_mut(ui).
TaskHandleasync
Opaque handle returned by Context::spawn.
TreemapItem
A single item in a treemap.

Enums§

Anchor
Compass-rose anchor for Context::overlay_at / Context::modal_at.
BarDirection
Direction for bar chart rendering.

Traits§

Widget
Trait for creating custom widgets.