pub struct AatApplyContext<'a, 'f, 'c> {Show 17 fields
pub plan: &'a ShapePlan,
pub layout: LayoutData<'a>,
pub scale: Scale,
font_lifetimes: PhantomData<(&'f (), &'c ())>,
pub buffer: &'a mut Buffer,
pub has_glyph_classes: bool,
pub range_flags: Option<&'a [RangeFlags]>,
pub subtable_flags: u32,
pub(crate) buffer_is_reversed: bool,
using_buffer_glyph_set: bool,
using_buffer_digest: bool,
pub(crate) first_set: Option<&'a U32Set>,
pub(crate) first_digest: SetDigest,
pub(crate) second_set: Option<&'a U32Set>,
pub(crate) machine_class_cache: Option<&'a CacheCore<KEY_BITS, VALUE_BITS, CACHE_SIZE, <() as SelectAtomic<STORAGE_BITS>>::Type>>,
pub(crate) start_end_safe_to_break: u64,
pub(crate) safe_to_break: SafeToBreak<'a>,
}Expand description
HB: hb_aat_apply_context_t
Fields§
§plan: &'a ShapePlan§layout: LayoutData<'a>§scale: Scale§font_lifetimes: PhantomData<(&'f (), &'c ())>§buffer: &'a mut Buffer§has_glyph_classes: bool§range_flags: Option<&'a [RangeFlags]>§subtable_flags: u32§buffer_is_reversed: bool§using_buffer_glyph_set: bool§using_buffer_digest: boolWhether the buffer’s digest is current, to rule out subtables cheaply.
first_set: Option<&'a U32Set>§first_digest: SetDigestA digest of first_set.
second_set: Option<&'a U32Set>§machine_class_cache: Option<&'a CacheCore<KEY_BITS, VALUE_BITS, CACHE_SIZE, <() as SelectAtomic<STORAGE_BITS>>::Type>>§start_end_safe_to_break: u64§safe_to_break: SafeToBreak<'a>Implementations§
Source§impl<'a, 'f, 'c> AatApplyContext<'a, 'f, 'c>
impl<'a, 'f, 'c> AatApplyContext<'a, 'f, 'c>
pub fn new( plan: &'a ShapePlan, layout: LayoutData<'a>, scale: Scale, buffer: &'a mut Buffer, ) -> Self
pub(crate) fn scale_x(&self, value: i32) -> i32
pub(crate) fn scale_y(&self, value: i32) -> i32
pub(crate) fn reverse_buffer(&mut self)
pub(crate) fn setup_buffer_glyph_set(&mut self)
Sourcepub(crate) fn setup_buffer_digest(&mut self, subtable_count: usize)
pub(crate) fn setup_buffer_digest(&mut self, subtable_count: usize)
Prepares the digest that rules out subtables cheaply, if a table has enough subtables to repay building it.
pub(crate) fn buffer_intersects_machine(&self) -> bool
pub fn output_glyph(&mut self, glyph: u32) -> Option<()>
pub fn replace_glyph(&mut self, glyph: u32) -> Option<()>
pub fn delete_glyph(&mut self) -> Option<()>
pub fn replace_glyph_inplace(&mut self, i: usize, glyph: u32) -> Option<()>
Auto Trait Implementations§
impl<'a, 'f, 'c> !RefUnwindSafe for AatApplyContext<'a, 'f, 'c>
impl<'a, 'f, 'c> !UnwindSafe for AatApplyContext<'a, 'f, 'c>
impl<'a, 'f, 'c> Freeze for AatApplyContext<'a, 'f, 'c>
impl<'a, 'f, 'c> Send for AatApplyContext<'a, 'f, 'c>
impl<'a, 'f, 'c> Sync for AatApplyContext<'a, 'f, 'c>
impl<'a, 'f, 'c> Unpin for AatApplyContext<'a, 'f, 'c>
impl<'a, 'f, 'c> UnsafeUnpin for AatApplyContext<'a, 'f, 'c>
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