pub struct ControlBoundsSink(Option<BoundingBox<f32>>);Expand description
A sink that collects the control bounds of a glyph outline.
Tuple Fields§
§0: Option<BoundingBox<f32>>Implementations§
Source§impl ControlBoundsSink
impl ControlBoundsSink
Sourcepub fn new() -> ControlBoundsSink
pub fn new() -> ControlBoundsSink
Creates an empty sink.
Sourcepub fn bounding_box(&self) -> Option<BoundingBox<f32>>
pub fn bounding_box(&self) -> Option<BoundingBox<f32>>
Returns the bounding box collected by this sink.
Trait Implementations§
Source§impl Clone for ControlBoundsSink
impl Clone for ControlBoundsSink
Source§fn clone(&self) -> ControlBoundsSink
fn clone(&self) -> ControlBoundsSink
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ControlBoundsSink
impl Debug for ControlBoundsSink
Source§impl Default for ControlBoundsSink
impl Default for ControlBoundsSink
Source§fn default() -> ControlBoundsSink
fn default() -> ControlBoundsSink
Returns the “default value” for a type. Read more
Source§impl PathSink for ControlBoundsSink
impl PathSink for ControlBoundsSink
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 Freeze for ControlBoundsSink
impl RefUnwindSafe for ControlBoundsSink
impl Send for ControlBoundsSink
impl Sync for ControlBoundsSink
impl Unpin for ControlBoundsSink
impl UnsafeUnpin for ControlBoundsSink
impl UnwindSafe for ControlBoundsSink
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<P> CommandSink for Pwhere
P: PathSink,
impl<P> CommandSink for Pwhere
P: PathSink,
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.