Expand description
Common widgets.
Modules
- The types required to implement a
Widget
.
Structs
- This
Controller
widget responds toLifeCycle::WidgetAdded
event with the provided closure. Pass this and a child widget toControllerHost
to respond to the event when the child widget is added to the widget tree. This is also available, for convenience, as anon_added
method viaWidgetExt
. - A widget that aligns its child.
- A widget that preserves the aspect ratio given to it.
- A button with a text label.
- A checkbox that toggles a
bool
. - A clickable
Controller
widget. Pass this and a child widget to aControllerHost
to make the child interactive. More conveniently, this is available as anon_click
method viaWidgetExt
. - A widget exposing a rectangular view into its child, which can be used as a building block for widgets that scroll their child.
- A widget that provides simple visual styling options to a child.
- A
Widget
that manages a child and aController
. - A default implementation of
ScopePolicy
that takes a function and a transfer. - A widget wrapper which disables the child widget if the provided closure return true.
- A widget that switches between two possible child views.
- A widget that accepts a closure to update the environment for its child.
- A container with either horizontal or vertical layout.
- Optional parameters for an item in a
Flex
container (row or column). - A wrapper that adds an identity to an otherwise anonymous widget.
- A widget that renders a bitmap Image.
- A widget that sizes its child to the child’s maximum intrinsic width.
- A label that displays static or dynamic text.
- A
ScopeTransfer
that uses a Lens to synchronise between a large internal state and a small input. - A wrapper for its widget subtree to have access to a part of its parent’s data.
- A list widget for a variable-size collection of items.
- A widget that switches between two possible child views, for
Data
that isOption<T>
. - A widget that just adds padding around its child.
- A widget that only handles painting.
- A progress bar, displaying a numeric progress value.
- A single radio button
- A group of radio buttons
- A range slider, allowing interactive update of two numeric values .
- A widget that displays text data.
- A widget that allows encapsulation of application state.
- A container that scrolls its contents.
- A widget with predefined size.
- A slider, allowing interactive update of a numeric value.
- An animated spinner widget for showing a loading state.
- A container containing two other widgets, splitting the area either horizontally or vertically.
- A stepper widget for step-wise increasing and decreasing a value.
- Svg
svg
A widget that renders a SVG - SvgData
svg
Stored parsed SVG tree. - A switch that toggles a
bool
. - Information about a tab that may be used by the TabPolicy to drive the visual presentation and behaviour of its label
- A tabs widget.
- This is the current state of the tabs widget as a whole. This expands the input data to include a policy that determines how tabs are derived, and the index of the currently selected tab
- A widget that allows user text input.
- A
TextBox
that uses aFormatter
to handle formatting and validation of its data. - A widget that switches dynamically between multiple children.
- Represents the size and position of a rectangular “viewport” into a larger area.
- A unique identifier for a single
Widget
. - A container that stacks its children on top of each other.
Enums
- An axis in visual space.
- Something that can be used as the background for a widget.
- The alignment of the widgets on the container’s cross (or minor) axis.
- Strategies for inscribing a rectangle inside another rectangle.
- The shape of the slider knobs.
- The text for a
Label
. - Options for handling lines that are too wide for the label.
- Arrangement of children on the main axis.
- Determines where the tab bar should be placed relative to the cross axis
- Determines whether the tabs will have a transition animation when a new tab is selected.
- Events sent to a
ValidationDelegate
.
Traits
- AddTabs is an extension to TabsPolicy. If a policy implements AddTab, then the add_tab and with_tab methods will be available on the Tabs instance.
- A trait for types that modify behaviour of a child widget.
- This iterator enables writing List widget for any
Data
. - A policy that controls how a
Scope
will interact with its surrounding application data. Specifically, how to create an initial State from the input, and how to synchronise the two using aScopeTransfer
. - A
ScopeTransfer
knows how to synchronise input data with its counterpart within aScope
. - A policy that determines how a Tabs instance derives its tabs from its app data.
- A type that can be registered to receive callbacks as the state of a
ValueTextBox
changes. - The trait implemented by all widgets.
- A trait that provides extra methods for combining
Widget
s. - A trait for widgets that wrap a single child to expose that child for access and mutation