UI::SubMenuItem Class Reference

A MenuItem that pops up another menu when activated. More...

#include <SubMenuItem.h>

Inheritance diagram for UI::SubMenuItem:

UI::MenuItem List of all members.

Public Member Functions

 SubMenuItem (std::wstring label)
virtual ~SubMenuItem ()
virtual void draw ()
 Render the menu item with OpenGL calls.
Menuget_menu ()

Private Attributes

Menu menu

Detailed Description

A MenuItem that pops up another menu when activated.

Definition at line 24 of file SubMenuItem.h.


Constructor & Destructor Documentation

UI::SubMenuItem::SubMenuItem ( std::wstring  label  ) 

Definition at line 19 of file SubMenuItem.cpp.

UI::SubMenuItem::~SubMenuItem (  )  [virtual]

Definition at line 24 of file SubMenuItem.cpp.


Member Function Documentation

void UI::SubMenuItem::draw (  )  [virtual]

Render the menu item with OpenGL calls.

The item will be drawn from 64 pixels high centred around 0 vertically, and from the 0 to the width set by set_width plus a constant horizontally.

Reimplemented from UI::MenuItem.

Definition at line 28 of file SubMenuItem.cpp.

Menu * UI::SubMenuItem::get_menu (  ) 

Definition at line 43 of file SubMenuItem.cpp.


Member Data Documentation

Menu UI::SubMenuItem::menu [private]

Definition at line 32 of file SubMenuItem.h.


The documentation for this class was generated from the following files:
Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

Generated at Mon Sep 6 00:41:19 2010 by Doxygen version 1.4.7 for Racer version svn335.