Main Page Modules Namespaces C++ Classes Compound List File List Index
TNL: Zap::MenuUserInterface Class Reference

# Zap::MenuUserInterface Class Reference

`#include <UIMenus.h>`

Inheritance diagram for Zap::MenuUserInterface:

## Public Member Functions

| MenuUserInterface ()
void | render ()
void | onSpecialKeyDown (U32 key)
void | onKeyDown (U32 key)
void | onControllerButtonDown (U32 buttonIndex)
void | onActivate ()
virtual void | onEscape ()
virtual void | processSelection (U32 index)=0

## Data Fields

Vector< MenuItem > | menuItems
const char * | menuTitle
const char * | menuSubTitle
const char * | menuFooter
S32 | selectionIndex

## Constructor & Destructor Documentation

Zap::MenuUserInterface::MenuUserInterface | ( |  | ) |

## Member Function Documentation

void Zap::MenuUserInterface::render | ( |  | ) | `[virtual]`

Reimplemented from Zap::UserInterface.

Reimplemented in Zap::EditorMenuUserInterface, Zap::MainMenuUserInterface, and Zap::PlayerMenuUserInterface.

void Zap::MenuUserInterface::onSpecialKeyDown | ( | U32 | key | ) | `[virtual]`

Reimplemented from Zap::UserInterface.

void Zap::MenuUserInterface::onKeyDown | ( | U32 | key | ) | `[virtual]`

Reimplemented from Zap::UserInterface.

void Zap::MenuUserInterface::onControllerButtonDown | ( | U32 | buttonIndex | ) | `[virtual]`

Reimplemented from Zap::UserInterface.

void Zap::MenuUserInterface::onActivate | ( |  | ) | `[inline, virtual]`

Reimplemented from Zap::UserInterface.

Reimplemented in Zap::EditorMenuUserInterface, Zap::OptionsMenuUserInterface, Zap::GameMenuUserInterface, Zap::LevelMenuUserInterface, and Zap::AdminMenuUserInterface.

virtual void Zap::MenuUserInterface::onEscape | ( |  | ) | `[virtual]`

Reimplemented in Zap::EditorMenuUserInterface, Zap::MainMenuUserInterface, Zap::OptionsMenuUserInterface, Zap::GameMenuUserInterface, Zap::LevelMenuUserInterface, Zap::AdminMenuUserInterface, and Zap::PlayerMenuUserInterface.

virtual void Zap::MenuUserInterface::processSelection | ( | U32 | index | ) | `[pure virtual]`

Implemented in Zap::EditorMenuUserInterface, Zap::MainMenuUserInterface, Zap::OptionsMenuUserInterface, Zap::GameMenuUserInterface, Zap::LevelMenuUserInterface, Zap::AdminMenuUserInterface, and Zap::PlayerMenuUserInterface.

## Field Documentation

Vector<MenuItem> Zap::MenuUserInterface::menuItems

const char* Zap::MenuUserInterface::menuTitle

const char* Zap::MenuUserInterface::menuSubTitle

const char* Zap::MenuUserInterface::menuFooter

S32 Zap::MenuUserInterface::selectionIndex