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 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 ==
.impl Copy for WidgetType
impl Eq for WidgetType
impl StructuralEq for WidgetType
impl StructuralPartialEq for WidgetType
Auto Trait Implementations§
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