Struct wineventhook::WindowEvent
source · pub struct WindowEvent {
pub raw: RawWindowEvent,
}
Expand description
A window event received by a WindowEventHook
.
Fields§
§raw: RawWindowEvent
The 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) -> MaybeKnown<AccessibleObjectId>
pub fn object_type(&self) -> MaybeKnown<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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WindowEvent
impl Debug 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
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WindowEvent
impl Eq for WindowEvent
impl StructuralPartialEq for WindowEvent
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§
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