Struct graphics::character::Character [−] [src]

pub struct Character<T: ImageSize> {
    pub offset: [f64; 2],
    pub size: [f64; 2],
    pub texture: 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<T: ImageSize> Character<T>

fn left(&self) -> f64

The left offset.

fn top(&self) -> f64

The top offset.

fn width(&self) -> f64

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

fn height(&self) -> f64

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

Trait Implementations

Derived Implementations

impl<T: Clone + ImageSize> Clone for Character<T> where T: Clone

fn clone(&self) -> Character<T>

fn clone_from(&mut self, source: &Self)