2020-01-10 01:28:45 +01:00
|
|
|
use crate::{
|
|
|
|
|
input::{keyboard, mouse},
|
|
|
|
|
window,
|
|
|
|
|
};
|
2019-07-20 19:12:31 +02:00
|
|
|
|
|
|
|
|
/// A user interface event.
|
2019-09-05 09:59:38 +02:00
|
|
|
///
|
|
|
|
|
/// _**Note:** This type is largely incomplete! If you need to track
|
|
|
|
|
/// additional events, feel free to [open an issue] and share your use case!_
|
|
|
|
|
///
|
|
|
|
|
/// [open an issue]: https://github.com/hecrj/iced/issues
|
2020-01-16 07:12:59 +01:00
|
|
|
#[derive(PartialEq, Clone, Debug)]
|
2019-07-20 19:12:31 +02:00
|
|
|
pub enum Event {
|
|
|
|
|
/// A keyboard event
|
|
|
|
|
Keyboard(keyboard::Event),
|
|
|
|
|
|
|
|
|
|
/// A mouse event
|
|
|
|
|
Mouse(mouse::Event),
|
2020-01-10 01:28:45 +01:00
|
|
|
|
|
|
|
|
/// A window event
|
|
|
|
|
Window(window::Event),
|
2019-07-20 19:12:31 +02:00
|
|
|
}
|