Enum show_image::event::WindowEvent [−][src]
pub enum WindowEvent {
Show 22 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),
Touch(WindowTouchEvent),
ScaleFactorChanged(WindowScaleFactorChangedEvent),
ThemeChanged(WindowThemeChangedEvent),
}
Expand description
Window event.
Variants
RedrawRequested(WindowRedrawRequestedEvent)
A redraw was requested by the OS or application code.
Tuple Fields of RedrawRequested
Resized(WindowResizedEvent)
A window was resized.
Tuple Fields of Resized
Moved(WindowMovedEvent)
A window was moved.
Tuple Fields of Moved
CloseRequested(WindowCloseRequestedEvent)
A window was closed.
Tuple Fields of CloseRequested
Destroyed(WindowDestroyedEvent)
A window was destroyed.
Tuple Fields of Destroyed
DroppedFile(WindowDroppedFileEvent)
A file was dropped on a window.
Tuple Fields of DroppedFile
HoveredFile(WindowHoveredFileEvent)
A file is being hovered over a window.
Tuple Fields of HoveredFile
HoveredFileCancelled(WindowHoveredFileCancelledEvent)
A file that was being hovered over a window was canceled..
Tuple Fields of HoveredFileCancelled
FocusGained(WindowFocusGainedEvent)
A window gained input focus.
Tuple Fields of FocusGained
FocusLost(WindowFocusLostEvent)
A window lost input focus.
Tuple Fields of FocusLost
KeyboardInput(WindowKeyboardInputEvent)
A window received keyboard input.
Tuple Fields of KeyboardInput
TextInput(WindowTextInputEvent)
A window received text input.
Tuple Fields of TextInput
MouseEnter(WindowMouseEnterEvent)
The mouse cursor entered a window.
Tuple Fields of MouseEnter
MouseLeave(WindowMouseLeaveEvent)
The mouse cursor left a window.
Tuple Fields of MouseLeave
MouseMove(WindowMouseMoveEvent)
The mouse cursor was moved on a window.
Tuple Fields of MouseMove
MouseButton(WindowMouseButtonEvent)
A mouse button was pressed or released on a window.
Tuple Fields of MouseButton
MouseWheel(WindowMouseWheelEvent)
A window received mouse wheel input.
Tuple Fields of MouseWheel
AxisMotion(WindowAxisMotionEvent)
A window received axis motion input.
Tuple Fields of AxisMotion
TouchpadPressure(WindowTouchpadPressureEvent)
A window received touchpad pressure input.
Tuple Fields of TouchpadPressure
Touch(WindowTouchEvent)
A window received touch input.
Tuple Fields of Touch
ScaleFactorChanged(WindowScaleFactorChangedEvent)
The scale factor between logical and physical pixels for a window changed.
Tuple Fields of ScaleFactorChanged
ThemeChanged(WindowThemeChangedEvent)
The theme for a window changed.
Tuple Fields of ThemeChanged
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for WindowEvent
impl Send for WindowEvent
impl Sync for WindowEvent
impl Unpin for WindowEvent
impl UnwindSafe for WindowEvent
Blanket Implementations
Mutably borrows from an owned value. Read more