Expand description
Re-exports§
pub use self::text_edit::TextBuffer;
pub use self::text_edit::TextEdit;
Modules§
- color_
picker - Color picker widgets.
- text_
edit
Structs§
- Button
- Clickable button with text.
- Checkbox
- Boolean on/off control with text label.
- Drag
Value - A numeric value that you can change by dragging the number. More compact than a
crate::Slider
. - Frame
Durations - Stores the durations between each frame of an animated image
- Hyperlink
- A clickable hyperlink, e.g. to
"https://github.com/emilk/egui"
. - Image
- A widget which displays an image.
- Image
Button - A clickable image within a frame.
- Image
Options - Image
Size - This type determines the constraints on how the size of an image should be calculated.
- Label
- Static text.
- Link
- Clickable text, that looks like a hyperlink.
- Progress
Bar - A simple progress bar.
- Radio
Button - One out of several alternatives, either selected or not.
- Selectable
Label - One out of several alternatives, either selected or not.
Will mark selected items with a different background color.
An alternative to
crate::RadioButton
andcrate::Checkbox
. - Separator
- A visual separator. A horizontal or vertical line (depending on
crate::Layout
). - Slider
- Control a number with a slider.
- Spinner
- A spinner widget used to indicate loading.
Enums§
- Image
Fit - This type determines how the image should try to fit within the UI.
- Image
Source - This type tells the
Ui
how to load an image. - Slider
Clamping - Specifies how values in a
Slider
are clamped. - Slider
Orientation - Specifies the orientation of a
Slider
.
Traits§
- Widget
- Anything implementing Widget can be added to a
Ui
withUi::add
. - Widget
With State - Helper so that you can do e.g.
TextEdit::State::load
.
Functions§
- decode_
animated_ image_ uri - Extracts uri and frame index
- global_
dark_ light_ mode_ buttons Deprecated - Show larger buttons for switching between light and dark mode (globally).
- global_
dark_ light_ mode_ switch Deprecated - Show a small button to switch to/from dark/light mode (globally).
- global_
theme_ preference_ buttons - Show larger buttons for switching between light and dark mode (globally).
- global_
theme_ preference_ switch - Show a small button to switch to/from dark/light mode (globally).
- has_
gif_ magic_ header - Checks if bytes are gifs
- has_
webp_ header - Checks if bytes are webp
- paint_
texture_ at - reset_
button - 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.
- reset_
button_ with - 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.
- stroke_
ui Deprecated