Struct conrod::backend::graphics::Character []

pub struct Character<'a, T> where T: 'a + ImageSize {
    pub offset: [f64; 2],
    pub size: [f64; 2],
    pub texture: &'a T,
}

Holds rendered character data.

Fields

offset: [f64; 2]

The offset of character.

size: [f64; 2]

The size of character, including space.

texture: &'a T

The texture of the character.

Methods

impl<'a, T> Character<'a, T> where T: ImageSize

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

impl<'a, T> Clone for Character<'a, T> where T: 'a + Clone + ImageSize

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