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.
Clickable text, that looks like a hyperlink.
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 with a slider.
A spinner widget used to indicate loading.
A text region that the user can edit the contents of.

Enums

Specifies the orientation of a Slider.

Traits

Trait constraining what types crate::TextEdit may use as an underlying buffer.
Anything implementing Widget can be added to a Ui with Ui::add.
Helper so that you can do TextEdit::State::read…

Functions

Show larger buttons for switching between light and dark mode (globally).
Show a small button to switch to/from dark/light mode (globally).
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.
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.