pub enum WidgetType {
Show 16 variants
Label,
Link,
TextEdit,
Button,
Checkbox,
RadioButton,
RadioGroup,
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
RadioGroup
A group of radio buttons.
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.6.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§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more