pub struct Path { /* private fields */ }Implementations§
Source§impl Path
impl Path
pub fn new() -> Self
pub fn id(&self) -> u32
pub fn move_to(&mut self, x: f32, y: f32) -> &mut Self
pub fn line_to(&mut self, x: f32, y: f32) -> &mut Self
pub fn quad_to(&mut self, cx: f32, cy: f32, x: f32, y: f32) -> &mut Self
pub fn cubic_to( &mut self, cx1: f32, cy1: f32, cx2: f32, cy2: f32, x: f32, y: f32, ) -> &mut Self
pub fn close(&mut self) -> &mut Self
pub fn add_rect(&mut self, x: f32, y: f32, w: f32, h: f32) -> &mut Self
pub fn add_circle(&mut self, cx: f32, cy: f32, r: f32) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl !Send for Path
impl !Sync for Path
impl Freeze for Path
impl RefUnwindSafe for Path
impl Unpin for Path
impl UnsafeUnpin 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