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.

Counter

Atomic counter used by ProgressBar.

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.

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 scrollable 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 simple wrapper view that catches some ignored event from its child.

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.

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.

TextView

A simple view showing a fixed text

TrackedView

Wrapper around a view that remembers its position.

Enums

ListChild

Represents a child from a ListView.

Type Definitions

ViewRef

Mutable reference to a view.