CGEvent 构造函数

定义

重载

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

CGEvent(CGEventSource)

public CGEvent (CoreGraphics.CGEventSource eventSource);
new CoreGraphics.CGEvent : CoreGraphics.CGEventSource -> CoreGraphics.CGEvent

参数

eventSource
CGEventSource

适用于

CGEvent(NSData)

public CGEvent (Foundation.NSData source);
new CoreGraphics.CGEvent : Foundation.NSData -> CoreGraphics.CGEvent

参数

source
NSData

适用于

CGEvent(IntPtr)

public CGEvent (IntPtr handle);
new CoreGraphics.CGEvent : nativeint -> CoreGraphics.CGEvent

参数

handle
IntPtr

nativeint

适用于

CGEvent(CGEventSource, CGScrollEventUnit, Int32[])

public CGEvent (CoreGraphics.CGEventSource source, CoreGraphics.CGScrollEventUnit units, params int[] wheel);
new CoreGraphics.CGEvent : CoreGraphics.CGEventSource * CoreGraphics.CGScrollEventUnit * int[] -> CoreGraphics.CGEvent

参数

source
CGEventSource
wheel
Int32[]

适用于

CGEvent(CGEventSource, UInt16, Boolean)

public CGEvent (CoreGraphics.CGEventSource source, ushort virtualKey, bool keyDown);
new CoreGraphics.CGEvent : CoreGraphics.CGEventSource * uint16 * bool -> CoreGraphics.CGEvent

参数

source
CGEventSource
virtualKey
UInt16
keyDown
Boolean

适用于

CGEvent(CGEventSource, CGEventType, CGPoint, CGMouseButton)

public CGEvent (CoreGraphics.CGEventSource source, CoreGraphics.CGEventType mouseType, CoreGraphics.CGPoint mouseCursorPosition, CoreGraphics.CGMouseButton mouseButton);
new CoreGraphics.CGEvent : CoreGraphics.CGEventSource * CoreGraphics.CGEventType * CoreGraphics.CGPoint * CoreGraphics.CGMouseButton -> CoreGraphics.CGEvent

参数

source
CGEventSource
mouseType
CGEventType
mouseCursorPosition
CGPoint
mouseButton
CGMouseButton

适用于