Struct graphics::character::Character
[−]
[src]
pub struct Character<T: ImageSize> { pub offset: [Scalar; 2], pub size: [Scalar; 2], pub texture: T, }
Holds rendered character data.
Fields
offset: [Scalar; 2]
The offset of character.
size: [Scalar; 2]
The size of character, including space.
texture: T
The texture of the character.
Methods
impl<T: ImageSize> Character<T>
[src]
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.
Trait Implementations
impl<T: Clone + ImageSize> Clone for Character<T>
[src]
fn clone(&self) -> Character<T>
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