Struct conrod::backend::graphics::Character
[−]
pub struct Character<T> where T: ImageSize { pub offset: [f64; 2], pub size: [f64; 2], pub texture: T, }
Holds rendered character data.
Fields
offset: [f64; 2]
The offset of character.
size: [f64; 2]
The size of character, including space.
texture: T
The texture of the character.
Methods
impl<T> Character<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<T> Clone for Character<T> where T: Clone + ImageSize
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