GuiMenuBar

Engine/source/gui/editor/guiMenuBar.h

More...

Classes:

Private Types

Parent 

Public Functions

Occurs when the accelerator key for this control is pressed.

Adds an object as a child of this object.

DECLARE_CALLBACK(void , onMenuItemSelect , (S32 menuId, const char *menuText, S32 menuItemId, const char *menuItemText) )
DECLARE_CALLBACK(void , onMenuSelect , (S32 menuId, const char *menuText) )
DECLARE_CALLBACK(void , onMouseInMenu , (bool hasLeftMenu) )
insert(SimObject * pObject, S32 pos)

Occurs when this control performs its "action".

Do special pre-render processing.

Called when this object is removed.

onRender(Point2I offset, const RectI & updateRect)

Called when this control is to render itself.

Called when this object is asked to sleep.

bool

Called when this object is asked to wake up returns true if it's actually awake at the end.

This method is called once every 32ms if isProcessingTicks returns true when called on the object.

Public Static Functions

Detailed Description

Private Types

typedef GuiTickCtrl Parent 

Public Attributes

Point2I maxBitmapSize 
S32 mBitmapMargin 
S32 mCheckmarkBitmapIndex 
U32 mCurAcceleratorIndex 
bool menuBarDirty 
S32 mHorizontalMargin 
U32 mMenubarHeight 
Vector< MenuEntry > mMenuList 
bool mMouseInMenu 
MenuEntry * mouseDownMenu 
MenuItem * mouseDownSubmenu 
MenuEntry * mouseOverMenu 
MenuItem * mouseOverSubmenu 
S32 mPadding 
S32 mVerticalMargin 

Public Functions

GuiMenuBar()

acceleratorKeyPress(U32 index)

Reimplemented from: GuiControl

addObject(SimObject * obj)

Reimplemented from: GuiControl

buildWindowAcceleratorMap(WindowInputGenerator & inputGenerator)

checkMenuMouseMove(const GuiEvent & event)

closeMenu()

DECLARE_CALLBACK(void , onMenuItemSelect , (S32 menuId, const char *menuText, S32 menuItemId, const char *menuItemText) )

DECLARE_CALLBACK(void , onMenuSelect , (S32 menuId, const char *menuText) )

DECLARE_CALLBACK(void , onMouseInMenu , (bool hasLeftMenu) )

DECLARE_CONOBJECT(GuiMenuBar )

findHitMenu(Point2I mousePoint)

findMenu(String barTitle)

getMenu(U32 index)

getMenuListCount()

insert(SimObject * pObject, S32 pos)

onAction()

Reimplemented from: GuiControl

onMouseDown(const GuiEvent & event)

Reimplemented from: GuiControl

onMouseDragged(const GuiEvent & event)

Reimplemented from: GuiControl

onMouseEnter(const GuiEvent & event)

Reimplemented from: GuiControl

onMouseLeave(const GuiEvent & event)

Reimplemented from: GuiControl

onMouseMove(const GuiEvent & event)

Reimplemented from: GuiControl

onMouseUp(const GuiEvent & event)

Reimplemented from: GuiControl

onPreRender()

Reimplemented from: GuiControl

onRemove()

Reimplemented from: GuiControl

onRender(Point2I offset, const RectI & updateRect)

Reimplemented from: GuiControl

onSleep()

Reimplemented from: GuiControl

onWake()

Reimplemented from: GuiControl

processTick()

Reimplemented from: GuiTickCtrl

removeWindowAcceleratorMap(WindowInputGenerator & inputGenerator)

Public Static Functions

initPersistFields()