FIFE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FIFE::CEGui_0Manager Class Reference

#include <cegui-0manager.h>

+ Inheritance diagram for FIFE::CEGui_0Manager:
+ Collaboration diagram for FIFE::CEGui_0Manager:

Public Member Functions

 CEGui_0Manager ()
 Constructor. More...
 
virtual ~CEGui_0Manager ()
 
virtual void turn ()
 Updates and renders the gui. More...
 
virtual void resizeTopContainer (uint32_t x, uint32_t y, uint32_t width, uint32_t height)
 Resizes the top container. More...
 
virtual bool onSdlEvent (SDL_Event &event)
 Receives input and converts it to librocket format, then it forwards it to librocket. More...
 
void setRootWindow (CEGUI::Window *setRootWindow)
 Sets the root window of the gui system. More...
 
CEGUI::Window * getRootWindow ()
 
- Public Member Functions inherited from FIFE::IGUIManager
virtual ~IGUIManager ()
 Destructor. More...
 
- Public Member Functions inherited from FIFE::ISdlEventListener
virtual ~ISdlEventListener ()
 
- Public Member Functions inherited from FIFE::DynamicSingleton< CEGui_0Manager >
 DynamicSingleton ()
 
virtual ~DynamicSingleton ()
 

Private Member Functions

void injectTimePulse ()
 Inject a time pulse to CEGUI. More...
 

Private Attributes

CEGui_0InputProcessorm_inputProcessor
 Input processor. More...
 
double m_lastTimePulse
 Last time pulse injected to CEGUI. More...
 
CEGUI::Window * m_guiRoot
 Our root gui window. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from FIFE::DynamicSingleton< CEGui_0Manager >
static CEGui_0Managerinstance ()
 

Detailed Description

Definition at line 45 of file cegui-0manager.h.

Constructor & Destructor Documentation

FIFE::CEGui_0Manager::CEGui_0Manager ( )
FIFE::CEGui_0Manager::~CEGui_0Manager ( )
virtual

Definition at line 51 of file cegui-0manager.cpp.

References m_inputProcessor.

Member Function Documentation

CEGUI::Window * FIFE::CEGui_0Manager::getRootWindow ( )
Returns
The root window of the gui system.

Definition at line 75 of file cegui-0manager.cpp.

References m_guiRoot.

void FIFE::CEGui_0Manager::injectTimePulse ( )
private

Inject a time pulse to CEGUI.

Definition at line 79 of file cegui-0manager.cpp.

References FIFE::TimeManager::getTime(), FIFE::DynamicSingleton< TimeManager >::instance(), and m_lastTimePulse.

Referenced by turn().

+ Here is the caller graph for this function:

bool FIFE::CEGui_0Manager::onSdlEvent ( SDL_Event &  event)
virtual

Receives input and converts it to librocket format, then it forwards it to librocket.

Implements FIFE::ISdlEventListener.

Definition at line 66 of file cegui-0manager.cpp.

References m_inputProcessor, and FIFE::CEGui_0InputProcessor::onSdlEvent().

void FIFE::CEGui_0Manager::resizeTopContainer ( uint32_t  x,
uint32_t  y,
uint32_t  width,
uint32_t  height 
)
virtual

Resizes the top container.

Parameters
xThe new starting X coordinate.
yThe new starting Y coordinate.
widthThe new width.
heightThe new height.

Implements FIFE::IGUIManager.

Definition at line 63 of file cegui-0manager.cpp.

void FIFE::CEGui_0Manager::setRootWindow ( CEGUI::Window *  setRootWindow)

Sets the root window of the gui system.

Definition at line 70 of file cegui-0manager.cpp.

References m_guiRoot.

void FIFE::CEGui_0Manager::turn ( )
virtual

Updates and renders the gui.

Implements FIFE::IGUIManager.

Definition at line 57 of file cegui-0manager.cpp.

References injectTimePulse().

Member Data Documentation

CEGUI::Window* FIFE::CEGui_0Manager::m_guiRoot
private

Our root gui window.

Definition at line 98 of file cegui-0manager.h.

Referenced by getRootWindow(), and setRootWindow().

CEGui_0InputProcessor* FIFE::CEGui_0Manager::m_inputProcessor
private

Input processor.

Converts SDL input to CEGUI input.

Definition at line 90 of file cegui-0manager.h.

Referenced by CEGui_0Manager(), onSdlEvent(), and ~CEGui_0Manager().

double FIFE::CEGui_0Manager::m_lastTimePulse
private

Last time pulse injected to CEGUI.

Definition at line 94 of file cegui-0manager.h.

Referenced by CEGui_0Manager(), and injectTimePulse().


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