pub struct Path {
pub path: CppBox<QPainterPath>,
}
Fields§
§path: CppBox<QPainterPath>
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 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.
source§fn cubic_to(&mut self, p1: PointF, p2: PointF, end_point: PointF)
fn cubic_to(&mut self, p1: PointF, p2: PointF, end_point: PointF)
Adds a cubic Bézier curve to the path. Read more
source§fn quad_to(&mut self, control_point: PointF, end_point: PointF)
fn quad_to(&mut self, control_point: PointF, end_point: PointF)
Adds a quadratic Bézier curve between the current position and the given
end_point
with the control_point
.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.