[][src]Module druid::widget

Common widgets.

Modules

prelude

The types required to implement a Widget.

Structs

Align

A widget that aligns its child.

Button

A button with a text label.

Checkbox

A checkbox that toggles a bool.

Click

A clickable Controller widget. Pass this and a child widget to a ControllerHost to make the child interactive. More conveniently, this is available as an on_click method via WidgetExt'.

Container

A widget that provides simple visual styling options to a child.

ControllerHost

A Widget that manages a child and a Controller.

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 Flex container (row or column).

IdentityWrapper

A wrapper that adds an identity to an otherwise anonymous widget.

Label

A label that displays some text.

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 Widget<String> to a Widget<Option<T>>, mapping parse errors to None

ProgressBar

A progress bar, displaying a numeric progress value.

Radio

A single radio button

RadioGroup

A group of radio buttons

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 bool.

TextBox

A widget that allows user text input.

ViewSwitcher

Enums

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
LabelText

The text for the label.

MainAxisAlignment

Arrangement of children on the main axis.

Traits

Controller

A trait for types that modify behaviour of a child widget.

ListIter

This iterator enables writing List widget for any Data.