Struct graphics::character::Character [−][src]
pub struct Character<'a, T: 'a + ImageSize> { pub offset: [Scalar; 2], pub size: [Scalar; 2], pub texture: &'a T, }
Holds rendered character data.
Fields
offset: [Scalar; 2]
The offset of character.
size: [Scalar; 2]
The size of character, including space.
texture: &'a T
The texture of the character.
Methods
impl<'a, T: ImageSize> Character<'a, T>[src]
impl<'a, T: ImageSize> Character<'a, T>pub fn left(&self) -> Scalar[src]
pub fn left(&self) -> ScalarThe left offset.
pub fn top(&self) -> Scalar[src]
pub fn top(&self) -> ScalarThe top offset.
pub fn width(&self) -> Scalar[src]
pub fn width(&self) -> ScalarGets width of character, including space to the next one.
pub fn height(&self) -> Scalar[src]
pub fn height(&self) -> ScalarSets height of character, including space to the next one.