pub(crate) struct hb_paint_extents_context_t<'a> {
clips: Vec<hb_bounds_t>,
groups: Vec<hb_bounds_t>,
transforms: Vec<Transform>,
composite_modes: Vec<CompositeMode>,
face: &'a Face<'a>,
current_glyph: GlyphId,
}
Fields§
§clips: Vec<hb_bounds_t>
§groups: Vec<hb_bounds_t>
§transforms: Vec<Transform>
§composite_modes: Vec<CompositeMode>
§face: &'a Face<'a>
§current_glyph: GlyphId
Implementations§
Source§impl<'a> hb_paint_extents_context_t<'a>
impl<'a> hb_paint_extents_context_t<'a>
pub(crate) fn new(face: &'a Face<'a>) -> Self
pub(crate) fn get_extents(&self) -> hb_extents_t
fn push_transform(&mut self, trans: &Transform)
fn pop_transform(&mut self)
fn push_clip(&mut self, extents: hb_extents_t)
fn pop_clip(&mut self)
fn push_group(&mut self)
fn pop_group(&mut self)
fn paint(&mut self)
Trait Implementations§
Source§impl Painter<'_> for hb_paint_extents_context_t<'_>
impl Painter<'_> for hb_paint_extents_context_t<'_>
Source§fn outline_glyph(&mut self, glyph_id: GlyphId)
fn outline_glyph(&mut self, glyph_id: GlyphId)
Outline a glyph and store it.
Source§fn push_clip_box(&mut self, clipbox: ClipBox)
fn push_clip_box(&mut self, clipbox: ClipBox)
Push a new clip path using the clip box.
Source§fn push_layer(&mut self, mode: CompositeMode)
fn push_layer(&mut self, mode: CompositeMode)
Push a new layer with the given composite mode.
Source§fn push_transform(&mut self, transform: Transform)
fn push_transform(&mut self, transform: Transform)
Push a transform.
Source§fn pop_transform(&mut self)
fn pop_transform(&mut self)
Pop the last transform.
Auto Trait Implementations§
impl<'a> Freeze for hb_paint_extents_context_t<'a>
impl<'a> RefUnwindSafe for hb_paint_extents_context_t<'a>
impl<'a> Send for hb_paint_extents_context_t<'a>
impl<'a> Sync for hb_paint_extents_context_t<'a>
impl<'a> Unpin for hb_paint_extents_context_t<'a>
impl<'a> UnwindSafe for hb_paint_extents_context_t<'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