NSMenuDelegate class interface

NSMenuDelegate

Constructors

NSMenuDelegate.castFrom(ObjCObjectBase other)
Constructs a NSMenuDelegate that points to the same underlying object as other.
NSMenuDelegate.castFromPointer(Pointer<ObjCObject> other, {bool retain = false, bool release = false})
Constructs a NSMenuDelegate that wraps the given raw object pointer.

Properties

hashCode → int
The hash code for this object.
no setterinherited
ref → ObjCObjectRef
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

$protocol → Protocol
Returns the objc.Protocol object for this protocol.
no setter
confinementRectForMenu_onScreen_ → ObjCProtocolMethod<NSRect Function(NSMenu, NSScreen?)>
confinementRectForMenu:onScreen:
final
menu:updateItem:atIndex:shouldCancel:
final
menu:willHighlightItem:
final
menuDidClose:
final
menuHasKeyEquivalent:forEvent:target:action:
final
menuNeedsUpdate:
final
menuWillOpen:
final
numberOfItemsInMenu_ → ObjCProtocolMethod<DartNSInteger Function(NSMenu)>
numberOfItemsInMenu:
final

Static Methods

addToBuilder(ObjCProtocolBuilder builder, {void menuNeedsUpdate_(NSMenu)?, DartNSInteger numberOfItemsInMenu_(NSMenu)?, bool menu_updateItem_atIndex_shouldCancel_(NSMenu, NSMenuItem, DartNSInteger, bool)?, bool menuHasKeyEquivalent_forEvent_target_action_(NSMenu, NSEvent, Pointer<Pointer<ObjCObject>>, Pointer<Pointer<ObjCSelector>>)?, void menuWillOpen_(NSMenu)?, void menuDidClose_(NSMenu)?, void menu_willHighlightItem_(NSMenu, NSMenuItem?)?, NSRect confinementRectForMenu_onScreen_(NSMenu, NSScreen?)?, bool $keepIsolateAlive = true}) → void
Adds the implementation of the NSMenuDelegate protocol to an existing objc.ObjCProtocolBuilder.
addToBuilderAsBlocking(ObjCProtocolBuilder builder, {void menuNeedsUpdate_(NSMenu)?, DartNSInteger numberOfItemsInMenu_(NSMenu)?, bool menu_updateItem_atIndex_shouldCancel_(NSMenu, NSMenuItem, DartNSInteger, bool)?, bool menuHasKeyEquivalent_forEvent_target_action_(NSMenu, NSEvent, Pointer<Pointer<ObjCObject>>, Pointer<Pointer<ObjCSelector>>)?, void menuWillOpen_(NSMenu)?, void menuDidClose_(NSMenu)?, void menu_willHighlightItem_(NSMenu, NSMenuItem?)?, NSRect confinementRectForMenu_onScreen_(NSMenu, NSScreen?)?, bool $keepIsolateAlive = true}) → void
Adds the implementation of the NSMenuDelegate protocol to an existing objc.ObjCProtocolBuilder. All methods that can be implemented as blocking listeners will be.
addToBuilderAsListener(ObjCProtocolBuilder builder, {void menuNeedsUpdate_(NSMenu)?, DartNSInteger numberOfItemsInMenu_(NSMenu)?, bool menu_updateItem_atIndex_shouldCancel_(NSMenu, NSMenuItem, DartNSInteger, bool)?, bool menuHasKeyEquivalent_forEvent_target_action_(NSMenu, NSEvent, Pointer<Pointer<ObjCObject>>, Pointer<Pointer<ObjCSelector>>)?, void menuWillOpen_(NSMenu)?, void menuDidClose_(NSMenu)?, void menu_willHighlightItem_(NSMenu, NSMenuItem?)?, NSRect confinementRectForMenu_onScreen_(NSMenu, NSScreen?)?, bool $keepIsolateAlive = true}) → void
Adds the implementation of the NSMenuDelegate protocol to an existing objc.ObjCProtocolBuilder. All methods that can be implemented as listeners will be.
conformsTo(ObjCObjectBase obj) → bool
Returns whether obj is an instance of NSMenuDelegate.
implement({void menuNeedsUpdate_(NSMenu)?, DartNSInteger numberOfItemsInMenu_(NSMenu)?, bool menu_updateItem_atIndex_shouldCancel_(NSMenu, NSMenuItem, DartNSInteger, bool)?, bool menuHasKeyEquivalent_forEvent_target_action_(NSMenu, NSEvent, Pointer<Pointer<ObjCObject>>, Pointer<Pointer<ObjCSelector>>)?, void menuWillOpen_(NSMenu)?, void menuDidClose_(NSMenu)?, void menu_willHighlightItem_(NSMenu, NSMenuItem?)?, NSRect confinementRectForMenu_onScreen_(NSMenu, NSScreen?)?, bool $keepIsolateAlive = true}) → NSMenuDelegate
Builds an object that implements the NSMenuDelegate protocol. To implement multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly.
implementAsBlocking({void menuNeedsUpdate_(NSMenu)?, DartNSInteger numberOfItemsInMenu_(NSMenu)?, bool menu_updateItem_atIndex_shouldCancel_(NSMenu, NSMenuItem, DartNSInteger, bool)?, bool menuHasKeyEquivalent_forEvent_target_action_(NSMenu, NSEvent, Pointer<Pointer<ObjCObject>>, Pointer<Pointer<ObjCSelector>>)?, void menuWillOpen_(NSMenu)?, void menuDidClose_(NSMenu)?, void menu_willHighlightItem_(NSMenu, NSMenuItem?)?, NSRect confinementRectForMenu_onScreen_(NSMenu, NSScreen?)?, bool $keepIsolateAlive = true}) → NSMenuDelegate
Builds an object that implements the NSMenuDelegate protocol. To implement multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly. All methods that can be implemented as blocking listeners will be.
implementAsListener({void menuNeedsUpdate_(NSMenu)?, DartNSInteger numberOfItemsInMenu_(NSMenu)?, bool menu_updateItem_atIndex_shouldCancel_(NSMenu, NSMenuItem, DartNSInteger, bool)?, bool menuHasKeyEquivalent_forEvent_target_action_(NSMenu, NSEvent, Pointer<Pointer<ObjCObject>>, Pointer<Pointer<ObjCSelector>>)?, void menuWillOpen_(NSMenu)?, void menuDidClose_(NSMenu)?, void menu_willHighlightItem_(NSMenu, NSMenuItem?)?, NSRect confinementRectForMenu_onScreen_(NSMenu, NSScreen?)?, bool $keepIsolateAlive = true}) → NSMenuDelegate
Builds an object that implements the NSMenuDelegate protocol. To implement multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly. All methods that can be implemented as listeners will be.