pub struct Path {
pub ops: Vec<PathOp>,
pub style: Style,
}
Expand description
<path d="..." />
Fields§
§ops: Vec<PathOp>
§style: Style
Implementations§
source§impl Path
impl Path
pub fn move_to(self, x: f32, y: f32) -> Self
pub fn line_to(self, x: f32, y: f32) -> Self
pub fn quadratic_bezier_to( self, ctrl_x: f32, ctrl_y: f32, x: f32, y: f32 ) -> Self
pub fn cubic_bezier_to( self, ctrl1_x: f32, ctrl1_y: f32, ctrl2_x: f32, ctrl2_y: f32, x: f32, y: f32 ) -> Self
pub fn close(self) -> Self
pub fn fill<F>(self, fill: F) -> Self
pub fn stroke<S>(self, stroke: S) -> Self
pub fn opacity(self, opacity: f32) -> Self
pub fn stroke_opacity(self, opacity: f32) -> Self
pub fn style(self, style: Style) -> Self
Trait Implementations§
source§impl PartialEq for Path
impl PartialEq for Path
impl StructuralPartialEq for Path
Auto Trait Implementations§
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnwindSafe for Path
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