Enum wineventhook::WindowEventType
source · #[non_exhaustive]pub enum WindowEventType {
System(MaybeKnown<SystemWindowEvent>),
OemDefined(i32),
Console(MaybeKnown<ConsoleWindowEvent>),
UiaEvent(i32),
UiaPropertyChange(i32),
Object(MaybeKnown<ObjectWindowEvent>),
Atom(i32),
Aia(i32),
Other(i32),
}
Expand description
The type of window event. See Event Constants, System-Level and Object-Level Events and Allocation of WinEvent IDs for more information.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
System(MaybeKnown<SystemWindowEvent>)
An event describing a situation affecting all applications in the system.
OemDefined(i32)
An event describing an OEM defined event.
Console(MaybeKnown<ConsoleWindowEvent>)
An event indicating a change in a console window.
UiaEvent(i32)
An UI Automation event.
UiaPropertyChange(i32)
An Ui Automation property change event.
Object(MaybeKnown<ObjectWindowEvent>)
An event pertaining to a situation specific to objects within one application.
Atom(i32)
An event that was allocated at runtime through the UI Automation extensibility API using GlobalAddAtom
.
Aia(i32)
An event defined by Accessibility Interoperability Alliance (AIA) specifications.
Other(i32)
An unknown event.
Trait Implementations§
source§impl Clone for WindowEventType
impl Clone for WindowEventType
source§fn clone(&self) -> WindowEventType
fn clone(&self) -> WindowEventType
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 WindowEventType
impl Debug for WindowEventType
source§impl From<i32> for WindowEventType
impl From<i32> for WindowEventType
source§impl Hash for WindowEventType
impl Hash for WindowEventType
source§impl Ord for WindowEventType
impl Ord for WindowEventType
source§fn cmp(&self, other: &WindowEventType) -> Ordering
fn cmp(&self, other: &WindowEventType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for WindowEventType
impl PartialEq for WindowEventType
source§fn eq(&self, other: &WindowEventType) -> bool
fn eq(&self, other: &WindowEventType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for WindowEventType
impl PartialOrd for WindowEventType
source§fn partial_cmp(&self, other: &WindowEventType) -> Option<Ordering>
fn partial_cmp(&self, other: &WindowEventType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for WindowEventType
impl Eq for WindowEventType
impl StructuralPartialEq for WindowEventType
Auto Trait Implementations§
impl RefUnwindSafe for WindowEventType
impl Send for WindowEventType
impl Sync for WindowEventType
impl Unpin for WindowEventType
impl UnwindSafe for WindowEventType
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