|  | 
	
		Zap::UserInterface class Reference
	 
Zap::UserInterface Class Reference#include <UI.h>
 Inheritance diagram for Zap::UserInterface:
   
|  |  | 
 Public Member Functions |  | virtual void | render () |  | virtual void | idle (U32 timeDelta) |  | virtual void | onActivate () |  | void | activate () |  | virtual void | onMouseDown (S32 x, S32 y) |  | virtual void | onMouseUp (S32 x, S32 y) |  | virtual void | onRightMouseDown (S32 x, S32 y) |  | virtual void | onRightMouseUp (S32 x, S32 y) |  | virtual void | onMouseMoved (S32 x, S32 y) |  | virtual void | onMouseDragged (S32 x, S32 y) |  | virtual void | onKeyDown (U32 key) |  | virtual void | onKeyUp (U32 key) |  | virtual void | onSpecialKeyDown (U32 key) |  | virtual void | onSpecialKeyUp (U32 key) |  | virtual void | onModifierKeyDown (U32 key) |  | virtual void | onModifierKeyUp (U32 key) |  | virtual void | onControllerButtonDown (U32 buttonIndex) |  | virtual void | onControllerButtonUp (U32 buttonIndex) |  | 
 Static Public Member Functions |  | void | renderCurrent () |  | void | drawString (S32 x, S32 y, S32 size, const char *string) |  | void | drawCenteredString (S32 y, S32 size, const char *string) |  | void | drawStringf (S32 x, S32 y, S32 size, const char *fmt,...) |  | void | drawCenteredStringf (S32 y, S32 size, const char *fmt,...) |  | U32 | getStringWidth (S32 size, const char *string, U32 len=0) |  | void | playBoop () |  | 
 Static Public Attributes |  | UserInterface * | current |  | S32 | windowWidth |  | S32 | windowHeight |  | S32 | canvasWidth |  | S32 | canvasHeight |  | S32 | vertMargin |  | S32 | horizMargin |  
 Member Function Documentation
 
  
    | 
        
          | void Zap::UserInterface::renderCurrent | ( |  | ) |  [static] |  |  
 
  
    | 
        
          | virtual void Zap::UserInterface::render | ( |  | ) |  [virtual] |  |  
  
    |  | 
 
Reimplemented in Zap::CreditsUserInterface, Zap::EditorUserInterface, Zap::EditorMenuUserInterface, Zap::GameUserInterface, Zap::InstructionsUserInterface, Zap::MenuUserInterface, Zap::MainMenuUserInterface, Zap::PlayerMenuUserInterface, Zap::TextEntryUserInterface, Zap::AdminPasswordEntryUserInterface, and Zap::QueryServersUserInterface.     |  
 
  
    | 
        
          | virtual void Zap::UserInterface::idle | ( | U32 | timeDelta | ) |  [virtual] |  |  
 
  
    | 
        
          | virtual void Zap::UserInterface::onActivate | ( |  | ) |  [virtual] |  |  
  
    |  | 
 
Reimplemented in Zap::CreditsUserInterface, Zap::EditorUserInterface, Zap::EditorMenuUserInterface, Zap::InstructionsUserInterface, Zap::MenuUserInterface, Zap::OptionsMenuUserInterface, Zap::GameMenuUserInterface, Zap::LevelMenuUserInterface, Zap::AdminMenuUserInterface, Zap::TextEntryUserInterface, and Zap::QueryServersUserInterface.     |  
 
  
    | 
        
          | void Zap::UserInterface::activate | ( |  | ) |  |  |  
 
  
    | 
        
          | virtual void Zap::UserInterface::onMouseDown | ( | S32 | x, |  
          |  |  | S32 | y |  
          |  | ) |  [virtual] |  |  
 
  
    | 
        
          | virtual void Zap::UserInterface::onMouseUp | ( | S32 | x, |  
          |  |  | S32 | y |  
          |  | ) |  [virtual] |  |  
 
  
    | 
        
          | virtual void Zap::UserInterface::onRightMouseDown | ( | S32 | x, |  
          |  |  | S32 | y |  
          |  | ) |  [virtual] |  |  
 
  
    | 
        
          | virtual void Zap::UserInterface::onRightMouseUp | ( | S32 | x, |  
          |  |  | S32 | y |  
          |  | ) |  [virtual] |  |  
 
  
    | 
        
          | virtual void Zap::UserInterface::onMouseMoved | ( | S32 | x, |  
          |  |  | S32 | y |  
          |  | ) |  [virtual] |  |  
 
  
    | 
        
          | virtual void Zap::UserInterface::onMouseDragged | ( | S32 | x, |  
          |  |  | S32 | y |  
          |  | ) |  [virtual] |  |  
 
  
    | 
        
          | virtual void Zap::UserInterface::onKeyDown | ( | U32 | key | ) |  [virtual] |  |  
 
  
    | 
        
          | virtual void Zap::UserInterface::onKeyUp | ( | U32 | key | ) |  [virtual] |  |  
 
  
    | 
        
          | virtual void Zap::UserInterface::onSpecialKeyDown | ( | U32 | key | ) |  [virtual] |  |  
 
  
    | 
        
          | virtual void Zap::UserInterface::onSpecialKeyUp | ( | U32 | key | ) |  [virtual] |  |  
 
  
    | 
        
          | virtual void Zap::UserInterface::onModifierKeyDown | ( | U32 | key | ) |  [virtual] |  |  
 
  
    | 
        
          | virtual void Zap::UserInterface::onModifierKeyUp | ( | U32 | key | ) |  [virtual] |  |  
 
  
    | 
        
          | virtual void Zap::UserInterface::onControllerButtonDown | ( | U32 | buttonIndex | ) |  [inline, virtual] |  |  
 
  
    | 
        
          | virtual void Zap::UserInterface::onControllerButtonUp | ( | U32 | buttonIndex | ) |  [inline, virtual] |  |  
 
  
    | 
        
          | void Zap::UserInterface::drawString | ( | S32 | x, |  
          |  |  | S32 | y, |  
          |  |  | S32 | size, |  
          |  |  | const char * | string |  
          |  | ) |  [static] |  |  
 
  
    | 
        
          | void Zap::UserInterface::drawCenteredString | ( | S32 | y, |  
          |  |  | S32 | size, |  
          |  |  | const char * | string |  
          |  | ) |  [static] |  |  
 
  
    | 
        
          | void Zap::UserInterface::drawStringf | ( | S32 | x, |  
          |  |  | S32 | y, |  
          |  |  | S32 | size, |  
          |  |  | const char * | fmt, |  
          |  |  | ... |  |  
          |  | ) |  [static] |  |  
 
  
    | 
        
          | void Zap::UserInterface::drawCenteredStringf | ( | S32 | y, |  
          |  |  | S32 | size, |  
          |  |  | const char * | fmt, |  
          |  |  | ... |  |  
          |  | ) |  [static] |  |  
 
  
    | 
        
          | U32 Zap::UserInterface::getStringWidth | ( | S32 | size, |  
          |  |  | const char * | string, |  
          |  |  | U32 | len = 0 |  
          |  | ) |  [static] |  |  
 
  
    | 
        
          | void Zap::UserInterface::playBoop | ( |  | ) |  [static] |  |  
 Field Documentation
 
 
 
 
 
 
 |