Events dispatched by the MenuBar and Menu components.

Available since

1.4.0

.

See also:

Static variables

@:value("itemRollOver")staticinlineread onlyITEM_ROLL_OVER:EventType<MenuEvent> = "itemRollOver"

The MenuEvent.ITEM_ROLL_OVER event type is dispatched when an item renderer is rolled over with a mouse.

Available since

1.4.0

.

@:value("itemTrigger")staticinlineread onlyITEM_TRIGGER:EventType<MenuEvent> = "itemTrigger"

The MenuEvent.ITEM_TRIGGER event type is dispatched when an item renderer is clicked or tapped.

Available since

1.4.0

.

@:value("menuClose")staticinlineread onlyMENU_CLOSE:EventType<MenuEvent> = "menuClose"

The MenuEvent.MENU_CLOSE event type is dispatched when a menu in a MenuBar is opened.

Available since

1.4.0

.

@:value("menuOpen")staticinlineread onlyMENU_OPEN:EventType<MenuEvent> = "menuOpen"

The MenuEvent.MENU_OPEN event type is dispatched when a menu in a MenuBar is opened.

Available since

1.4.0

.

Static methods

staticdispatch(dispatcher:IEventDispatcher, type:String, state:MenuItemState):Bool

Dispatches a pooled event with the specified properties.

MenuEvent.dispatch(component, MenuEvent.ITEM_TRIGGER, state);
Available since

1.4.0

.

Constructor

new(type:String, state:MenuItemState)

Creates a new MenuEvent object with the given arguments.

Available since

1.4.0

.

See also:

Variables

state:MenuItemState

The current state of the item associated with this event.

Available since

1.4.0

.

Methods