Struct egui_modal::ModalStyle
source · [−]pub struct ModalStyle {
pub body_margin: f32,
pub overlay_color: Color32,
pub caution_button_fill: Color32,
pub suggested_button_fill: Color32,
pub caution_button_text_color: Color32,
pub suggested_button_text_color: Color32,
}Expand description
Contains styling parameters for the modal, like body margin and button colors.
Fields
body_margin: f32The margin around the modal body. Only applies if using
[.body()]
overlay_color: Color32The color of the overlay that dims the background
The fill color for the caution button style
The fill color for the suggested button style
The text color for the caution button style
The text color for the suggested button style
Trait Implementations
sourceimpl Clone for ModalStyle
impl Clone for ModalStyle
sourcefn clone(&self) -> ModalStyle
fn clone(&self) -> ModalStyle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl RefUnwindSafe for ModalStyle
impl Send for ModalStyle
impl Sync for ModalStyle
impl Unpin for ModalStyle
impl UnwindSafe for ModalStyle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more