pub struct Path(_);
Expand description
Graphics path object.
Implementations
sourceimpl Path
impl Path
sourcepub fn new() -> Result<Path>
👎 Deprecated: Use Path::create()
instead.
pub fn new() -> Result<Path>
Use Path::create()
instead.
Create a new empty path.
sourcepub fn move_to(&mut self, point: Pos, is_relative: bool) -> Result<&mut Path>
pub fn move_to(&mut self, point: Pos, is_relative: bool) -> Result<&mut Path>
Move the current drawing path position to x,y
.
If is_relative
is true
then the specified coordinates are interpreted as deltas from the current path position.
sourcepub fn line_to(&mut self, point: Pos, is_relative: bool) -> Result<&mut Path>
pub fn line_to(&mut self, point: Pos, is_relative: bool) -> Result<&mut Path>
Draw a line and move the current drawing path position to x,y
.
If is_relative
is true
then the specified coordinates are interpreted as deltas from the current path position.
sourcepub fn arc_to(
&mut self,
xy: Pos,
angle: Angle,
rxy: Pos,
is_large: bool,
is_clockwise: bool,
is_relative: bool
) -> Result<&mut Path>
pub fn arc_to(
&mut self,
xy: Pos,
angle: Angle,
rxy: Pos,
is_large: bool,
is_clockwise: bool,
is_relative: bool
) -> Result<&mut Path>
Draw an arc.
Trait Implementations
sourceimpl Clone for Path
impl Clone for Path
Copies path object.
All allocated objects are reference counted so copying is just a matter of increasing reference counts.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more