CGEvent 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
- units
- CGScrollEventUnit
- 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