MenuBase

Base class of menu bar and popup menu.

Modulerequire("yue.gui")
TypeClass

Note that the index counts from 1, following lua's convention.

Methods

append(item)

Append the item to the menu.

Parameters

insert(item, index)

Insert the item at index to the menu.

Parameters

remove(item)

Remove the item from the menu.

Parameters

itemcount()

Return the count of items in the menu.

Return

integer

itemat(index)

Return the item at index.

Parameters

Return

MenuItem