Enum show_image::event::WindowEvent [−][src]
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
impl WindowEvent
[src]
Trait Implementations
impl Clone for WindowEvent
[src]
fn clone(&self) -> WindowEvent
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for WindowEvent
[src]
impl From<WindowAxisMotionEvent> for WindowEvent
[src]
fn from(other: WindowAxisMotionEvent) -> Self
[src]
impl From<WindowCloseRequestedEvent> for WindowEvent
[src]
fn from(other: WindowCloseRequestedEvent) -> Self
[src]
impl From<WindowDestroyedEvent> for WindowEvent
[src]
fn from(other: WindowDestroyedEvent) -> Self
[src]
impl From<WindowDroppedFileEvent> for WindowEvent
[src]
fn from(other: WindowDroppedFileEvent) -> Self
[src]
impl From<WindowEvent> for Event
[src]
fn from(other: WindowEvent) -> Self
[src]
impl From<WindowFocusGainedEvent> for WindowEvent
[src]
fn from(other: WindowFocusGainedEvent) -> Self
[src]
impl From<WindowFocusLostEvent> for WindowEvent
[src]
fn from(other: WindowFocusLostEvent) -> Self
[src]
impl From<WindowHoveredFileCancelledEvent> for WindowEvent
[src]
fn from(other: WindowHoveredFileCancelledEvent) -> Self
[src]
impl From<WindowHoveredFileEvent> for WindowEvent
[src]
fn from(other: WindowHoveredFileEvent) -> Self
[src]
impl From<WindowKeyboardInputEvent> for WindowEvent
[src]
fn from(other: WindowKeyboardInputEvent) -> Self
[src]
impl From<WindowMouseButtonEvent> for WindowEvent
[src]
fn from(other: WindowMouseButtonEvent) -> Self
[src]
impl From<WindowMouseEnterEvent> for WindowEvent
[src]
fn from(other: WindowMouseEnterEvent) -> Self
[src]
impl From<WindowMouseLeaveEvent> for WindowEvent
[src]
fn from(other: WindowMouseLeaveEvent) -> Self
[src]
impl From<WindowMouseMoveEvent> for WindowEvent
[src]
fn from(other: WindowMouseMoveEvent) -> Self
[src]
impl From<WindowMouseWheelEvent> for WindowEvent
[src]
fn from(other: WindowMouseWheelEvent) -> Self
[src]
impl From<WindowMovedEvent> for WindowEvent
[src]
fn from(other: WindowMovedEvent) -> Self
[src]
impl From<WindowRedrawRequestedEvent> for WindowEvent
[src]
fn from(other: WindowRedrawRequestedEvent) -> Self
[src]
impl From<WindowResizedEvent> for WindowEvent
[src]
fn from(other: WindowResizedEvent) -> Self
[src]
impl From<WindowScaleFactorChangedEvent> for WindowEvent
[src]
fn from(other: WindowScaleFactorChangedEvent) -> Self
[src]
impl From<WindowTextInputEvent> for WindowEvent
[src]
fn from(other: WindowTextInputEvent) -> Self
[src]
impl From<WindowThemeChangedEvent> for WindowEvent
[src]
fn from(other: WindowThemeChangedEvent) -> Self
[src]
impl From<WindowTouchEvent> for WindowEvent
[src]
fn from(other: WindowTouchEvent) -> Self
[src]
impl From<WindowTouchpadPressureEvent> for WindowEvent
[src]
fn from(other: WindowTouchpadPressureEvent) -> Self
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast<T> for T
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Upcast<T> for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,