pub struct PathItem {
pub cmds: Vec<PathCmd>,
pub bbox: Rect,
pub fill: Option<[f32; 3]>,
pub stroke: Option<[f32; 3]>,
pub line_width: f32,
pub even_odd: bool,
pub fill_alpha: f32,
pub stroke_alpha: f32,
pub order: u32,
}Expand description
A filled and/or stroked path.
Fields§
§cmds: Vec<PathCmd>Path commands in user space.
bbox: Rect§fill: Option<[f32; 3]>§stroke: Option<[f32; 3]>§line_width: f32Stroke width in user space units.
even_odd: boolTrue when the fill uses the even-odd rule rather than nonzero winding.
fill_alpha: f32Constant alphas from the graphics state (/ca and /CA), in 0..=1.
stroke_alpha: f32§order: u32Paint order; see Glyph::order.
Trait Implementations§
Auto Trait Implementations§
impl Forget for PathItem
impl Freeze for PathItem
impl Move for PathItem
impl RefUnwindSafe for PathItem
impl Send for PathItem
impl Sync for PathItem
impl Unpin for PathItem
impl UnsafeUnpin for PathItem
impl UnwindSafe for PathItem
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