Module smaragd::ui [] [src]

Structs

Button

A pressable button widget whose reaction is triggered upon release.

DropDownList

Displays a given Vec<String> as a selectable drop down menu.

Text

Displays some given text centered within a rectangular area.

Ui

A wrapper around the Ui that restricts the user from mutating the Ui in certain ways while in the scope of the Ui::set_widgets function and within Widgets' update methods. Using the UiCell, users may access the Ui immutably (via Deref) however they wish, however they may only mutate the Ui via the &mut self methods provided by the UiCell.

UiBuilder

Traits

Labelable

Widgets that may display some label.

Positionable

Widgets that are positionable.

Sizeable

Widgets that support different dimensions.

Widget

A trait to be implemented by all Widget types.

Type Definitions

Id

Unique widget identifier.