MenuBar

Engine/source/platform/menus/menuBar.h

More...

Private Types

Parent 

Protected Attributes

PlatformMenuBarData *

Protected Functions

Update the native menu bar to ensure consistency with the set.

Public Functions

addObject(SimObject * object)

Add the given object to the set.

Attach this menu bar to the native menu bar.

bool

Returns true if this menu is attached to the menu bar.

Remove an object from the end of the list.

Add the given object to the end of the object list of this set.

Remove this menu bar from the native menu bar.

Remove the given object from the set.

bool
reOrder(SimObject * obj, SimObject * target)

Reorder the position of "obj" to either be the last object in the list or, if "target" is given, to come before "target" in the list of children.

Detailed Description

Private Types

typedef SimSet Parent 

Protected Attributes

GuiCanvas * mCanvas 
PlatformMenuBarData * mData 

Protected Functions

createPlatformPopupMenuData()

deletePlatformPopupMenuData()

updateMenuBar(PopupMenu * menu)

Update the native menu bar to ensure consistency with the set.

Public Functions

MenuBar()

~MenuBar()

addObject(SimObject * object)

Reimplemented from: SimSet

attachToCanvas(GuiCanvas * owner, S32 pos)

Attach this menu bar to the native menu bar.

DECLARE_CONOBJECT(MenuBar )

insertObject(SimObject * obj, S32 pos)

isAttachedToCanvas()

Returns true if this menu is attached to the menu bar.

popObject()

Reimplemented from: SimSet

pushObject(SimObject * object)

Reimplemented from: SimSet

removeFromCanvas()

Remove this menu bar from the native menu bar.

removeObject(SimObject * object)

Reimplemented from: SimSet

reOrder(SimObject * obj, SimObject * target)

Reimplemented from: SimSet