[−][src]Module druid::widget
Common widgets.
Modules
prelude | The types required to implement a |
Structs
Align | A widget that aligns its child. |
Button | A button with a text label. |
Checkbox | A checkbox that toggles a |
Click | A clickable |
ClipBox | A widget exposing a rectangular view into its child, which can be used as a building block for widgets that scroll their child. |
Container | A widget that provides simple visual styling options to a child. |
ControllerHost | A |
DefaultScopePolicy | A default implementation of |
Either | A widget that switches between two possible child views. |
EnvScope | A widget that accepts a closure to update the environment for its child. |
Flex | A container with either horizontal or vertical layout. |
FlexParams | Optional parameters for an item in a |
IdentityWrapper | A wrapper that adds an identity to an otherwise anonymous widget. |
Image | A widget that renders a bitmap Image. |
Label | A label that displays static or dynamic text. |
LensScopeTransfer | A |
LensWrap | A wrapper for its widget subtree to have access to a part of its parent's data. |
List | A list widget for a variable-size collection of items. |
Padding | A widget that just adds padding around its child. |
Painter | A widget that only handles painting. |
Parse | Converts a |
ProgressBar | A progress bar, displaying a numeric progress value. |
Radio | A single radio button |
RadioGroup | A group of radio buttons |
RawLabel | A widget that displays text data. |
Scope | A widget that allows encapsulation of application state. |
Scroll | A container that scrolls its contents. |
SizedBox | A widget with predefined size. |
Slider | A slider, allowing interactive update of a numeric value. |
Spinner | An animated spinner widget for showing a loading state. |
Split | A container containing two other widgets, splitting the area either horizontally or vertically. |
Stepper | A stepper widget for step-wise increasing and decreasing a value. |
Switch | A switch that toggles a |
TabInfo | Information about a tab that may be used by the TabPolicy to drive the visual presentation and behaviour of its label |
Tabs | A tabs widget. |
TabsState | 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 |
TextBox | A widget that allows user text input. |
ValueTextBox | A |
ViewSwitcher | A widget that dynamically switches between two children. |
Viewport | Represents the size and position of a rectangular "viewport" into a larger area. |
Enums
Axis | An axis in visual space. |
BackgroundBrush | Something that can be used as the background for a widget. |
CrossAxisAlignment | The alignment of the widgets on the container's cross (or minor) axis. |
FillStrat | Strategies for inscribing a rectangle inside another rectangle. |
LabelText | The text for a |
LineBreaking | Options for handling lines that are too wide for the label. |
MainAxisAlignment | Arrangement of children on the main axis. |
TabsEdge | Determines where the tab bar should be placed relative to the cross axis |
TabsTransition | Determines whether the tabs will have a transition animation when a new tab is selected. |
TextBoxEvent | Events sent to a |
Traits
Controller | A trait for types that modify behaviour of a child widget. |
ListIter | This iterator enables writing List widget for any |
ScopePolicy | A policy that controls how a |
ScopeTransfer | A |
TabsPolicy | A policy that determines how a Tabs instance derives its tabs from its app data. |
ValidationDelegate | A type that can be registered to receive callbacks as the state of a
|