struct Builder<'a> {
path: &'a mut String,
min_x: f32,
min_y: f32,
max_x: f32,
max_y: f32,
}Fields§
§path: &'a mut String§min_x: f32§min_y: f32§max_x: f32§max_y: f32Implementations§
Source§impl<'a> Builder<'a>
impl<'a> Builder<'a>
fn new(path: &'a mut String) -> Self
fn add_point(&mut self, x: f32, y: f32)
Sourcefn bounds(&self) -> Option<Rect>
fn bounds(&self) -> Option<Rect>
Returns a conservative bounding box of the written path. It includes curve control points, so it can be larger than the exact bounding box, but never smaller.
fn finish(&mut self)
Trait Implementations§
Source§impl OutlinePen for Builder<'_>
impl OutlinePen for Builder<'_>
Source§fn quad_to(&mut self, cx0: f32, cy0: f32, x: f32, y: f32)
fn quad_to(&mut self, cx0: f32, cy0: f32, x: f32, y: f32)
Emit a quadratic bezier segment from the current point with a control
point at (cx0, cy0) and ending at (x, y).
Auto Trait Implementations§
impl<'a> Freeze for Builder<'a>
impl<'a> RefUnwindSafe for Builder<'a>
impl<'a> Send for Builder<'a>
impl<'a> Sync for Builder<'a>
impl<'a> Unpin for Builder<'a>
impl<'a> UnsafeUnpin for Builder<'a>
impl<'a> !UnwindSafe for Builder<'a>
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<P> CommandSink for Pwhere
P: OutlinePen,
impl<P> CommandSink for Pwhere
P: OutlinePen,
fn move_to(&mut self, x: Fixed, y: Fixed)
fn line_to(&mut self, x: Fixed, y: Fixed)
fn curve_to( &mut self, cx0: Fixed, cy0: Fixed, cx1: Fixed, cy1: Fixed, x: Fixed, y: Fixed, )
fn close(&mut self)
Source§fn hint_mask(&mut self, mask: &[u8])
fn hint_mask(&mut self, mask: &[u8])
Bitmask defining the hints that should be made active for the
commands that follow.
Source§fn counter_mask(&mut self, mask: &[u8])
fn counter_mask(&mut self, mask: &[u8])
Bitmask defining the counter hints that should be made active for the
commands that follow.
Source§fn clear_hints(&mut self)
fn clear_hints(&mut self)
Clear accumulated stem hints and all data derived from them.