Added redraw request handling to widget events.

This commit is contained in:
Bingus 2023-09-28 09:48:38 -07:00 committed by Héctor Ramón Jiménez
parent 91fca024b6
commit 65f4ff060a
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 8 additions and 4 deletions

View file

@ -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),
}