[go: up one dir, main page]

Module ratatui::widgets

source ·
Expand description

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:

Re-exports

Modules

Structs

  • An X or Y axis for the chart widget
  • represent a bar to be shown by the Barchart
  • Display multiple bars in a single widgets
  • represent a group of bars to be shown by the Barchart
  • Bitflags that can be composed to set the visible borders essentially on the block widget.
  • A Cell contains the Text to be displayed in a Row of a Table.
  • A widget to plot one or more dataset in a cartesian coordinate system
  • A widget to clear/reset a certain area to allow overdrawing (e.g. for popups).
  • A group of data points
  • A widget to display a task progress.
  • A compact widget to display a task progress over a single line.
  • A widget to display several items among which one can be selected (optional)
  • A widget to display some text.
  • Holds data to be displayed in a Table widget.
  • A widget to display a scrollbar
  • A struct representing the state of a Scrollbar widget.
  • Widget to render a sparkline over one or more lines.
  • A widget to display data in formatted columns.
  • A widget to display available tabs in a multiple panels context.
  • Describes how to wrap text across lines.

Enums

Traits

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