Struct cosmic_text::LayoutGlyph
source · [−]pub struct LayoutGlyph {
pub start: usize,
pub end: usize,
pub x: f32,
pub w: f32,
pub rtl: bool,
pub cache_key: CacheKey,
pub x_int: i32,
pub y_int: i32,
}Expand description
A laid out glyph
Fields
start: usizeStart index of cluster in original line
end: usizeEnd index of cluster in original line
x: f32X offset of hitbox
w: f32width of hitbox
rtl: boolTrue if the character is from an RTL script
cache_key: CacheKeyCache key, see CacheKey
x_int: i32Integer component of X offset in line
y_int: i32Integer component of Y offset in line
Auto Trait Implementations
impl RefUnwindSafe for LayoutGlyph
impl Send for LayoutGlyph
impl Sync for LayoutGlyph
impl Unpin for LayoutGlyph
impl UnwindSafe for LayoutGlyph
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more