Struct ctru_sys::fontGlyphPos_s
source · #[repr(C)]pub struct fontGlyphPos_s {
pub sheetIndex: c_int,
pub xOffset: f32,
pub xAdvance: f32,
pub width: f32,
pub texcoord: fontGlyphPos_s__bindgen_ty_1,
pub vtxcoord: fontGlyphPos_s__bindgen_ty_2,
}
Expand description
Font glyph position structure.
Fields§
§sheetIndex: c_int
< Texture sheet index to use to render the glyph.
xOffset: f32
< Horizontal offset to draw the glyph width.
xAdvance: f32
< Horizontal distance to advance after drawing the glyph.
width: f32
< Glyph width.
texcoord: fontGlyphPos_s__bindgen_ty_1
§vtxcoord: fontGlyphPos_s__bindgen_ty_2
Trait Implementations§
source§impl Clone for fontGlyphPos_s
impl Clone for fontGlyphPos_s
source§fn clone(&self) -> fontGlyphPos_s
fn clone(&self) -> fontGlyphPos_s
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for fontGlyphPos_s
impl Debug for fontGlyphPos_s
source§impl Default for fontGlyphPos_s
impl Default for fontGlyphPos_s
source§fn default() -> fontGlyphPos_s
fn default() -> fontGlyphPos_s
Returns the “default value” for a type. Read more