Enum egui_modal::Icon
source · pub enum Icon {
Info,
Warning,
Success,
Error,
Custom((String, Color32)),
}
Expand description
An icon. If used, it will be shown next to the body of the modal.
Variants§
Info
An info icon
Warning
A warning icon
Success
A success icon
Error
An error icon
Custom((String, Color32))
A custom icon. The first field in the tuple is the text of the icon, and the second field is the color.
Trait Implementations§
source§impl PartialEq<Icon> for Icon
impl PartialEq<Icon> for Icon
impl StructuralPartialEq for Icon
Auto Trait Implementations§
impl RefUnwindSafe for Icon
impl Send for Icon
impl Sync for Icon
impl Unpin for Icon
impl UnwindSafe for Icon
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