MonobjcMonobjc Documented Class Library
EventWithCGEvent Method (cgEvent)

Creates and returns an event object that is based on a Core Graphics type of event.

Original signature is '+ (NSEvent *)eventWithCGEvent:(CGEventRef)cgEvent'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSEvent EventWithCGEvent(
	IntPtr cgEvent
Public Shared Function EventWithCGEvent ( _
	cgEvent As IntPtr _
) As NSEvent
static NSEvent^ EventWithCGEvent(
	IntPtr cgEvent
cgEvent (IntPtr)
A CGEventRef opaque type that represents an event.
Return Value
An autoreleased NSEvent object that is equivalent to cgEvent.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)