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

The offset of character.

The size of character, including space.

The texture of the character.

Methods

impl<'a, T: ImageSize> Character<'a, T>
[src]

The left offset.

The top offset.

Gets width of character, including space to the next one.

Sets height of character, including space to the next one.

Trait Implementations

impl<'a, T: Clone + 'a + ImageSize> Clone for Character<'a, T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more