CGEvent Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CGEvent(CGEventSource)
public CGEvent (CoreGraphics.CGEventSource eventSource);
new CoreGraphics.CGEvent : CoreGraphics.CGEventSource -> CoreGraphics.CGEvent
Parameters
- eventSource
- CGEventSource
Applies to
CGEvent(NSData)
public CGEvent (Foundation.NSData source);
new CoreGraphics.CGEvent : Foundation.NSData -> CoreGraphics.CGEvent
Parameters
- source
- NSData
Applies to
CGEvent(IntPtr)
public CGEvent (IntPtr handle);
new CoreGraphics.CGEvent : nativeint -> CoreGraphics.CGEvent
Parameters
- handle
-
IntPtr
nativeint
Applies to
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
Parameters
- source
- CGEventSource
- units
- CGScrollEventUnit
- wheel
- Int32[]
Applies to
CGEvent(CGEventSource, UInt16, Boolean)
public CGEvent (CoreGraphics.CGEventSource source, ushort virtualKey, bool keyDown);
new CoreGraphics.CGEvent : CoreGraphics.CGEventSource * uint16 * bool -> CoreGraphics.CGEvent
Parameters
- source
- CGEventSource
- virtualKey
- UInt16
- keyDown
- Boolean
Applies to
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
Parameters
- source
- CGEventSource
- mouseType
- CGEventType
- mouseCursorPosition
- CGPoint
- mouseButton
- CGMouseButton