Skip to main content

hb_ot_apply_context_t

Struct hb_ot_apply_context_t 

Source
pub struct hb_ot_apply_context_t<'a> {
Show 20 fields pub table_index: TableIndex, pub face: &'a hb_font_t<'a>, pub scale: Scale, pub buffer: &'a mut hb_buffer_t, lookup_mask: u32, pub per_syllable: bool, pub lookup_index: u16, pub lookup_props: u32, pub nesting_level_left: usize, pub auto_zwnj: bool, pub auto_zwj: bool, pub random: bool, pub random_state: u32, pub new_syllables: Option<u8>, pub last_base: i32, pub last_base_until: u32, pub(crate) matcher: matcher_t, pub(crate) context_matcher: matcher_t, pub(crate) match_positions_len: usize, pub(crate) match_positions: SmallVec<[u32; 8]>,
}

Fields§

§table_index: TableIndex§face: &'a hb_font_t<'a>§scale: Scale§buffer: &'a mut hb_buffer_t§lookup_mask: u32§per_syllable: bool§lookup_index: u16§lookup_props: u32§nesting_level_left: usize§auto_zwnj: bool§auto_zwj: bool§random: bool§random_state: u32§new_syllables: Option<u8>§last_base: i32§last_base_until: u32§matcher: matcher_t§context_matcher: matcher_t§match_positions_len: usize§match_positions: SmallVec<[u32; 8]>

Implementations§

Source§

impl<'a> hb_ot_apply_context_t<'a>

Source

pub fn new( table_index: TableIndex, face: &'a hb_font_t<'a>, scale: Scale, buffer: &'a mut hb_buffer_t, ) -> Self

Source

pub fn scale_x(&self, value: f32) -> i32

Source

pub fn scale_y(&self, value: f32) -> i32

Source

pub fn random_number(&mut self) -> u32

Source

pub fn set_lookup_mask(&mut self, mask: u32)

Source

pub fn lookup_mask(&self) -> u32

Source

pub fn update_matchers(&mut self)

Source

pub fn recurse(&mut self, sub_lookup_index: u16) -> Option<()>

Source

fn set_glyph_class( &mut self, glyph_id: GlyphId, class_guess: GlyphPropsFlags, ligature: bool, component: bool, )

Source

pub fn replace_glyph(&mut self, glyph_id: GlyphId)

Source

pub fn replace_glyph_inplace(&mut self, glyph_id: GlyphId)

Source

pub fn replace_glyph_with_ligature( &mut self, glyph_id: GlyphId, class_guess: GlyphPropsFlags, )

Source

pub fn output_glyph_for_component( &mut self, glyph_id: GlyphId, class_guess: GlyphPropsFlags, )

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.