Share via


NSEvent.MouseEvent Method

Definition

[Foundation.Export("mouseEventWithType:location:modifierFlags:timestamp:windowNumber:context:eventNumber:clickCount:pressure:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static AppKit.NSEvent MouseEvent(AppKit.NSEventType type, CoreGraphics.CGPoint location, AppKit.NSEventModifierMask flags, double time, IntPtr wNum, AppKit.NSGraphicsContext? context, IntPtr eNum, IntPtr cNum, float pressure);
[<Foundation.Export("mouseEventWithType:location:modifierFlags:timestamp:windowNumber:context:eventNumber:clickCount:pressure:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member MouseEvent : AppKit.NSEventType * CoreGraphics.CGPoint * AppKit.NSEventModifierMask * double * nativeint * AppKit.NSGraphicsContext * nativeint * nativeint * single -> AppKit.NSEvent

Parameters

location
CGPoint
time
Double
wNum
IntPtr

nativeint

eNum
IntPtr

nativeint

cNum
IntPtr

nativeint

pressure
Single

Returns

Attributes

Applies to