#include <GLWindowMenu.h>
Classes | |
struct | MenuItem |
struct | SubMenu |
Public Member Functions | |
void | FillBox (int l, int r, int t, int b) |
GLWindowMenu (std::string sName, std::string sTitle) | |
void | GUICommandHandler (std::string sCommand, std::string sParams) |
bool | HandleClick (int button, int state, int x, int y) |
void | LineBox (int l, int r, int t, int b) |
void | Render (int nTop, int nHeight, int nWidth, GLWindow2 &glw) |
~GLWindowMenu () | |
Static Public Member Functions | |
static void | GUICommandCallBack (void *ptr, std::string sCommand, std::string sParams) |
Private Types | |
enum | MenuItemType { Button, Toggle, Monitor, Slider } |
Private Attributes | |
GVars3::gvar2_int | mgvnEnabled |
GVars3::gvar2_int | mgvnMenuItemWidth |
GVars3::gvar2_int | mgvnMenuTextOffset |
std::map< std::string, SubMenu > | mmSubMenus |
int | mnLeftMostCoord |
int | mnMenuHeight |
int | mnMenuTop |
int | mnTextOffset |
int | mnWidth |
std::string | msCurrentSubMenu |
std::string | msName |
std::string | msTitle |
Definition at line 15 of file GLWindowMenu.h.
enum GLWindowMenu::MenuItemType [private] |
Definition at line 33 of file GLWindowMenu.h.
GLWindowMenu::GLWindowMenu | ( | std::string | sName, |
std::string | sTitle | ||
) |
Definition at line 13 of file GLWindowMenu.cc.
Definition at line 31 of file GLWindowMenu.cc.
void GLWindowMenu::FillBox | ( | int | l, |
int | r, | ||
int | t, | ||
int | b | ||
) |
Definition at line 148 of file GLWindowMenu.cc.
void GLWindowMenu::GUICommandCallBack | ( | void * | ptr, |
std::string | sCommand, | ||
std::string | sParams | ||
) | [static] |
Definition at line 41 of file GLWindowMenu.cc.
void GLWindowMenu::GUICommandHandler | ( | std::string | sCommand, |
std::string | sParams | ||
) |
Definition at line 46 of file GLWindowMenu.cc.
bool GLWindowMenu::HandleClick | ( | int | button, |
int | state, | ||
int | x, | ||
int | y | ||
) |
Definition at line 253 of file GLWindowMenu.cc.
void GLWindowMenu::LineBox | ( | int | l, |
int | r, | ||
int | t, | ||
int | b | ||
) |
Definition at line 137 of file GLWindowMenu.cc.
void GLWindowMenu::Render | ( | int | nTop, |
int | nHeight, | ||
int | nWidth, | ||
GLWindow2 & | glw | ||
) |
Definition at line 158 of file GLWindowMenu.cc.
GVars3::gvar2_int GLWindowMenu::mgvnEnabled [private] |
Definition at line 62 of file GLWindowMenu.h.
GVars3::gvar2_int GLWindowMenu::mgvnMenuItemWidth [private] |
Definition at line 63 of file GLWindowMenu.h.
GVars3::gvar2_int GLWindowMenu::mgvnMenuTextOffset [private] |
Definition at line 64 of file GLWindowMenu.h.
std::map<std::string, SubMenu> GLWindowMenu::mmSubMenus [private] |
Definition at line 51 of file GLWindowMenu.h.
int GLWindowMenu::mnLeftMostCoord [private] |
Definition at line 66 of file GLWindowMenu.h.
int GLWindowMenu::mnMenuHeight [private] |
Definition at line 59 of file GLWindowMenu.h.
int GLWindowMenu::mnMenuTop [private] |
Definition at line 58 of file GLWindowMenu.h.
int GLWindowMenu::mnTextOffset [private] |
Definition at line 60 of file GLWindowMenu.h.
int GLWindowMenu::mnWidth [private] |
Definition at line 57 of file GLWindowMenu.h.
std::string GLWindowMenu::msCurrentSubMenu [private] |
Definition at line 52 of file GLWindowMenu.h.
std::string GLWindowMenu::msName [private] |
Definition at line 53 of file GLWindowMenu.h.
std::string GLWindowMenu::msTitle [private] |
Definition at line 54 of file GLWindowMenu.h.