Struct hb_paint_extents_context_t

Source
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>

Source

pub(crate) fn new(face: &'a Face<'a>) -> Self

Source

pub(crate) fn get_extents(&self) -> hb_extents_t

Source

fn push_transform(&mut self, trans: &Transform)

Source

fn pop_transform(&mut self)

Source

fn push_clip(&mut self, extents: hb_extents_t)

Source

fn pop_clip(&mut self)

Source

fn push_group(&mut self)

Source

fn pop_group(&mut self)

Source

fn paint(&mut self)

Trait Implementations§

Source§

impl Painter<'_> for hb_paint_extents_context_t<'_>

Source§

fn outline_glyph(&mut self, glyph_id: GlyphId)

Outline a glyph and store it.
Source§

fn paint(&mut self, _: Paint<'_>)

Paint the stored outline using the provided color.
Source§

fn push_clip(&mut self)

Push a new clip path using the currently stored outline.
Source§

fn push_clip_box(&mut self, clipbox: ClipBox)

Push a new clip path using the clip box.
Source§

fn pop_clip(&mut self)

Pop the last clip path.
Source§

fn push_layer(&mut self, mode: CompositeMode)

Push a new layer with the given composite mode.
Source§

fn pop_layer(&mut self)

Pop the last layer.
Source§

fn push_transform(&mut self, transform: Transform)

Push a transform.
Source§

fn pop_transform(&mut self)

Pop the last transform.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.