MonobjcMonobjc Documented Class Library
EnterExitEventWithTypeLocationModifierFlagsTimestampWindowNumberContextEventNumberTrackingNumberUserData Method (type, location, flags, time, windowNumber, context, eventNumber, trackingNumber, userData)
NamespacesMonobjc.AppKitNSEventEnterExitEventWithTypeLocationModifierFlagsTimestampWindowNumberContextEventNumberTrackingNumberUserData(NSEventType, NSPoint, NSUInteger, Double, NSInteger, NSGraphicsContext, NSInteger, NSInteger, IntPtr)

Returns a new NSEvent object describing a tracking-rectangle or cursor-update event.

Original signature is '+ (NSEvent *)enterExitEventWithType:(NSEventType)type location:(NSPoint)location modifierFlags:(NSUInteger)flags timestamp:(NSTimeInterval)time windowNumber:(NSInteger)windowNumber context:(NSGraphicsContext *)context eventNumber:(NSInteger)eventNumber trackingNumber:(NSInteger)trackingNumber userData:(void *)userData'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSEvent EnterExitEventWithTypeLocationModifierFlagsTimestampWindowNumberContextEventNumberTrackingNumberUserData(
	NSEventType type,
	NSPoint location,
	NSUInteger flags,
	double time,
	NSInteger windowNumber,
	NSGraphicsContext context,
	NSInteger eventNumber,
	NSInteger trackingNumber,
	IntPtr userData
)
Public Shared Function EnterExitEventWithTypeLocationModifierFlagsTimestampWindowNumberContextEventNumberTrackingNumberUserData ( _
	type As NSEventType, _
	location As NSPoint, _
	flags As NSUInteger, _
	time As Double, _
	windowNumber As NSInteger, _
	context As NSGraphicsContext, _
	eventNumber As NSInteger, _
	trackingNumber As NSInteger, _
	userData As IntPtr _
) As NSEvent
public:
static NSEvent^ EnterExitEventWithTypeLocationModifierFlagsTimestampWindowNumberContextEventNumberTrackingNumberUserData(
	NSEventType type, 
	NSPoint location, 
	NSUInteger flags, 
	double time, 
	NSInteger windowNumber, 
	NSGraphicsContext^ context, 
	NSInteger eventNumber, 
	NSInteger trackingNumber, 
	IntPtr userData
)
Parameters
type (NSEventType)
One of the following event-type constants: NSMouseEntered, NSMouseExited, NSCursorUpdate. If the specified constant is not one of these, an NSInternalInconsistencyException is raised
location (NSPoint)
The cursor location in the base coordinate system of the window specified by windowNum.
flags (NSUInteger)
An integer bit field containing any of the modifier key masks described in “Constants,” combined using the C bitwise OR operator.
time (Double)
The time the event occurred in seconds since system startup.
windowNumber (NSInteger)
MISSING
context (NSGraphicsContext)
The display graphics context of the event.
eventNumber (NSInteger)
An identifier for the new event. It’s normally taken from a counter for mouse events, which continually increases as the application runs.
trackingNumber (NSInteger)
A number that identifies the tracking rectangle. This identifier is the same as that returned by the NSView method addTrackingRect:owner:userData:assumeInside:.
userData (IntPtr)
Data arbitrarily associated with the tracking rectangle when it was set up using the NSView method addTrackingRect:owner:userData:assumeInside:.
Return Value
The created NSEvent object or nil if the object could not be created.
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)