pub struct PathParams {
pub data: String,
pub position: (f64, f64),
pub fill_enabled: bool,
pub fill_paint: Paint,
pub stroke_enabled: bool,
pub stroke_paint: Paint,
pub stroke_width: f64,
}Expand description
Produces a rasterized vector path source.
Fields§
§data: StringSVG-style path data.
position: (f64, f64)Path origin in pixels.
fill_enabled: boolEnables fill rendering.
fill_paint: PaintFill paint. Accepts a solid color or gradient.
stroke_enabled: boolEnables stroke rendering.
stroke_paint: PaintStroke paint. Accepts a solid color or gradient.
stroke_width: f64Stroke width in pixels.
Trait Implementations§
Source§impl Clone for PathParams
impl Clone for PathParams
Source§impl Debug for PathParams
impl Debug for PathParams
Source§impl Default for PathParams
impl Default for PathParams
Source§impl Delegated for PathParams
impl Delegated for PathParams
type Delegate = PathParamsDelegate
fn into_delegate(self) -> Self::Delegate
Auto Trait Implementations§
impl Freeze for PathParams
impl RefUnwindSafe for PathParams
impl Send for PathParams
impl Sync for PathParams
impl Unpin for PathParams
impl UnsafeUnpin for PathParams
impl UnwindSafe for PathParams
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