pub struct Style {
pub background: Option<Background>,
pub border: Border,
pub shadow: Shadow,
pub separator_color: Option<Color>,
pub snap: bool,
}Available on crate feature
ribbon only.Expand description
The appearance of a Ribbon.
Fields§
§background: Option<Background>The Background of the Ribbon.
border: Border§shadow: Shadow§separator_color: Option<Color>The color of the separator between groups.
snap: boolWhether the Ribbon 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.
Sourcepub fn separator_color(self, color: Color) -> Self
pub fn separator_color(self, color: Color) -> Self
Update the separator color.
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