Realm

oa::ui::GlyphInstance

One source-anchored glyph quad record, exactly 48 bytes. anchor_x/anchor_y are normalized to the source image; offset_x/offset_y and width/height are compose-target pixels. flags bit 0 rotates the source coverage counter-clockwise for bottom-to-top text; higher bits are reserved for Ui’s deterministic non-overlap batching.

StRust public API

Declaration

#[repr(C)]pub struct GlyphInstance { pub anchor_x: f32, pub anchor_y: f32, pub offset_x: f32, pub offset_y: f32, pub width: f32, pub height: f32, pub atlas_x: u32, pub atlas_y: u32, pub atlas_w: u32, pub atlas_h: u32, pub color: u32, pub flags: u32, }
Public Rust declaration.

Public Methods

fn clone(&self) -> GlyphInstance
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn eq(&self, other: &GlyphInstance) -> bool

Associated Functions

fn default() -> Self

Public Data Members

anchor_xf32field
anchor_yf32field
offset_xf32field
offset_yf32field
widthf32field
heightf32field
atlas_xu32field
atlas_yu32field
atlas_wu32field
atlas_hu32field
coloru32field
flagsu32field

Public Method Documentation

fn clone( &self ) -> GlyphInstance
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn eq( &self, other: &GlyphInstance ) -> bool
No public source comment is attached to this declaration.
fn default() -> Self
No public source comment is attached to this declaration.