pub struct PathBuilder { /* private fields */ }Trait Implementations§
Source§impl Default for PathBuilder
impl Default for PathBuilder
Source§impl PathBuilder for PathBuilder
impl PathBuilder for PathBuilder
type Path = Path
Source§fn set_fill_type(&mut self, fill_type: FillType)
fn set_fill_type(&mut self, fill_type: FillType)
Sets the fill type.
Source§fn move_to(&mut self, location: impl Into<PixelPoint>)
fn move_to(&mut self, location: impl Into<PixelPoint>)
Move the cursor to the specified location.
Source§fn line_to(&mut self, location: impl Into<PixelPoint>)
fn line_to(&mut self, location: impl Into<PixelPoint>)
Add a line segment from the current cursor location to the given location.
The cursor location is updated to be at the endpoint.
Source§fn cubic_curve_to(
&mut self,
control_point_1: impl Into<PixelPoint>,
control_point_2: impl Into<PixelPoint>,
end_point: impl Into<PixelPoint>,
)
fn cubic_curve_to( &mut self, control_point_1: impl Into<PixelPoint>, control_point_2: impl Into<PixelPoint>, end_point: impl Into<PixelPoint>, )
Add a cubic bezier curve whose start point is current cursor location
to the specified end point using the two specified control points.
The cursor location is updated to be at the endpoint.
Source§fn quadratic_curve_to(
&mut self,
control_point: impl Into<PixelPoint>,
end_point: impl Into<PixelPoint>,
)
fn quadratic_curve_to( &mut self, control_point: impl Into<PixelPoint>, end_point: impl Into<PixelPoint>, )
Add a quadratic bezier curve from whose start point is the cursor
to the specified end point using the a single control point.
The cursor location is updated to be at the endpoint.
Source§fn add_rounded_rect(
&mut self,
rect: impl Into<PixelRect>,
rounding_radii: &RoundingRadii,
)
fn add_rounded_rect( &mut self, rect: impl Into<PixelRect>, rounding_radii: &RoundingRadii, )
Add a rounded rect with potentially non-uniform radii to the path.
Source§fn add_arc(
&mut self,
oval_bounds: impl Into<PixelRect>,
start_angle_degrees: f32,
end_angle_degrees: f32,
)
fn add_arc( &mut self, oval_bounds: impl Into<PixelRect>, start_angle_degrees: f32, end_angle_degrees: f32, )
Add an arc to the path.
Source§fn build_copy(&mut self) -> Self::Path
fn build_copy(&mut self) -> Self::Path
Create a new path by copying the existing built-up path.
The existing path can continue being added to.
Auto Trait Implementations§
impl Freeze for PathBuilder
impl RefUnwindSafe for PathBuilder
impl Send for PathBuilder
impl Sync for PathBuilder
impl Unpin for PathBuilder
impl UnsafeUnpin for PathBuilder
impl UnwindSafe for PathBuilder
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
Source§impl<B> PathBuilderObject for Bwhere
B: PathBuilder,
impl<B> PathBuilderObject for Bwhere
B: PathBuilder,
Source§fn set_fill_type(&mut self, fill_type: FillType)
fn set_fill_type(&mut self, fill_type: FillType)
Sets the fill type.
Source§fn move_to(&mut self, location: Point2D<f32, PixelUnit>)
fn move_to(&mut self, location: Point2D<f32, PixelUnit>)
Move the cursor to the specified location.
Source§fn line_to(&mut self, location: Point2D<f32, PixelUnit>)
fn line_to(&mut self, location: Point2D<f32, PixelUnit>)
Add a line segment from the current cursor location to the given location.
The cursor location is updated to be at the endpoint.
Source§fn quadratic_curve_to(
&mut self,
control_point: Point2D<f32, PixelUnit>,
end_point: Point2D<f32, PixelUnit>,
)
fn quadratic_curve_to( &mut self, control_point: Point2D<f32, PixelUnit>, end_point: Point2D<f32, PixelUnit>, )
Add a quadratic bezier curve from whose start point is the cursor
to the specified end point using the a single control point.
The cursor location is updated to be at the endpoint.
Source§fn cubic_curve_to(
&mut self,
control_point_1: Point2D<f32, PixelUnit>,
control_point_2: Point2D<f32, PixelUnit>,
end_point: Point2D<f32, PixelUnit>,
)
fn cubic_curve_to( &mut self, control_point_1: Point2D<f32, PixelUnit>, control_point_2: Point2D<f32, PixelUnit>, end_point: Point2D<f32, PixelUnit>, )
Add a cubic bezier curve whose start point is current cursor location
to the specified end point using the two specified control points.
The cursor location is updated to be at the endpoint.
Source§fn add_rounded_rect(
&mut self,
rect: Rect<f32, PixelUnit>,
rounding_radii: &RoundingRadii,
)
fn add_rounded_rect( &mut self, rect: Rect<f32, PixelUnit>, rounding_radii: &RoundingRadii, )
Add a rounded rect with potentially non-uniform radii to the path.
Source§fn add_arc(
&mut self,
oval_bounds: Rect<f32, PixelUnit>,
start_angle_degrees: f32,
end_angle_degrees: f32,
)
fn add_arc( &mut self, oval_bounds: Rect<f32, PixelUnit>, start_angle_degrees: f32, end_angle_degrees: f32, )
Add an arc to the path.
Source§fn build(self) -> Box<dyn PathObject>
fn build(self) -> Box<dyn PathObject>
Builds the path.
Source§fn build_copy(&mut self) -> Box<dyn PathObject>
fn build_copy(&mut self) -> Box<dyn PathObject>
Create a new path by copying the existing built-up path.
The existing path can continue being added to.