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

Offset to move horizontally to the next character.

Bounding rectangle of the glyph, in coordinates relative to the baseline.

Texture coordinates of the glyph inside the font's texture.

Trait Implementations

impl Clone for Glyph
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Glyph
[src]

impl Debug for Glyph
[src]

Formats the value using the given formatter.

impl Default for Glyph
[src]

Returns the "default value" for a type. Read more

impl Raw for Glyph
[src]

The raw representation of this type.

Acquires the raw representation of this type through &self.

impl FromRaw for Glyph
[src]

The raw representation of this type.

Creates Self from its raw representation. Read more