[][src]Module tui::widgets

widgets is a collection of types that implement Widget or StatefulWidget or both.

All widgets are implemented using the builder pattern and are consumable objects. They are not meant to be stored but used as commands to draw common figures in the UI.

The available widgets are:

Modules

canvas

Structs

Axis

An X or Y axis for the chart widget

BarChart

Display multiple bars in a single widgets

Block

Base widget to be used with all upper level ones. It may be used to display a box border around the widget and/or add a title.

Borders

Bitflags that can be composed to set the visible borders essentially on the block widget.

Chart

A widget to plot one or more dataset in a cartesian coordinate system

Clear

A widget to to clear/reset a certain area to allow overdrawing (e.g. for popups)

Dataset

A group of data points

Gauge

A widget to display a task progress.

List

A widget to display several items among which one can be selected (optional)

ListState
Paragraph

A widget to display some text.

Sparkline

Widget to render a sparkline over one or more lines.

Table

A widget to display data in formatted columns

TableState
Tabs

A widget to display available tabs in a multiple panels context.

Enums

BorderType
GraphType

Used to determine which style of graphing to use

Row

Holds data to be displayed in a Table widget

Text

Traits

StatefulWidget

A StatefulWidget is a widget that can take advantage of some local state to remember things between two draw calls.

Widget

Base requirements for a Widget