pub struct PatternFill {
pub preset: PresetPattern,
pub foreground: Option<Color>,
pub background: Option<Color>,
}Expand description
A two-color repeating pattern fill (<a:pattFill>, CT_PatternFillProperties).
Fields§
§preset: PresetPattern§foreground: Option<Color><a:fgClr> — the pattern’s foreground (the color the pattern’s “on” pixels are drawn in).
background: Option<Color><a:bgClr> — the pattern’s background (the color showing through its “off” pixels).
Implementations§
Source§impl PatternFill
impl PatternFill
pub fn new(preset: PresetPattern) -> PatternFill
pub fn with_foreground(self, color: Color) -> PatternFill
pub fn with_background(self, color: Color) -> PatternFill
Trait Implementations§
Source§impl Clone for PatternFill
impl Clone for PatternFill
Source§fn clone(&self) -> PatternFill
fn clone(&self) -> PatternFill
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PatternFill
impl Debug for PatternFill
Source§impl PartialEq for PatternFill
impl PartialEq for PatternFill
impl StructuralPartialEq for PatternFill
Auto Trait Implementations§
impl Freeze for PatternFill
impl RefUnwindSafe for PatternFill
impl Send for PatternFill
impl Sync for PatternFill
impl Unpin for PatternFill
impl UnsafeUnpin for PatternFill
impl UnwindSafe for PatternFill
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