pub struct GlyphInfo {
pub grapheme_cluster_layout_bounds: Rect,
pub grapheme_cluster_code_unit_range: TextRange,
pub writing_direction: TextDirection,
}Expand description
The measurements of a character (or a sequence of visually connected characters) within a paragraph.
Fields§
§grapheme_cluster_layout_bounds: RectThe layout bounding rect of the associated character, in the paragraph’s coordinates.
grapheme_cluster_code_unit_range: TextRangeThe UTF-16 range of the associated character in the text.
writing_direction: TextDirectionThe writing direction within the glyph.
Trait Implementations§
impl Copy for GlyphInfo
impl StructuralPartialEq for GlyphInfo
Auto Trait Implementations§
impl Freeze for GlyphInfo
impl RefUnwindSafe for GlyphInfo
impl Send for GlyphInfo
impl Sync for GlyphInfo
impl Unpin for GlyphInfo
impl UnsafeUnpin for GlyphInfo
impl UnwindSafe for GlyphInfo
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