Classes | Public Member Functions | Static Public Member Functions | Private Types | Private Attributes
GLWindowMenu Class Reference

#include <GLWindowMenu.h>

List of all members.

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, SubMenummSubMenus
int mnLeftMostCoord
int mnMenuHeight
int mnMenuTop
int mnTextOffset
int mnWidth
std::string msCurrentSubMenu
std::string msName
std::string msTitle

Detailed Description

Definition at line 15 of file GLWindowMenu.h.


Member Enumeration Documentation

Enumerator:
Button 
Toggle 
Monitor 
Slider 

Definition at line 33 of file GLWindowMenu.h.


Constructor & Destructor Documentation

GLWindowMenu::GLWindowMenu ( std::string  sName,
std::string  sTitle 
)

Definition at line 13 of file GLWindowMenu.cc.

Definition at line 31 of file GLWindowMenu.cc.


Member Function Documentation

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.


Member Data Documentation

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.

Definition at line 66 of file GLWindowMenu.h.

Definition at line 59 of file GLWindowMenu.h.

int GLWindowMenu::mnMenuTop [private]

Definition at line 58 of file GLWindowMenu.h.

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.


The documentation for this class was generated from the following files:


tum_ardrone
Author(s):
autogenerated on Sat Jun 8 2019 20:27:23