pub struct PathBuilder<V = Vec<Verb>, P = Vec<LogicalPoint>> {
pub verbs: V,
pub points: P,
}Expand description
builds path geometry in owned or borrowed buffers
Fields§
§verbs: V§points: PImplementations§
Source§impl PathBuilder<Scratch<'_, Verb>, Scratch<'_, LogicalPoint>>
impl PathBuilder<Scratch<'_, Verb>, Scratch<'_, LogicalPoint>>
Source§impl<V, P> PathBuilder<V, P>where
V: Deref<Target = [Verb]> + Extend<Verb>,
P: Deref<Target = [LogicalPoint]> + Extend<LogicalPoint>,
impl<V, P> PathBuilder<V, P>where
V: Deref<Target = [Verb]> + Extend<Verb>,
P: Deref<Target = [LogicalPoint]> + Extend<LogicalPoint>,
pub fn path(&self) -> Path<'_>
pub fn move_to(&mut self, x: f32, y: f32) -> &mut Self
pub fn line_to(&mut self, x: f32, y: f32) -> &mut Self
pub fn quad_to(&mut self, cx: f32, cy: f32, x: f32, y: f32) -> &mut Self
pub fn cubic_to( &mut self, c1x: f32, c1y: f32, c2x: f32, c2y: f32, x: f32, y: f32, ) -> &mut Self
pub fn close(&mut self) -> &mut Self
Sourcepub fn rect(&mut self, area: LogicalRect) -> &mut Self
pub fn rect(&mut self, area: LogicalRect) -> &mut Self
clockwise rectangle subpath
Trait Implementations§
impl<V: PartialEq, P: PartialEq> StructuralPartialEq for PathBuilder<V, P>
Auto Trait Implementations§
impl<V, P> Forget for PathBuilder<V, P>
impl<V, P> Freeze for PathBuilder<V, P>
impl<V, P> Move for PathBuilder<V, P>
impl<V, P> RefUnwindSafe for PathBuilder<V, P>where
V: RefUnwindSafe,
P: RefUnwindSafe,
impl<V, P> Send for PathBuilder<V, P>
impl<V, P> Sync for PathBuilder<V, P>
impl<V, P> Unpin for PathBuilder<V, P>
impl<V, P> UnsafeUnpin for PathBuilder<V, P>where
V: UnsafeUnpin,
P: UnsafeUnpin,
impl<V, P> UnwindSafe for PathBuilder<V, P>where
V: UnwindSafe,
P: UnwindSafe,
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