Tinman  1.0
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
GUI Class Reference

#include <gui.h>

Public Types

typedef std::shared_ptr< GUIshared
 

Public Member Functions

 GUI ()
 
virtual ~GUI ()
 
void switch_menu ()
 
void register_callback (std::string button, CEGUI::Event::Subscriber callback)
 
CEGUI::Window * load_layout (std::string file)
 
CEGUI::AnimationInstance * load_animation (std::string name, CEGUI::Window *window)
 
Ogre::OverlayElement * create_overlay (std::string name, std::string element)
 
Ogre::OverlayElement * create_overlay (std::string name, std::string element, std::pair< float, float > position, std::pair< float, float > dimension)
 
CEGUI::GUIContext & get_context ()
 
void inject_delta (float delta)
 

Private Member Functions

void load_resources ()
 
void init ()
 

Private Attributes

Ogre::OverlayManager * overlay_manager_
 
const std::string default_font_ = "Manila-12"
 

Member Typedef Documentation

typedef std::shared_ptr<GUI> GUI::shared

Constructor & Destructor Documentation

GUI::GUI ( )
GUI::~GUI ( )
virtual

Member Function Documentation

Ogre::OverlayElement * GUI::create_overlay ( std::string  name,
std::string  element 
)
Ogre::OverlayElement * GUI::create_overlay ( std::string  name,
std::string  element,
std::pair< float, float >  position,
std::pair< float, float >  dimension 
)
CEGUI::GUIContext & GUI::get_context ( )
void GUI::init ( )
private
void GUI::inject_delta ( float  delta)
CEGUI::AnimationInstance * GUI::load_animation ( std::string  name,
CEGUI::Window *  window 
)
CEGUI::Window * GUI::load_layout ( std::string  file)
void GUI::load_resources ( )
private
void GUI::register_callback ( std::string  button,
CEGUI::Event::Subscriber  callback 
)
void GUI::switch_menu ( )

Member Data Documentation

const std::string GUI::default_font_ = "Manila-12"
private
Ogre::OverlayManager* GUI::overlay_manager_
private

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