use super::*;
#[derive(Clone, Copy, Data, Debug, Default, Eq, Hash, New, Ord, PartialEq, PartialOrd)]
pub struct Modifiers {
#[get(type(copy))]
pub(crate) shift: bool,
#[get(type(copy))]
pub(crate) ctrl: bool,
#[get(type(copy))]
pub(crate) alt: bool,
#[get(type(copy))]
pub(crate) meta: bool,
}
#[derive(Clone, Copy, Data, Debug, Default, New, PartialEq)]
pub struct PointerEvent {
#[get(type(copy))]
pub(crate) pointer_id: u64,
#[get(type(copy))]
pub(crate) device: PointerDevice,
#[get(type(copy))]
pub(crate) position: Point,
#[get(type(copy))]
pub(crate) button: PointerButton,
#[get(type(copy))]
pub(crate) pressure: f32,
#[get(type(copy))]
pub(crate) modifiers: Modifiers,
}
#[derive(Clone, Copy, Data, Debug, Default, Eq, Hash, New, PartialEq)]
pub struct KeyEvent {
#[get(type(copy))]
pub(crate) code: KeyCode,
#[get(type(copy))]
pub(crate) modifiers: Modifiers,
#[get(type(copy))]
pub(crate) repeat: bool,
}
#[derive(Clone, Copy, Data, Debug, Default, PartialEq)]
pub struct GestureEvent {
#[get(type(copy))]
pub(crate) sequence: u64,
#[get(type(copy))]
pub(crate) kind: GestureEventKind,
#[get(type(copy))]
pub(crate) origin: Point,
#[get(type(copy))]
pub(crate) position: Point,
#[get(type(copy))]
pub(crate) delta: Point,
#[get(type(copy))]
pub(crate) scale: f32,
#[get(type(copy))]
pub(crate) pointer_count: u8,
#[get(type(copy))]
pub(crate) device: PointerDevice,
}