Struct ttf_parser::tables::glyf::Builder
source · pub(crate) struct Builder<'a> {
pub builder: &'a mut dyn OutlineBuilder,
pub transform: Transform,
is_default_ts: bool,
pub bbox: RectF,
first_on_curve: Option<Point>,
first_off_curve: Option<Point>,
last_off_curve: Option<Point>,
}
Fields§
§builder: &'a mut dyn OutlineBuilder
§transform: Transform
§is_default_ts: bool
§bbox: RectF
§first_on_curve: Option<Point>
§first_off_curve: Option<Point>
§last_off_curve: Option<Point>
Implementations§
source§impl<'a> Builder<'a>
impl<'a> Builder<'a>
pub fn new( transform: Transform, bbox: RectF, builder: &'a mut dyn OutlineBuilder, ) -> Self
fn move_to(&mut self, x: f32, y: f32)
fn line_to(&mut self, x: f32, y: f32)
fn quad_to(&mut self, x1: f32, y1: f32, x: f32, y: f32)
pub fn push_point( &mut self, x: f32, y: f32, on_curve_point: bool, last_point: bool, )
fn finish_contour(&mut self)
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> !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