Struct adi_screen::GuiButton
[−]
[src]
pub struct GuiButton { /* fields omitted */ }
A GUI Button Sprite.
Methods
impl Button
[src]
pub fn new(window: &mut Window, pos: (f32, f32)) -> Button
[src]
Add a new button to the screen.
pub fn update(&mut self, window: &mut Window, input: Input) -> bool
[src]
Update appearance of button, depending on state of mouse, and return
true
when the button is pressed.