pub struct ScaffoldColors {
pub background: Option<Color>,
pub top_bar: Option<Color>,
pub bottom_bar: Option<Color>,
}Expand description
The surfaces a scaffold paints behind its slots.
A scaffold that states no colours paints nothing and leaves every surface to its slots, which is what a full-bleed game or a custom-chrome window wants.
Fields§
§background: Option<Color>Painted across the whole scaffold, behind every slot.
top_bar: Option<Color>Painted behind the top bar, including the status-bar area it draws under.
bottom_bar: Option<Color>Painted behind the bottom bar, including the navigation-bar area.
Implementations§
Trait Implementations§
Source§impl Clone for ScaffoldColors
impl Clone for ScaffoldColors
impl Copy for ScaffoldColors
Source§impl Debug for ScaffoldColors
impl Debug for ScaffoldColors
Source§impl Default for ScaffoldColors
impl Default for ScaffoldColors
Source§impl PartialEq for ScaffoldColors
impl PartialEq for ScaffoldColors
impl StructuralPartialEq for ScaffoldColors
Auto Trait Implementations§
impl Freeze for ScaffoldColors
impl RefUnwindSafe for ScaffoldColors
impl Send for ScaffoldColors
impl Sync for ScaffoldColors
impl Unpin for ScaffoldColors
impl UnsafeUnpin for ScaffoldColors
impl UnwindSafe for ScaffoldColors
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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