pub struct Path { /* private fields */ }
Implementations§
source§impl Path
impl Path
pub fn new() -> Result<Self, Error>
pub fn try_clone(&self) -> Result<Self, Error>
pub fn walk(&self, walker: &mut dyn PathWalker) -> Result<(), Error>
pub fn current_point(&self) -> Point
pub fn move_to(&mut self, x: f32, y: f32) -> Result<(), Error>
pub fn line_to(&mut self, x: f32, y: f32) -> Result<(), Error>
pub fn curve_to( &mut self, cx1: f32, cy1: f32, cx2: f32, cy2: f32, ex: f32, ey: f32 ) -> Result<(), Error>
pub fn curve_to_v( &mut self, cx: f32, cy: f32, ex: f32, ey: f32 ) -> Result<(), Error>
pub fn curve_to_y( &mut self, cx: f32, cy: f32, ex: f32, ey: f32 ) -> Result<(), Error>
pub fn rect(&mut self, x1: i32, y1: i32, x2: i32, y2: i32) -> Result<(), Error>
pub fn close(&mut self) -> Result<(), Error>
pub fn transform(&mut self, mat: &Matrix) -> Result<(), Error>
pub fn bounds(&self, stroke: &StrokeState, ctm: &Matrix) -> Result<Rect, Error>
pub fn trim(&mut self) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Path
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