Struct write_fonts::pens::RecordingPen
source · pub struct RecordingPen { /* private fields */ }Expand description
Records commands as PenCommand
Implementations§
source§impl RecordingPen
impl RecordingPen
pub fn new() -> RecordingPen
pub fn commands(&self) -> &[PenCommand]
Trait Implementations§
source§impl Default for RecordingPen
impl Default for RecordingPen
source§impl Pen for RecordingPen
impl Pen for RecordingPen
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 RefUnwindSafe for RecordingPen
impl Send for RecordingPen
impl Sync for RecordingPen
impl Unpin for RecordingPen
impl UnwindSafe for RecordingPen
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<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere U: FromObjRef<T>,
source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.