Platforms to show: All Mac Windows Linux Cross-Platform
NSEventMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa | MBS MacBase Plugin | 7.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 50 properties
- property absoluteX as Integer
- property absoluteY as Integer
- property absoluteZ as Integer
- property associatedEventsMask as Integer
- property buttonMask as Integer
- property buttonNumber as Integer
- property capabilityMask as Integer
- property CGEventRef as Integer
- property characters as string
- property charactersIgnoringModifiers as string
- property clickCount as Integer
- property data1 as Integer
- property data2 as Integer
- property deltaX as Double
- property deltaY as Double
- property deltaZ as Double
- property description as string
- property deviceID as Integer
- property eventNumber as Integer
- property Handle as Integer
- property hasPreciseScrollingDeltas as boolean
- property isARepeat as boolean
- property isDirectionInvertedFromDevice as boolean
- property isEnteringProximity as boolean
- property keyCode as Integer
- property locationInWindow as NSPointMBS
- property magnification as Double
- property modifierFlags as Integer
- property pointingDeviceID as Integer
- property pointingDeviceSerialNumber as Integer
- property pointingDeviceType as Integer
- property pressure as Double
- property rotation as Double
- property scrollingDeltaX as Double
- property scrollingDeltaY as Double
- property stage as Integer
- property stageTransition as Double
- property subtype as Integer
- property systemTabletID as Integer
- property tabletID as Integer
- property tangentialPressure as Double
- property tilt as NSPointMBS
- property timestamp as Double
- property trackingNumber as Integer
- property type as Integer
- property uniqueID as UInt64
- property vendorID as Integer
- property vendorPointingDeviceType as Integer
- property window as NSWindowMBS
- property windowNumber as Integer
- 7 methods
- method allTouches as NSTouchMBS()
- method coalescedTouchesForTouch(touch as NSTouchMBS) as NSTouchMBS()
- method Constructor Private
- method predictedTouchesForTouch(touch as NSTouchMBS) as NSTouchMBS()
- method touchesForView(view as NSViewMBS) as NSTouchMBS()
- method touchesForWindow(win as NSWindowMBS) as NSTouchMBS()
- method touchesMatchingPhase(Phase as Integer, view as NSViewMBS = nil) as NSTouchMBS()
- 12 shared methods
- shared method doubleClickInterval as Double
- shared method eventWithCGEvent(CGEventRef as Integer) as NSEventMBS
- shared method isMouseCoalescingEnabled as boolean
- shared method keyEvent(Type as Integer, LocationX as Double, LocationY as Double, modifierFlags as Integer, timeStamp as double, windowNumber as Integer, characters as String, charactersIgnoringModifiers as String, isARepeat as boolean, keyCode as Integer) as NSEventMBS
- shared method keyRepeatDelay as Double
- shared method keyRepeatInterval as Double
- shared method modifierFlagsGlobal as UInt32
- shared method mouseEvent(Type as Integer, LocationX as Double, LocationY as Double, modifierFlags as Integer, timeStamp as double, windowNumber as Integer, eventNumber as Integer, clickCount as Integer, pressure as Single) as NSEventMBS
- shared method mouseLocation as NSPointMBS
- shared method otherEvent(Type as Integer, LocationX as Double, LocationY as Double, modifierFlags as Integer, timeStamp as double, windowNumber as Integer, SubType as Integer, Data1 as Integer, Data2 as Integer) as NSEventMBS
- shared method pressedMouseButtons as UInt32
- shared method setMouseCoalescingEnabled(Value as boolean)
- 161 constants
This class has no sub classes.
Blog Entries
- Intercept Menus with MBS Xojo Plugins
- News from the MBS Xojo Plugins Version 24.2
- MBS Xojo Plugins, version 24.2pr2
- MonkeyBread Software Releases the MBS Xojo Plugins in version 24.1
- MBS Xojo Plugins, version 24.1pr4
- MBS Xojo Plugins, version 24.1pr3
- MBS Xojo Plugins, version 23.5pr7
- News from the MBS Xojo Plugins Version 22.3
- MBS Xojo Plugins, version 22.3pr2
- Gestures on Mac OS X
Release notes
- Version 24.2
- Added touchesMatchingPhase, coalescedTouchesForTouch and predictedTouchesForTouch methods to NSEventMBS class.
- Version 24.1
- Enabled allTouches in NSEventMBS class for macOS.
- Fixed mouseEvent shared method in NSEventMBS to return NSEventMBS.
- Version 23.5
- Updated NSEventMBS class to work on iOS with UIEvent internally.
- Version 22.3
- Added shared methods for NSEventMBS class to create events.
- Version 18.2
- Added NSEventMBS.eventWithCGEvent function and NSEventMBS.CGEventRef property.
Some methods using this class:
- NSApplicationMBS.sendEvent(theEvent as NSEventMBS)
- NSClipViewMBS.autoscroll(theEvent as NSEventMBS) as boolean
- NSMenuMBS.popUpContextMenu(menu as NSMenuMBS, theEvent as NSEventMBS, view as NSViewMBS, font as NSFontMBS = nil)
- NSResponderMBS.endGestureWithEvent(e as NSEventMBS)
- NSResponderMBS.mouseExited(e as NSEventMBS)
- NSResponderMBS.rightMouseDown(e as NSEventMBS)
- NSResponderMBS.scrollWheel(e as NSEventMBS)
- NSResponderMBS.swipeWithEvent(e as NSEventMBS)
- NSResponderMBS.tabletProximity(e as NSEventMBS)
- NSWindowMBS.sendEvent(e as NSEventMBS)
Some properties using for this class:
- NSApplicationMBS.currentEvent as NSEventMBS
- NSWindowMBS.currentEvent as NSEventMBS
Some events using this class:
- CanvasGesturesMBS.touchesMovedWithEvent(can as Variant, e as NSEventMBS) as boolean
- CustomNSScrollerMBS.mouseEntered(e as NSEventMBS, x as Double, y as Double) as boolean
- CustomNSTextFieldMBS.magnifyWithEvent(e as NSEventMBS) as boolean
- CustomNSViewMBS.otherMouseDown(e as NSEventMBS, x as Double, y as Double) as boolean
- DesktopOSAScriptControlMBS.didCloseContextualMenu(menu as NSMenuMBS, NSEvent as NSEventMBS)
- NSEventMonitorMBS.LocalEvent(e as NSEventMBS) as NSEventMBS
- NSSplitViewControlMBS.didCloseContextualMenu(menu as NSMenuMBS, NSEvent as NSEventMBS)
- PDFThumbnailViewControlMBS.didCloseContextualMenu(menu as NSMenuMBS, NSEvent as NSEventMBS)
- PHLivePhotoControlMBS.didCloseContextualMenu(menu as NSMenuMBS, NSEvent as NSEventMBS)
- SCNIOSControlMBS.touchesBegan(e as NSEventMBS, touches() as NSTouchMBS) as boolean
Some examples using this class:
- /Mac64bit/WebKit2/DesktopWebView
- /MacCocoa/Custom NSViewControl Drag
- /MacCocoa/MovableByBackground
- /MacCocoa/NSStatusItem/StatusItem with NSView
- /MacCocoa/NSWindow transparent
- /MacControls/Custom NSView without CocoaControl
- /MacControls/CustomNSView to capture gestures
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListboxTV with ContainerControl Cells
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Hierarchical & Flat/ListBoxTV OutlineView
- /MacFrameworks/CustomNSTextFieldMBS test
Some related classes:
- class CanvasGesturesMBS
- class CustomNSScrollerMBS
- class CustomNSViewMBS
- class NSApplicationMBS
- class NSClipViewMBS
- class NSFontMBS
- class NSMenuMBS
- class NSPointMBS
- class NSResponderMBS
- class NSViewMBS
The items on this page are in the following plugins: MBS MacBase Plugin.
NSErrorMBS - NSEventMonitorMBS
