pub struct WindowEvent {
pub raw: RawWindowEvent,
}Expand description
A window event received by a WindowEventHook.
Fields§
§raw: RawWindowEventThe raw underlying event.
Implementations§
Source§impl WindowEvent
impl WindowEvent
Sourcepub fn from_raw(raw: RawWindowEvent) -> Self
pub fn from_raw(raw: RawWindowEvent) -> Self
Creates a new WindowEvent from a raw event.
Sourcepub fn hook_handle(&self) -> HookHandle
pub fn hook_handle(&self) -> HookHandle
Returns the handle to the shared event hook function.
Sourcepub fn event_type(&self) -> WindowEventType
pub fn event_type(&self) -> WindowEventType
Returns the type of event that occurred.
Sourcepub fn window_handle(&self) -> Option<WindowHandle>
pub fn window_handle(&self) -> Option<WindowHandle>
Returns the handle to the window that generates the event, or None if no window is associated with the event.
Sourcepub fn object_type(&self) -> AccessibleObjectId
pub fn object_type(&self) -> AccessibleObjectId
Returns the type of object associated with the event.
Trait Implementations§
Source§impl Clone for WindowEvent
impl Clone for WindowEvent
Source§fn clone(&self) -> WindowEvent
fn clone(&self) -> WindowEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WindowEvent
Source§impl Debug for WindowEvent
impl Debug for WindowEvent
impl Eq for WindowEvent
Source§impl Hash for WindowEvent
impl Hash for WindowEvent
Source§impl PartialEq for WindowEvent
impl PartialEq for WindowEvent
Source§fn eq(&self, other: &WindowEvent) -> bool
fn eq(&self, other: &WindowEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WindowEvent
Auto Trait Implementations§
impl !Sync for WindowEvent
impl Freeze for WindowEvent
impl RefUnwindSafe for WindowEvent
impl Send for WindowEvent
impl Unpin for WindowEvent
impl UnsafeUnpin for WindowEvent
impl UnwindSafe for WindowEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more