[][src]Module coffee::ui::widget

Use the built-in widgets in your user interface.

Re-exports

The contents of this module are re-exported in the ui module. Therefore, you can directly type:

use coffee::ui::{button, Button};

However, if you want to use a custom renderer, you will need to work with the definitions of Row, Column, and Panel found in this module.

Customization

Every drawable widget has its own module with a Renderer trait that must be implemented by a custom renderer before being able to use the widget.

The built-in Renderer supports all the widgets in this module!

Re-exports

pub use self::image::Image;
pub use button::Button;
pub use checkbox::Checkbox;
pub use panel::Panel;
pub use progress_bar::ProgressBar;
pub use radio::Radio;
pub use slider::Slider;
pub use text::Text;

Modules

button

Allow your users to perform actions by pressing a button.

checkbox

Show toggle controls using checkboxes.

image

Displays image to your users.

panel

Wrap your widgets in a box.

progress_bar

Displays action progress to your users.

radio

Create choices using radio buttons.

slider

Display an interactive selector of a single value from a range of values.

text

Write some text for your users to read.

Structs

Column

A container that places its contents vertically.

Row

A container that places its contents horizontally.