Struct UioHookEvent
Represents an event which can be raised by libuiohook.
Implements
Inherited Members
Namespace: SharpHook.Native
Assembly: SharpHook.dll
Syntax
public struct UioHookEvent : IEquatable<UioHookEvent>
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
| Improve this Doc View SourceKeyboard
The event data if this event is keyboard-related.
Declaration
public KeyboardEventData Keyboard
Field Value
Type | Description |
---|---|
KeyboardEventData | The event data if this event is keyboard-related. |
Mask
The mask of the event.
Declaration
public ModifierMask Mask
Field Value
Type | Description |
---|---|
ModifierMask | The mask of the event. |
Mouse
The event data if this event is mouse-related.
Declaration
public MouseEventData Mouse
Field Value
Type | Description |
---|---|
MouseEventData | The event data if this event is mouse-related. |
Reserved
The reserved value which can be set in event handlers.
Declaration
public EventReservedValueMask Reserved
Field Value
Type | Description |
---|---|
EventReservedValueMask | The reserved value which can be set in event handlers. |
Remarks
The value for this field should be set on the same thread which handles the event.
Time
The UNIX timestamp of the event.
Declaration
public ulong Time
Field Value
Type | Description |
---|---|
UInt64 | The UNIX timestamp of the event. |
Type
The type of the event.
Declaration
public EventType Type
Field Value
Type | Description |
---|---|
EventType | The type of the event. |
Wheel
The event data if this event is mouse wheel-related.
Declaration
public MouseWheelEventData Wheel
Field Value
Type | Description |
---|---|
MouseWheelEventData | The event data if this event is mouse wheel-related. |
Methods
| Improve this Doc View SourceEquals(UioHookEvent)
Compares this object to another object for equality.
Declaration
public bool Equals(UioHookEvent e)
Parameters
Type | Name | Description |
---|---|---|
UioHookEvent | e | The object to compare |
Returns
Type | Description |
---|---|
Boolean | true if the objects are equal. Otherwise, false. |
Equals(Object)
Compares this object to another object for equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare |
Returns
Type | Description |
---|---|
Boolean | true if the objects are equal. Otherwise, false. |
Overrides
| Improve this Doc View SourceGetHashCode()
Gets the hash code of this object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | The hash code of this object. |
Overrides
| Improve this Doc View SourceToString()
Returns the string representation of this object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | The string representation of this object. |
Overrides
Operators
| Improve this Doc View SourceEquality(UioHookEvent, UioHookEvent)
Compares two objects for equality.
Declaration
public static bool operator ==(UioHookEvent left, UioHookEvent right)
Parameters
Type | Name | Description |
---|---|---|
UioHookEvent | left | The first object to compare |
UioHookEvent | right | The second object to compare |
Returns
Type | Description |
---|---|
Boolean | true if the objects are equal. Otherwise, false. |
Inequality(UioHookEvent, UioHookEvent)
Compares two objects for inequality.
Declaration
public static bool operator !=(UioHookEvent left, UioHookEvent right)
Parameters
Type | Name | Description |
---|---|---|
UioHookEvent | left | The first object to compare |
UioHookEvent | right | The second object to compare |
Returns
Type | Description |
---|---|
Boolean | true if the objects are not equal. Otherwise, false. |