TRContextMenuController class final
Opens a TRContextMenu from code.
A surface that consumes the secondary pointer button itself, such as a terminal reporting mouse events, needs this to open the menu at a position it chose. Attach one controller to one TRContextMenu.
Constructors
Properties
Methods
-
attach(
TRContextMenuHost host) → void -
Binds
hostas the menu this controller drives. -
close(
) → void - Closes the menu if it is open.
-
detach(
TRContextMenuHost host) → void -
Unbinds
host, ignoring a host that has already been replaced. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openAt(
Offset globalPosition) → void -
Opens the menu at
globalPosition, in global logical pixels. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited