pub struct ControlBoundsPen(Option<BoundingBox>);
Expand description
Pen that generates the control bounds of a glyph outline.
Tuple Fields§
§0: Option<BoundingBox>
Implementations§
Source§impl ControlBoundsPen
impl ControlBoundsPen
Sourcepub fn bounding_box(&self) -> Option<BoundingBox>
pub fn bounding_box(&self) -> Option<BoundingBox>
Returns the bounding box collected by this pen.
fn update_bounds(&mut self, x: f32, y: f32)
Trait Implementations§
Source§impl Clone for ControlBoundsPen
impl Clone for ControlBoundsPen
Source§fn clone(&self) -> ControlBoundsPen
fn clone(&self) -> ControlBoundsPen
Returns a duplicate of the value. Read more
1.0.0 · 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 ControlBoundsPen
impl Debug for ControlBoundsPen
Source§impl Default for ControlBoundsPen
impl Default for ControlBoundsPen
Source§fn default() -> ControlBoundsPen
fn default() -> ControlBoundsPen
Returns the “default value” for a type. Read more
Source§impl OutlinePen for ControlBoundsPen
impl OutlinePen for ControlBoundsPen
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 ControlBoundsPen
impl RefUnwindSafe for ControlBoundsPen
impl Send for ControlBoundsPen
impl Sync for ControlBoundsPen
impl Unpin for ControlBoundsPen
impl UnwindSafe for ControlBoundsPen
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