Added redraw request handling to widget events.
This commit is contained in:
parent
91fca024b6
commit
65f4ff060a
2 changed files with 8 additions and 4 deletions
|
|
@ -1,4 +1,5 @@
|
|||
//! Handle events of a custom shader widget.
|
||||
use std::time::Instant;
|
||||
use crate::core::keyboard;
|
||||
use crate::core::mouse;
|
||||
use crate::core::touch;
|
||||
|
|
@ -18,4 +19,7 @@ pub enum Event {
|
|||
|
||||
/// A keyboard event.
|
||||
Keyboard(keyboard::Event),
|
||||
|
||||
/// A window requested a redraw.
|
||||
RedrawRequested(Instant),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue