Module widget

Source
Expand description

Contextual interface elements.

Widgets are parameterized references to combinations of possibly concrete component types. Each widget also defines its control functions.

Most widgets are graphical in some way and are parented to a Frame widget that provides the primary container and layout functionalities.

Non-graphical widgets are the Form widget, which is completely generic, and the Playback widget which has at least an Sfx view component and can be parented to any other widget.

Re-exports§

pub use self::button::Button;
pub use self::field::Field;
pub use self::form::Form;
pub use self::frame::Frame;
pub use self::menu::Menu;
pub use self::numbox::Numbox;
pub use self::picture::Picture;
pub use self::playback::Playback;
pub use self::textbox::Textbox;

Modules§

button
Button widget.
composite
Compositions of widgets
field
Text entry widget.
form
Generic widget for submitting callbacks with current model state
frame
Primary container and layout widget.
menu
Selection widget.
numbox
Number box.
picture
Image display.
playback
A widget for audio playback.
textbox
Display text data.

Macros§

build_and_get_node_ids
Process the build actions and return the created node IDs with the given names
build_and_return_node_id
Process the build actions and return the Nth created node ID (starting from 0)

Structs§

Widget
Defines a reference to a particular combination of component kinds in an element node.

Traits§

BuildActions
Trait for widgets that are built from a list of Actions
BuildElement
Trait for widget Element builders