#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 | |
int | mgvnEnabled |
int | mgvnMenuItemWidth |
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 17 of file GLWindowMenu.h.
enum GLWindowMenu::MenuItemType [private] |
Definition at line 35 of file GLWindowMenu.h.
GLWindowMenu::GLWindowMenu | ( | std::string | sName, |
std::string | sTitle | ||
) |
Definition at line 13 of file GLWindowMenu.cc.
Definition at line 37 of file GLWindowMenu.cc.
void GLWindowMenu::FillBox | ( | int | l, |
int | r, | ||
int | t, | ||
int | b | ||
) |
Definition at line 154 of file GLWindowMenu.cc.
void GLWindowMenu::GUICommandCallBack | ( | void * | ptr, |
std::string | sCommand, | ||
std::string | sParams | ||
) | [static] |
Definition at line 47 of file GLWindowMenu.cc.
void GLWindowMenu::GUICommandHandler | ( | std::string | sCommand, |
std::string | sParams | ||
) |
Definition at line 52 of file GLWindowMenu.cc.
bool GLWindowMenu::HandleClick | ( | int | button, |
int | state, | ||
int | x, | ||
int | y | ||
) |
Definition at line 259 of file GLWindowMenu.cc.
void GLWindowMenu::LineBox | ( | int | l, |
int | r, | ||
int | t, | ||
int | b | ||
) |
Definition at line 143 of file GLWindowMenu.cc.
void GLWindowMenu::Render | ( | int | nTop, |
int | nHeight, | ||
int | nWidth, | ||
GLWindow2 & | glw | ||
) |
Definition at line 164 of file GLWindowMenu.cc.
int GLWindowMenu::mgvnEnabled [private] |
Definition at line 65 of file GLWindowMenu.h.
int GLWindowMenu::mgvnMenuItemWidth [private] |
Definition at line 66 of file GLWindowMenu.h.
int GLWindowMenu::mgvnMenuTextOffset [private] |
Definition at line 67 of file GLWindowMenu.h.
std::map<std::string, SubMenu> GLWindowMenu::mmSubMenus [private] |
Definition at line 53 of file GLWindowMenu.h.
int GLWindowMenu::mnLeftMostCoord [private] |
Definition at line 72 of file GLWindowMenu.h.
int GLWindowMenu::mnMenuHeight [private] |
Definition at line 61 of file GLWindowMenu.h.
int GLWindowMenu::mnMenuTop [private] |
Definition at line 60 of file GLWindowMenu.h.
int GLWindowMenu::mnTextOffset [private] |
Definition at line 62 of file GLWindowMenu.h.
int GLWindowMenu::mnWidth [private] |
Definition at line 59 of file GLWindowMenu.h.
std::string GLWindowMenu::msCurrentSubMenu [private] |
Definition at line 54 of file GLWindowMenu.h.
std::string GLWindowMenu::msName [private] |
Definition at line 55 of file GLWindowMenu.h.
std::string GLWindowMenu::msTitle [private] |
Definition at line 56 of file GLWindowMenu.h.