pub struct Style {
pub text_color: Option<Color>,
pub background: Option<Background>,
pub border: Border,
pub shadow: Shadow,
pub snap: bool,
}Expand description
The appearance of a container.
Fields§
§text_color: Option<Color>The text Color of the container.
background: Option<Background>The Background of the container.
border: BorderThe Border of the container.
shadow: ShadowThe Shadow of the container.
snap: boolWhether the container should be snapped to the pixel grid.
Implementations§
Source§impl Style
impl Style
Sourcepub fn background(self, background: impl Into<Background>) -> Self
pub fn background(self, background: impl Into<Background>) -> Self
Updates the background of the Style.
Trait Implementations§
impl Copy for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnsafeUnpin for Style
impl UnwindSafe for Style
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