#[repr(C)]pub struct GlyphInfo {
pub glyph_id: u32,
pub(crate) mask: u32,
pub cluster: u32,
pub(crate) var1: u32,
pub(crate) var2: u32,
}
Expand description
A glyph info.
Fields§
§glyph_id: u32
A selected glyph.
Guarantee to be <= u16::MAX
.
mask: u32
§cluster: u32
An index to the start of the grapheme cluster in the original string.
var1: u32
§var2: u32
Implementations§
Source§impl hb_glyph_info_t
impl hb_glyph_info_t
Sourcepub fn unsafe_to_break(&self) -> bool
pub fn unsafe_to_break(&self) -> bool
Indicates that if input text is broken at the beginning of the cluster this glyph is part of, then both sides need to be re-shaped, as the result might be different.
On the flip side, it means that when this flag is not present, then it’s safe to break the glyph-run at the beginning of this cluster, and the two sides represent the exact same result one would get if breaking input text at the beginning of this cluster and shaping the two sides separately. This can be used to optimize paragraph layout, by avoiding re-shaping of each line after line-breaking, or limiting the reshaping to a small piece around the breaking point only.
pub(crate) fn as_char(&self) -> char
pub(crate) fn as_glyph(&self) -> GlyphId
pub(crate) fn unicode_props(&self) -> u16
pub(crate) fn set_unicode_props(&mut self, n: u16)
pub(crate) fn init_unicode_props(&mut self, scratch_flags: &mut u32)
pub(crate) fn unhide(&mut self)
pub(crate) fn lig_props(&self) -> u8
pub(crate) fn set_lig_props(&mut self, n: u8)
pub(crate) fn glyph_props(&self) -> u16
pub(crate) fn set_glyph_props(&mut self, n: u16)
pub(crate) fn syllable(&self) -> u8
pub(crate) fn set_syllable(&mut self, n: u8)
pub(crate) fn glyph_index(&mut self) -> u32
pub(crate) fn set_glyph_index(&mut self, n: u32)
Source§impl hb_glyph_info_t
impl hb_glyph_info_t
pub(crate) fn ot_shaper_var_u8_category(&self) -> u8
pub(crate) fn set_ot_shaper_var_u8_category(&mut self, c: u8)
pub(crate) fn ot_shaper_var_u8_auxiliary(&self) -> u8
pub(crate) fn set_ot_shaper_var_u8_auxiliary(&mut self, c: u8)
Source§impl hb_glyph_info_t
impl hb_glyph_info_t
fn arabic_shaping_action(&self) -> u8
fn set_arabic_shaping_action(&mut self, action: u8)
Source§impl hb_glyph_info_t
impl hb_glyph_info_t
fn hangul_shaping_feature(&self) -> u8
fn set_hangul_shaping_feature(&mut self, feature: u8)
Source§impl hb_glyph_info_t
impl hb_glyph_info_t
pub(crate) fn indic_category(&self) -> u8
pub(crate) fn myanmar_category(&self) -> u8
pub(crate) fn khmer_category(&self) -> u8
pub(crate) fn set_indic_category(&mut self, c: u8)
pub(crate) fn set_myanmar_category(&mut self, c: u8)
pub(crate) fn indic_position(&self) -> u8
pub(crate) fn myanmar_position(&self) -> u8
pub(crate) fn set_indic_position(&mut self, c: u8)
pub(crate) fn set_myanmar_position(&mut self, c: u8)
fn is_one_of(&self, flags: u32) -> bool
fn is_joiner(&self) -> bool
pub(crate) fn is_consonant(&self) -> bool
pub(crate) fn is_consonant_myanmar(&self) -> bool
fn is_halant(&self) -> bool
fn set_indic_properties(&mut self)
Source§impl hb_glyph_info_t
impl hb_glyph_info_t
fn set_khmer_properties(&mut self)
Source§impl hb_glyph_info_t
impl hb_glyph_info_t
fn set_myanmar_properties(&mut self)
Source§impl hb_glyph_info_t
impl hb_glyph_info_t
pub(crate) fn use_category(&self) -> u8
fn set_use_category(&mut self, c: u8)
fn is_halant_use(&self) -> bool
Trait Implementations§
Source§impl Clone for hb_glyph_info_t
impl Clone for hb_glyph_info_t
Source§fn clone(&self) -> hb_glyph_info_t
fn clone(&self) -> hb_glyph_info_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for hb_glyph_info_t
impl Debug for hb_glyph_info_t
Source§impl Default for hb_glyph_info_t
impl Default for hb_glyph_info_t
Source§fn default() -> hb_glyph_info_t
fn default() -> hb_glyph_info_t
impl Copy for hb_glyph_info_t
impl Pod for hb_glyph_info_t
Auto Trait Implementations§
impl Freeze for hb_glyph_info_t
impl RefUnwindSafe for hb_glyph_info_t
impl Send for hb_glyph_info_t
impl Sync for hb_glyph_info_t
impl Unpin for hb_glyph_info_t
impl UnwindSafe for hb_glyph_info_t
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
bits
as &Self
.