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>
impl<'a> hb_ot_apply_context_t<'a>
pub fn new( table_index: TableIndex, face: &'a hb_font_t<'a>, scale: Scale, buffer: &'a mut hb_buffer_t, ) -> Self
pub fn scale_x(&self, value: f32) -> i32
pub fn scale_y(&self, value: f32) -> i32
pub fn random_number(&mut self) -> u32
pub fn set_lookup_mask(&mut self, mask: u32)
pub fn lookup_mask(&self) -> u32
pub fn update_matchers(&mut self)
pub fn recurse(&mut self, sub_lookup_index: u16) -> Option<()>
fn set_glyph_class( &mut self, glyph_id: GlyphId, class_guess: GlyphPropsFlags, ligature: bool, component: bool, )
pub fn replace_glyph(&mut self, glyph_id: GlyphId)
pub fn replace_glyph_inplace(&mut self, glyph_id: GlyphId)
pub fn replace_glyph_with_ligature( &mut self, glyph_id: GlyphId, class_guess: GlyphPropsFlags, )
pub fn output_glyph_for_component( &mut self, glyph_id: GlyphId, class_guess: GlyphPropsFlags, )
Auto Trait Implementations§
impl<'a> Freeze for hb_ot_apply_context_t<'a>
impl<'a> !RefUnwindSafe for hb_ot_apply_context_t<'a>
impl<'a> Send for hb_ot_apply_context_t<'a>
impl<'a> Sync for hb_ot_apply_context_t<'a>
impl<'a> Unpin for hb_ot_apply_context_t<'a>
impl<'a> UnsafeUnpin for hb_ot_apply_context_t<'a>
impl<'a> !UnwindSafe for hb_ot_apply_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