CGEvent 类

定义

public sealed class CGEvent : IDisposable, ObjCRuntime.INativeObject
type CGEvent = class
    interface IDisposable
    interface INativeObject
继承
CGEvent
实现

构造函数

CGEvent(CGEventSource, CGEventType, CGPoint, CGMouseButton)
CGEvent(CGEventSource, CGScrollEventUnit, Int32[])
CGEvent(CGEventSource, UInt16, Boolean)
CGEvent(CGEventSource)
CGEvent(IntPtr)
CGEvent(NSData)

属性

EventType
Flags
Handle
Location
MouseEventButtonNumber
MouseEventClickState
MouseEventDeltaX
MouseEventDeltaY
MouseEventInstantMouser
MouseEventNumber
MouseEventPressure
MouseEventSubtype
Timestamp
Timestampe
UnflippedLocation

方法

Copy()
CreateEventSource()
CreateTap(CGEventTapLocation, CGEventTapPlacement, CGEventTapOptions, CGEventMask, CGEvent+CGEventTapCallback, IntPtr)
CreateTap(IntPtr, CGEventTapLocation, CGEventTapPlacement, CGEventTapOptions, CGEventMask, CGEvent+CGEventTapCallback, IntPtr)
Dispose()
Dispose(Boolean)
Finalize()
GetEventTapList()
GetFlags(IntPtr)
GetUnicodeString()
IsTapEnabled(CFMachPort)
Post(CGEvent, CGEventTapLocation)
PostToPSN(CGEvent, IntPtr)
SetEventSource(CGEventSource)
SetUnicodeString(String)
TapDisable(CFMachPort)
TapEnable(CFMachPort)
TapPostEven(IntPtr, CGEvent)
ToData()

适用于