Struct sfml::graphics::Glyph
[−]
[src]
#[repr(C)]pub struct Glyph { pub advance: f32, pub bounds: FloatRect, pub texture_rect: IntRect, }
Structure describing a glyph.
A glyph is the visual representation of a character.
The Glyph
structure provides the information needed to handle the glyph:
- its coordinates in the font's texture
- its bounding rectangle
- the offset to apply to get the starting position of the next glyph
Fields
advance: f32
Offset to move horizontally to the next character.
bounds: FloatRect
Bounding rectangle of the glyph, in coordinates relative to the baseline.
texture_rect: IntRect
Texture coordinates of the glyph inside the font's texture.
Trait Implementations
impl Clone for Glyph
[src]
fn clone(&self) -> Glyph
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for Glyph
[src]
impl Debug for Glyph
[src]
impl Default for Glyph
[src]
impl Raw for Glyph
[src]
type Raw = sfGlyph
The raw representation of this type.
fn raw(&self) -> Self::Raw
Acquires the raw representation of this type through &self
.