Enum show_image::event::WindowEvent
source · [−]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.
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.
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
sourceimpl WindowEvent
impl WindowEvent
Trait Implementations
sourceimpl Clone for WindowEvent
impl Clone for WindowEvent
sourcefn clone(&self) -> WindowEvent
fn clone(&self) -> WindowEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WindowEvent
impl Debug for WindowEvent
sourceimpl From<WindowAxisMotionEvent> for WindowEvent
impl From<WindowAxisMotionEvent> for WindowEvent
sourcefn from(other: WindowAxisMotionEvent) -> Self
fn from(other: WindowAxisMotionEvent) -> Self
Converts to this type from the input type.
sourceimpl From<WindowCloseRequestedEvent> for WindowEvent
impl From<WindowCloseRequestedEvent> for WindowEvent
sourcefn from(other: WindowCloseRequestedEvent) -> Self
fn from(other: WindowCloseRequestedEvent) -> Self
Converts to this type from the input type.
sourceimpl From<WindowDestroyedEvent> for WindowEvent
impl From<WindowDestroyedEvent> for WindowEvent
sourcefn from(other: WindowDestroyedEvent) -> Self
fn from(other: WindowDestroyedEvent) -> Self
Converts to this type from the input type.
sourceimpl From<WindowDroppedFileEvent> for WindowEvent
impl From<WindowDroppedFileEvent> for WindowEvent
sourcefn from(other: WindowDroppedFileEvent) -> Self
fn from(other: WindowDroppedFileEvent) -> Self
Converts to this type from the input type.
sourceimpl From<WindowEvent> for Event
impl From<WindowEvent> for Event
sourcefn from(other: WindowEvent) -> Self
fn from(other: WindowEvent) -> Self
Converts to this type from the input type.
sourceimpl From<WindowFocusGainedEvent> for WindowEvent
impl From<WindowFocusGainedEvent> for WindowEvent
sourcefn from(other: WindowFocusGainedEvent) -> Self
fn from(other: WindowFocusGainedEvent) -> Self
Converts to this type from the input type.
sourceimpl From<WindowFocusLostEvent> for WindowEvent
impl From<WindowFocusLostEvent> for WindowEvent
sourcefn from(other: WindowFocusLostEvent) -> Self
fn from(other: WindowFocusLostEvent) -> Self
Converts to this type from the input type.
sourceimpl From<WindowHoveredFileCancelledEvent> for WindowEvent
impl From<WindowHoveredFileCancelledEvent> for WindowEvent
sourcefn from(other: WindowHoveredFileCancelledEvent) -> Self
fn from(other: WindowHoveredFileCancelledEvent) -> Self
Converts to this type from the input type.
sourceimpl From<WindowHoveredFileEvent> for WindowEvent
impl From<WindowHoveredFileEvent> for WindowEvent
sourcefn from(other: WindowHoveredFileEvent) -> Self
fn from(other: WindowHoveredFileEvent) -> Self
Converts to this type from the input type.
sourceimpl From<WindowKeyboardInputEvent> for WindowEvent
impl From<WindowKeyboardInputEvent> for WindowEvent
sourcefn from(other: WindowKeyboardInputEvent) -> Self
fn from(other: WindowKeyboardInputEvent) -> Self
Converts to this type from the input type.
sourceimpl From<WindowMouseButtonEvent> for WindowEvent
impl From<WindowMouseButtonEvent> for WindowEvent
sourcefn from(other: WindowMouseButtonEvent) -> Self
fn from(other: WindowMouseButtonEvent) -> Self
Converts to this type from the input type.
sourceimpl From<WindowMouseEnterEvent> for WindowEvent
impl From<WindowMouseEnterEvent> for WindowEvent
sourcefn from(other: WindowMouseEnterEvent) -> Self
fn from(other: WindowMouseEnterEvent) -> Self
Converts to this type from the input type.
sourceimpl From<WindowMouseLeaveEvent> for WindowEvent
impl From<WindowMouseLeaveEvent> for WindowEvent
sourcefn from(other: WindowMouseLeaveEvent) -> Self
fn from(other: WindowMouseLeaveEvent) -> Self
Converts to this type from the input type.
sourceimpl From<WindowMouseMoveEvent> for WindowEvent
impl From<WindowMouseMoveEvent> for WindowEvent
sourcefn from(other: WindowMouseMoveEvent) -> Self
fn from(other: WindowMouseMoveEvent) -> Self
Converts to this type from the input type.
sourceimpl From<WindowMouseWheelEvent> for WindowEvent
impl From<WindowMouseWheelEvent> for WindowEvent
sourcefn from(other: WindowMouseWheelEvent) -> Self
fn from(other: WindowMouseWheelEvent) -> Self
Converts to this type from the input type.
sourceimpl From<WindowMovedEvent> for WindowEvent
impl From<WindowMovedEvent> for WindowEvent
sourcefn from(other: WindowMovedEvent) -> Self
fn from(other: WindowMovedEvent) -> Self
Converts to this type from the input type.
sourceimpl From<WindowRedrawRequestedEvent> for WindowEvent
impl From<WindowRedrawRequestedEvent> for WindowEvent
sourcefn from(other: WindowRedrawRequestedEvent) -> Self
fn from(other: WindowRedrawRequestedEvent) -> Self
Converts to this type from the input type.
sourceimpl From<WindowResizedEvent> for WindowEvent
impl From<WindowResizedEvent> for WindowEvent
sourcefn from(other: WindowResizedEvent) -> Self
fn from(other: WindowResizedEvent) -> Self
Converts to this type from the input type.
sourceimpl From<WindowScaleFactorChangedEvent> for WindowEvent
impl From<WindowScaleFactorChangedEvent> for WindowEvent
sourcefn from(other: WindowScaleFactorChangedEvent) -> Self
fn from(other: WindowScaleFactorChangedEvent) -> Self
Converts to this type from the input type.
sourceimpl From<WindowTextInputEvent> for WindowEvent
impl From<WindowTextInputEvent> for WindowEvent
sourcefn from(other: WindowTextInputEvent) -> Self
fn from(other: WindowTextInputEvent) -> Self
Converts to this type from the input type.
sourceimpl From<WindowThemeChangedEvent> for WindowEvent
impl From<WindowThemeChangedEvent> for WindowEvent
sourcefn from(other: WindowThemeChangedEvent) -> Self
fn from(other: WindowThemeChangedEvent) -> Self
Converts to this type from the input type.
sourceimpl From<WindowTouchEvent> for WindowEvent
impl From<WindowTouchEvent> for WindowEvent
sourcefn from(other: WindowTouchEvent) -> Self
fn from(other: WindowTouchEvent) -> Self
Converts to this type from the input type.
sourceimpl From<WindowTouchpadPressureEvent> for WindowEvent
impl From<WindowTouchpadPressureEvent> for WindowEvent
sourcefn from(other: WindowTouchpadPressureEvent) -> Self
fn from(other: WindowTouchpadPressureEvent) -> Self
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more