Enum wai::Event
[−]
[src]
pub enum Event<W: WindowID, D: DeviceID> { Window { window: W, event: WindowEvent<D>, }, Device { device: D, event: DeviceEvent, }, }
Variants
Window
Fields of Window
window: W | |
event: WindowEvent<D> |
Device
Fields of Device
device: D | |
event: DeviceEvent |
Methods
impl<W: WindowID, D: DeviceID> Event<W, D>
[src]
fn map<T: WindowID, U: DeviceID, F: FnOnce(W) -> T, G: FnOnce(D) -> U>(
self,
f: F,
g: G
) -> Event<T, U>
self,
f: F,
g: G
) -> Event<T, U>
Trait Implementations
impl<W: Debug + WindowID, D: Debug + DeviceID> Debug for Event<W, D>
[src]
impl<W: Clone + WindowID, D: Clone + DeviceID> Clone for Event<W, D>
[src]
fn clone(&self) -> Event<W, D>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more