pub struct Fill {
pub pattern: FillPattern,
pub foreground_color: Option<Color>,
pub background_color: Option<Color>,
}Expand description
Fill properties
Fields§
§pattern: FillPatternFill pattern
foreground_color: Option<Color>Foreground color
background_color: Option<Color>Background color
Implementations§
Source§impl Fill
impl Fill
Sourcepub fn with_pattern(self, pattern: FillPattern) -> Self
pub fn with_pattern(self, pattern: FillPattern) -> Self
Set pattern
Sourcepub fn with_foreground_color(self, color: Color) -> Self
pub fn with_foreground_color(self, color: Color) -> Self
Set foreground color
Sourcepub fn with_background_color(self, color: Color) -> Self
pub fn with_background_color(self, color: Color) -> Self
Set background color
Sourcepub fn is_visible(&self) -> bool
pub fn is_visible(&self) -> bool
Check if fill is visible
Trait Implementations§
impl StructuralPartialEq for Fill
Auto Trait Implementations§
impl Freeze for Fill
impl RefUnwindSafe for Fill
impl Send for Fill
impl Sync for Fill
impl Unpin for Fill
impl UnsafeUnpin for Fill
impl UnwindSafe for Fill
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