Enum egui::WidgetType
source · pub enum WidgetType {
Show 15 variants
Label,
Link,
TextEdit,
Button,
Checkbox,
RadioButton,
SelectableLabel,
ComboBox,
Slider,
DragValue,
ColorButton,
ImageButton,
CollapsingHeader,
ProgressIndicator,
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
ProgressIndicator
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 for WidgetType
impl PartialEq 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 ==
.source§impl Serialize for WidgetType
impl Serialize for WidgetType
impl Copy for WidgetType
impl Eq for WidgetType
impl StructuralPartialEq for WidgetType
Auto Trait Implementations§
impl Freeze for WidgetType
impl RefUnwindSafe for WidgetType
impl Send for WidgetType
impl Sync for WidgetType
impl Unpin for WidgetType
impl UnwindSafe for WidgetType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more