Struct UioHookEvent
Represents an event which can be raised by libuiohook.
[ExcludeFromCodeCoverage]
public struct UioHookEvent : IEquatable<UioHookEvent>
- Implements
- Inherited Members
Remarks
This is a union-like struct and the data it contains depends on the type of the event.
The Keyboard field is available for the events of the following types:
The Mouse field is available for the events of the following types:
The Wheel field is available for the events of the following type:
Fields
Keyboard
The event data if this event is keyboard-related.
public KeyboardEventData Keyboard
Field Value
- KeyboardEventData
The event data if this event is keyboard-related.
Mask
The mask of the event.
public EventMask Mask
Field Value
- EventMask
The mask of the event.
Mouse
The event data if this event is mouse-related.
public MouseEventData Mouse
Field Value
- MouseEventData
The event data if this event is mouse-related.
Time
The UNIX timestamp of the event.
public ulong Time
Field Value
- ulong
The UNIX timestamp of the event.
Type
The type of the event.
public EventType Type
Field Value
- EventType
The type of the event.
Wheel
The event data if this event is mouse wheel-related.
public MouseWheelEventData Wheel
Field Value
- MouseWheelEventData
The event data if this event is mouse wheel-related.
Methods
Equals(UioHookEvent)
Compares this object to another object for equality.
public readonly bool Equals(UioHookEvent e)
Parameters
eUioHookEventThe object to compare
Returns
Equals(object?)
Compares this object to another object for equality.
public override readonly bool Equals(object? obj)
Parameters
objobjectThe object to compare
Returns
GetHashCode()
Gets the hash code of this object.
public override readonly int GetHashCode()
Returns
- int
The hash code of this object.
ToString()
Returns the string representation of this object.
public override readonly string ToString()
Returns
- string
The string representation of this object.
Operators
operator ==(UioHookEvent, UioHookEvent)
Compares two objects for equality.
public static bool operator ==(UioHookEvent left, UioHookEvent right)
Parameters
leftUioHookEventThe first object to compare
rightUioHookEventThe second object to compare
Returns
operator !=(UioHookEvent, UioHookEvent)
Compares two objects for inequality.
public static bool operator !=(UioHookEvent left, UioHookEvent right)
Parameters
leftUioHookEventThe first object to compare
rightUioHookEventThe second object to compare