Struct adi_screen::Text
[−]
[src]
pub struct Text(_, _, _);
Text on the screen.
Methods
impl Text
[src]
pub fn new(_: &mut Window, pos: (f32, f32), wh: (f32, f32)) -> Text
[src]
Add an empty text box to the screen.
pub fn update(&mut self, window: &mut Window, text: &str, font: &[u8])
[src]
Update the texture.
pub fn position(&mut self, x: f32, y: f32)
[src]
Set the position for the text.