Struct csfml_graphics_sys::Glyph
[−]
[src]
pub struct Glyph { pub advance: c_float, pub bounds: IntRect, pub texture_rect: IntRect, }
Glyph describes a glyph (a visual character)
Fields
advance: c_float
Offset to move horizontically to the next character.
bounds: IntRect
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 Copy for Glyph
[src]
impl Debug for Glyph
[src]
impl PartialOrd for Glyph
[src]
fn partial_cmp(&self, __arg_0: &Glyph) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Glyph) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Glyph) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Glyph) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Glyph) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl PartialEq for Glyph
[src]
fn eq(&self, __arg_0: &Glyph) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Glyph) -> bool
This method tests for !=
.
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