Enum show_image::event::WindowEvent[][src]

pub enum WindowEvent {
    RedrawRequested(WindowRedrawRequestedEvent),
    Resized(WindowResizedEvent),
    Moved(WindowMovedEvent),
    CloseRequested(WindowCloseRequestedEvent),
    Destroyed(WindowDestroyedEvent),
    DroppedFile(WindowDroppedFileEvent),
    HoveredFile(WindowHoveredFileEvent),
    HoveredFileCancelled(WindowHoveredFileCancelledEvent),
    FocusGained(WindowFocusGainedEvent),
    FocusLost(WindowFocusLostEvent),
    KeyboardInput(WindowKeyboardInputEvent),
    TextInput(WindowTextInputEvent),
    MouseEnter(WindowMouseEnterEvent),
    MouseLeave(WindowMouseLeaveEvent),
    MouseMove(WindowMouseMoveEvent),
    MouseButton(WindowMouseButtonEvent),
    MouseWheel(WindowMouseWheelEvent),
    AxisMotion(WindowAxisMotionEvent),
    TouchpadPressure(WindowTouchpadPressureEvent),
    Touch(WindowTouchEvent),
    ScaleFactorChanged(WindowScaleFactorChangedEvent),
    ThemeChanged(WindowThemeChangedEvent),
}

Window event.

Variants

A redraw was requested by the OS or application code.

A window was resized.

A window was moved.

A window was closed.

A window was destroyed.

A file was dropped on a window.

A file is being hovered over a window.

HoveredFileCancelled(WindowHoveredFileCancelledEvent)

A file that was being hovered over a window was canceled..

A window gained input focus.

A window lost input focus.

A window received keyboard input.

A window received text input.

The mouse cursor entered a window.

The mouse cursor left a window.

The mouse cursor was moved on a window.

A mouse button was pressed or released on a window.

A window received mouse wheel input.

A window received axis motion input.

TouchpadPressure(WindowTouchpadPressureEvent)

A window received touchpad pressure input.

A window received touch input.

ScaleFactorChanged(WindowScaleFactorChangedEvent)

The scale factor between logical and physical pixels for a window changed.

The theme for a window changed.

Implementations

impl WindowEvent[src]

pub fn window_id(&self) -> WindowId[src]

Get the window ID of the event.

Trait Implementations

impl Clone for WindowEvent[src]

impl Debug for WindowEvent[src]

impl From<WindowAxisMotionEvent> for WindowEvent[src]

impl From<WindowCloseRequestedEvent> for WindowEvent[src]

impl From<WindowDestroyedEvent> for WindowEvent[src]

impl From<WindowDroppedFileEvent> for WindowEvent[src]

impl From<WindowEvent> for Event[src]

impl From<WindowFocusGainedEvent> for WindowEvent[src]

impl From<WindowFocusLostEvent> for WindowEvent[src]

impl From<WindowHoveredFileCancelledEvent> for WindowEvent[src]

impl From<WindowHoveredFileEvent> for WindowEvent[src]

impl From<WindowKeyboardInputEvent> for WindowEvent[src]

impl From<WindowMouseButtonEvent> for WindowEvent[src]

impl From<WindowMouseEnterEvent> for WindowEvent[src]

impl From<WindowMouseLeaveEvent> for WindowEvent[src]

impl From<WindowMouseMoveEvent> for WindowEvent[src]

impl From<WindowMouseWheelEvent> for WindowEvent[src]

impl From<WindowMovedEvent> for WindowEvent[src]

impl From<WindowRedrawRequestedEvent> for WindowEvent[src]

impl From<WindowResizedEvent> for WindowEvent[src]

impl From<WindowScaleFactorChangedEvent> for WindowEvent[src]

impl From<WindowTextInputEvent> for WindowEvent[src]

impl From<WindowThemeChangedEvent> for WindowEvent[src]

impl From<WindowTouchEvent> for WindowEvent[src]

impl From<WindowTouchpadPressureEvent> for WindowEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast<T> for T

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Upcast<T> for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,