Module cursive::views[][src]

Various views to use when creating the layout.

Structs

BoxView

Wrapper around another view, with a controlled size.

Button

Simple text label with a callback when is pressed.

Canvas

A blank view that forwards calls to closures.

Checkbox

Checkable box.

Dialog

Popup-like view with a main content, and optional buttons under it.

DummyView

Dummy view.

EditView

Input box where the user can enter and edit text.

HideableView

Wrapper around another view that can be hidden at will.

IdView

Wrapper around a view to provide interior mutability.

Layer

Wrapper view that fills the background.

LinearLayout

Arranges its children linearly according to its orientation.

ListView

Displays a list of elements.

MenuPopup

Popup that shows a list of items.

Menubar

Shows a single-line list of items, with pop-up menus when one is selected.

OnEventView

A wrapper view that can react to events.

Panel

Draws a border around a wrapped view.

ProgressBar

Animated bar showing a progress value.

RadioButton

Variant of Checkbox arranged in group.

RadioGroup

Group to coordinate multiple radio buttons.

ScrollView

Wraps a view in a scrollable area.

SelectView

View to select an item among a list.

ShadowView

Wrapper view that adds a shadow.

SizedView

Wrapper around a view that remembers its size.

SliderView

A horizontal or vertical slider.

StackView

Simple stack of views. Only the top-most view is active and can receive input.

TextArea

Multi-lines text editor.

TextContent

Provides access to the content of a TextView.

TextContentRef

A reference to the text content.

TextView

A simple view showing a fixed text.

TrackedView

Wrapper around a view that remembers its position.

ViewBox

A boxed View.

Enums

DialogFocus

Identifies currently focused element in Dialog.

LayerPosition

Identifies a layer in a StackView.

ListChild

Represents a child from a ListView.

Type Definitions

ViewRef

Mutable reference to a view.