Enum uni_app::AppEvent[][src]

pub enum AppEvent {
    MouseDown(MouseButtonEvent),
    MouseUp(MouseButtonEvent),
    KeyDown(KeyDownEvent),
    KeyUp(KeyUpEvent),
    Resized((u32, u32)),
    MousePos((f64, f64)),
}

window event types

Variants

mouse button press

mouse button release

keyboard press

keyboard release

window resize

mouse cursor position in pixels from the window top-left

Trait Implementations

impl Debug for AppEvent
[src]

Formats the value using the given formatter. Read more

impl Clone for AppEvent
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for AppEvent

impl Sync for AppEvent