pub struct Path { /* private fields */ }Implementations§
Trait Implementations§
Source§impl PathTrait for Path
impl PathTrait for Path
fn as_any(&self) -> &dyn Any
fn add_path(&mut self, other: &dyn PathTrait)
Source§fn close_path(&mut self)
fn close_path(&mut self)
Attempts to add a straight line from the current point to the start of current path. Read more
Source§fn move_to(&mut self, point: PointF)
fn move_to(&mut self, point: PointF)
Move the starting point of path to the given (x, y) coordinates.
Source§fn line_to(&mut self, point: PointF)
fn line_to(&mut self, point: PointF)
Connects the last point in the path to
point with a straight line.Source§fn add_round_rect(&mut self, rect: &RectF, radius: f64)
fn add_round_rect(&mut self, rect: &RectF, radius: f64)
Adds the given rectangle rect with rounded corners to the path.
Source§fn add_circle(&mut self, center: PointF, radius: f64)
fn add_circle(&mut self, center: PointF, radius: f64)
Adds a circle to the path.
Source§fn add_ellipse(&mut self, rect: &RectF)
fn add_ellipse(&mut self, rect: &RectF)
Adds an ellipse to the path.
Source§fn arc(&mut self, center: PointF, radius: f64, start_angle: f64, end_angle: f64)
fn arc(&mut self, center: PointF, radius: f64, start_angle: f64, end_angle: f64)
Creates an arc curve with specified center pointer and radius to the path,
in clockwise direction.
Source§fn arc_to(&mut self, p1: PointF, p2: PointF, radius: f64)
fn arc_to(&mut self, p1: PointF, p2: PointF, radius: f64)
Adds a circle arc to the path with the given control points and radius,
connected to the previous point by a straight line. Read more
Source§fn ellipse(
&mut self,
center: PointF,
radius_x: f64,
radius_y: f64,
start_angle: f64,
end_angle: f64,
)
fn ellipse( &mut self, center: PointF, radius_x: f64, radius_y: f64, start_angle: f64, end_angle: f64, )
Adds an elliptical arc to the path.
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