Enum egui::WidgetType
source · pub enum WidgetType {
Show 14 variants
Label,
Link,
TextEdit,
Button,
Checkbox,
RadioButton,
SelectableLabel,
ComboBox,
Slider,
DragValue,
ColorButton,
ImageButton,
CollapsingHeader,
Other,
}
Expand description
The different types of built-in widgets in egui
Variants§
Label
Link
e.g. a hyperlink
TextEdit
Button
Checkbox
RadioButton
SelectableLabel
ComboBox
Slider
DragValue
ColorButton
ImageButton
CollapsingHeader
Other
If you cannot fit any of the above slots.
If this is something you think should be added, file an issue.
Trait Implementations§
source§impl Clone for WidgetType
impl Clone for WidgetType
source§fn clone(&self) -> WidgetType
fn clone(&self) -> WidgetType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WidgetType
impl Debug for WidgetType
source§impl<'de> Deserialize<'de> for WidgetType
impl<'de> Deserialize<'de> for WidgetType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<WidgetType> for WidgetType
impl PartialEq<WidgetType> for WidgetType
source§fn eq(&self, other: &WidgetType) -> bool
fn eq(&self, other: &WidgetType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.