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 | The offset of character. |
size | The size of character, including space. |
texture | The texture of the character. |
Methods
impl<'a, T: ImageSize> Character<'a, T>
fn left(&self) -> Scalar
[−]
The left offset.
fn top(&self) -> Scalar
[−]
The top offset.
fn width(&self) -> Scalar
[−]
Gets width of character, including space to the next one.
fn height(&self) -> Scalar
[−]
Sets height of character, including space to the next one.