#include <GLMenu.h>

Public Types | |
| enum | MenuFlags { eMenuAlignRight = 1 } |
Public Member Functions | |
| GLMenu () | |
| virtual | ~GLMenu () |
| bool | addMenu (const LangString &menuName, char *menuNameInternal, const LangString &menuDescription, float width, unsigned int state, GLMenuI *callback, Image *icon=0, unsigned int flags=0) |
| bool | addMenuItem (char *menuName, const GLMenuItem item) |
| GLMenuEntry * | getMenu (char *menuItem) |
| virtual void | draw () |
| virtual void | mouseDown (int button, float x, float y, bool &skipRest) |
| virtual void | mouseUp (int button, float x, float y, bool &skipRest) |
| virtual void | mouseDrag (int button, float mx, float my, float x, float y, bool &skipRest) |
| virtual void | keyDown (char *buffer, unsigned int keyState, KeyboardHistory::HistoryElement *history, int hisCount, bool &skipRest) |
Protected Attributes | |
| std::map < std::string, GLMenuEntry * > | menuList_ |
Definition at line 30 of file GLMenu.h.
| enum GLMenu::MenuFlags |
| GLMenu::GLMenu | ( | ) |
| GLMenu::~GLMenu | ( | ) | [virtual] |
Definition at line 34 of file GLMenu.cpp.
| bool GLMenu::addMenu | ( | const LangString & | menuName, | |
| char * | menuNameInternal, | |||
| const LangString & | menuDescription, | |||
| float | width, | |||
| unsigned int | state, | |||
| GLMenuI * | callback, | |||
| Image * | icon = 0, |
|||
| unsigned int | flags = 0 | |||
| ) |
Definition at line 50 of file GLMenu.cpp.
References getMenu(), and menuList_.
Referenced by TankMenus::AccessoryMenu::AccessoryMenu(), MainCamera::MainCamera(), and TankMenus::PlayerMenu::PlayerMenu().
| bool GLMenu::addMenuItem | ( | char * | menuName, | |
| const GLMenuItem | item | |||
| ) |
Definition at line 70 of file GLMenu.cpp.
References GLMenuEntry::addMenuItem(), and getMenu().
Referenced by TankMenus::PlayerMenu::PlayerMenu().
| GLMenuEntry * GLMenu::getMenu | ( | char * | menuItem | ) |
Definition at line 38 of file GLMenu.cpp.
References menuList_.
Referenced by addMenu(), and addMenuItem().
| void GLMenu::draw | ( | ) | [virtual] |
Reimplemented from GLWWindow.
Definition at line 79 of file GLMenu.cpp.
References GLWToolTip::addToolTip(), GLState::DEPTH_OFF, GLMenuEntry::draw(), eMenuAlignRight, GLMenuEntry::getCallback(), GLMenuI::getEnabled(), GLMenuEntry::getFlags(), GLWWindowManager::getFocus(), ScorchedContext::getGameState(), GLViewPort::getHeight(), OptionsDisplay::getHideMenus(), GLWidget::getId(), GameState::getMouseX(), GameState::getMouseY(), GLMenuEntry::getNameInternal(), GLMenuEntry::getSelected(), GLMenuEntry::getState(), GameState::getState(), GLMenuEntry::getToolTip(), GLMenuEntry::getW(), GLViewPort::getWidth(), GLMenuEntry::getX(), GLMenuEntry::getY(), GLWidget::h_, GLMenuEntry::inMenu(), GLWWindowManager::instance(), OptionsDisplay::instance(), GLWToolTip::instance(), ScorchedClient::instance(), menuList_, GLWidget::setY(), and GLState::TEXTURE_OFF.
| void GLMenu::mouseDown | ( | int | button, | |
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWWindow.
Definition at line 162 of file GLMenu.cpp.
References GLMenuEntry::click(), ScorchedContext::getGameState(), GLViewPort::getHeight(), GLMenuEntry::getState(), GameState::getState(), ScorchedClient::instance(), and menuList_.
| void GLMenu::mouseUp | ( | int | button, | |
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
| void GLMenu::mouseDrag | ( | int | button, | |
| float | mx, | |||
| float | my, | |||
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
| void GLMenu::keyDown | ( | char * | buffer, | |
| unsigned int | keyState, | |||
| KeyboardHistory::HistoryElement * | history, | |||
| int | hisCount, | |||
| bool & | skipRest | |||
| ) | [virtual] |
std::map<std::string, GLMenuEntry *> GLMenu::menuList_ [protected] |
1.5.3