Enum show_image::event::WindowEvent
source · pub enum WindowEvent {
Show 24 variants
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),
TouchpadMagnify(WindowTouchpadMagnifyEvent),
TouchpadRotate(WindowTouchpadRotateEvent),
Touch(WindowTouchEvent),
ScaleFactorChanged(WindowScaleFactorChangedEvent),
ThemeChanged(WindowThemeChangedEvent),
}
Expand description
Window event.
Variants§
RedrawRequested(WindowRedrawRequestedEvent)
A redraw was requested by the OS or application code.
Resized(WindowResizedEvent)
A window was resized.
Moved(WindowMovedEvent)
A window was moved.
CloseRequested(WindowCloseRequestedEvent)
A window was closed.
Destroyed(WindowDestroyedEvent)
A window was destroyed.
DroppedFile(WindowDroppedFileEvent)
A file was dropped on a window.
HoveredFile(WindowHoveredFileEvent)
A file is being hovered over a window.
HoveredFileCancelled(WindowHoveredFileCancelledEvent)
A file that was being hovered over a window was canceled..
FocusGained(WindowFocusGainedEvent)
A window gained input focus.
FocusLost(WindowFocusLostEvent)
A window lost input focus.
KeyboardInput(WindowKeyboardInputEvent)
A window received keyboard input.
TextInput(WindowTextInputEvent)
A window received text input.
MouseEnter(WindowMouseEnterEvent)
The mouse cursor entered a window.
MouseLeave(WindowMouseLeaveEvent)
The mouse cursor left a window.
MouseMove(WindowMouseMoveEvent)
The mouse cursor was moved on a window.
MouseButton(WindowMouseButtonEvent)
A mouse button was pressed or released on a window.
MouseWheel(WindowMouseWheelEvent)
A window received mouse wheel input.
AxisMotion(WindowAxisMotionEvent)
A window received axis motion input.
TouchpadPressure(WindowTouchpadPressureEvent)
A window received touchpad pressure input.
TouchpadMagnify(WindowTouchpadMagnifyEvent)
A window received a touchpad magnify event.
On supported platforms, the event is triggered moving two fingers towards or away from each-other on the touchpad.
Platform specific: Only available on macOS.
TouchpadRotate(WindowTouchpadRotateEvent)
A window received a touchpad rotate event.
On supported platforms, the event is triggered putting two fingers on the touchpad and rotating them.
Platform specific: Only available on macOS.
Touch(WindowTouchEvent)
A window received touch input.
ScaleFactorChanged(WindowScaleFactorChangedEvent)
The scale factor between logical and physical pixels for a window changed.
ThemeChanged(WindowThemeChangedEvent)
The theme for a window changed.
Implementations§
Trait Implementations§
source§impl Clone for WindowEvent
impl Clone for WindowEvent
source§fn clone(&self) -> WindowEvent
fn clone(&self) -> WindowEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more