pub struct ScopedVisuals {
pub widgets: [WidgetVisuals; 4],
pub disabled: Option<WidgetVisuals>,
pub selection_fill: Option<Color32>,
pub selection_stroke: Option<Stroke>,
pub text_edit_bg: Option<Color32>,
pub extreme_bg: Option<Color32>,
}Expand description
egui’s visuals for a component in one tone, compiled with the kit.
ScopedVisuals::apply writes them into a scope’s [Visuals]; a
field left None keeps egui’s value.
Fields§
§widgets: [WidgetVisuals; 4]egui’s inactive, hovered, active and open widget states, in that
order. Their expansion is not the kit’s: egui’s is kept.
disabled: Option<WidgetVisuals>Every state while the scope is disabled, when the component’s
disabled box differs from its resting one (egui still fades it
by its disabled_alpha).
selection_fill: Option<Color32>A selected button’s fill (egui’s selection.bg_fill).
selection_stroke: Option<Stroke>A selected button’s text, or a focused text field’s outline
(egui’s selection.stroke).
text_edit_bg: Option<Color32>Text fields’ background (egui’s text_edit_bg_color).
extreme_bg: Option<Color32>A scroll bar’s track (egui’s extreme_bg_color).
Implementations§
Trait Implementations§
Source§impl Clone for ScopedVisuals
impl Clone for ScopedVisuals
Source§fn clone(&self) -> ScopedVisuals
fn clone(&self) -> ScopedVisuals
Returns a duplicate 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 ScopedVisuals
impl Debug for ScopedVisuals
Source§impl PartialEq for ScopedVisuals
impl PartialEq for ScopedVisuals
impl Copy for ScopedVisuals
impl StructuralPartialEq for ScopedVisuals
Auto Trait Implementations§
impl Freeze for ScopedVisuals
impl RefUnwindSafe for ScopedVisuals
impl Send for ScopedVisuals
impl Sync for ScopedVisuals
impl Unpin for ScopedVisuals
impl UnsafeUnpin for ScopedVisuals
impl UnwindSafe for ScopedVisuals
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§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