pub struct PathBuilder { /* private fields */ }Implementations§
Source§impl PathBuilder
impl PathBuilder
pub fn new() -> Self
Sourcepub fn with_capacity(elements: usize) -> Self
pub fn with_capacity(elements: usize) -> Self
A builder with room for elements path elements, for callers that
know a path’s size in advance, such as when copying one.
pub fn move_to(&mut self, to: Point) -> &mut Self
pub fn line_to(&mut self, to: Point) -> &mut Self
pub fn quad_to(&mut self, ctrl: Point, to: Point) -> &mut Self
pub fn cubic_to(&mut self, ctrl1: Point, ctrl2: Point, to: Point) -> &mut Self
pub fn close(&mut self) -> &mut Self
pub fn push_rect(&mut self, rect: Rect) -> &mut Self
pub fn push_circle(&mut self, center: Point, radius: f32) -> &mut Self
pub fn push_rounded_rect(&mut self, rect: Rect, radius: f32) -> &mut Self
pub fn push_arc( &mut self, center: Point, radius: f32, start_angle: f32, sweep_angle: f32, ) -> &mut Self
pub fn build(self) -> Path
Trait Implementations§
Source§impl Clone for PathBuilder
impl Clone for PathBuilder
Source§impl Debug for PathBuilder
impl Debug for PathBuilder
Auto Trait Implementations§
impl Forget for PathBuilder
impl Freeze for PathBuilder
impl Move 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