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

A redraw was requested by the OS or application code.

Tuple Fields of RedrawRequested

0: WindowRedrawRequestedEvent

A window was resized.

Tuple Fields of Resized

0: WindowResizedEvent

A window was moved.

Tuple Fields of Moved

0: WindowMovedEvent

A window was closed.

Tuple Fields of CloseRequested

0: WindowCloseRequestedEvent

A window was destroyed.

Tuple Fields of Destroyed

0: WindowDestroyedEvent

A file was dropped on a window.

Tuple Fields of DroppedFile

0: WindowDroppedFileEvent

A file is being hovered over a window.

Tuple Fields of HoveredFile

0: WindowHoveredFileEvent
HoveredFileCancelled(WindowHoveredFileCancelledEvent)

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

Tuple Fields of HoveredFileCancelled

0: WindowHoveredFileCancelledEvent

A window gained input focus.

Tuple Fields of FocusGained

0: WindowFocusGainedEvent

A window lost input focus.

Tuple Fields of FocusLost

0: WindowFocusLostEvent

A window received keyboard input.

Tuple Fields of KeyboardInput

0: WindowKeyboardInputEvent

A window received text input.

Tuple Fields of TextInput

0: WindowTextInputEvent

The mouse cursor entered a window.

Tuple Fields of MouseEnter

0: WindowMouseEnterEvent

The mouse cursor left a window.

Tuple Fields of MouseLeave

0: WindowMouseLeaveEvent

The mouse cursor was moved on a window.

Tuple Fields of MouseMove

0: WindowMouseMoveEvent

A mouse button was pressed or released on a window.

Tuple Fields of MouseButton

0: WindowMouseButtonEvent

A window received mouse wheel input.

Tuple Fields of MouseWheel

0: WindowMouseWheelEvent

A window received axis motion input.

Tuple Fields of AxisMotion

0: WindowAxisMotionEvent
TouchpadPressure(WindowTouchpadPressureEvent)

A window received touchpad pressure input.

Tuple Fields of TouchpadPressure

0: WindowTouchpadPressureEvent

A window received touch input.

Tuple Fields of Touch

0: WindowTouchEvent
ScaleFactorChanged(WindowScaleFactorChangedEvent)

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

Tuple Fields of ScaleFactorChanged

0: WindowScaleFactorChangedEvent

The theme for a window changed.

Tuple Fields of ThemeChanged

0: WindowThemeChangedEvent

Implementations

Get the window ID of the event.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.