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]
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<'a, T: Clone + 'a + ImageSize> Clone for Character<'a, T>[src]
fn clone(&self) -> Character<'a, 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