Module dotrix_egui::widgets[][src]

Expand description

Widgets are pieces of GUI such as Label, Button, Slider etc.

Example widget uses:

  • ui.add(Label::new("Text").text_color(color::red));
  • if ui.add(Button::new("Click me")).clicked() { ... }

Modules

Color picker widgets.

Simple plotting library.

Structs

Clickable button with text.

Boolean on/off control with text label.

A numeric value that you can change by dragging the number. More compact than a Slider.

A clickable hyperlink, e.g. to "https://github.com/emilk/egui".

An widget to show an image of a given size.

A clickable image within a frame.

Static text.

A simple progress bar.

One out of several alternatives, either selected or not.

One out of several alternatives, either selected or not. Will mark selected items with a different background color. An alternative to RadioButton and Checkbox.

A visual separator. A horizontal or vertical line (depending on Layout).

Control a number by a horizontal slider.

A text region that the user can edit the contents of.

Traits

Trait constraining what types TextEdit may use as an underlying buffer.

Anything implementing Widget can be added to a Ui with Ui::add.

Functions

Show a button to reset a value to its default. The button is only enabled if the value does not already have its original value.