pub struct Fill {
pub style: FillStyle,
pub rule: FillRule,
}Expand description
The style used to fill geometry.
Fields§
§style: FillStyleThe color or gradient of the fill.
By default, it is set to FillStyle::Solid with [Color::BLACK].
rule: FillRuleThe fill rule defines how to determine what is inside and what is outside of a shape.
See the SVG specification for more details.
By default, it is set to NonZero.
Trait Implementations§
Source§impl From<PackedGradient> for Fill
Available on crate feature gradient only.
impl From<PackedGradient> for Fill
Available on crate feature
gradient only.Source§fn from(gradient: PackedGradient) -> Self
fn from(gradient: PackedGradient) -> Self
Converts to this type from the input type.
Source§impl From<PackedSrgb> for Fill
impl From<PackedSrgb> for Fill
Source§fn from(color: PackedSrgb) -> Fill
fn from(color: PackedSrgb) -> Fill
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Fill
impl RefUnwindSafe for Fill
impl Send for Fill
impl Sync for Fill
impl Unpin 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