FIFE  be64c707dea6b3250bd4355bf5c825d25920087d
FIFE::CEGuiManager Class Reference

#include <ceguimanager.h>

+ Inheritance diagram for FIFE::CEGuiManager:
+ Collaboration diagram for FIFE::CEGuiManager:

Public Member Functions

 CEGuiManager ()
 Constructor. More...
 
virtual ~CEGuiManager ()
 
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::IListener
virtual bool isActive ()
 Indicates if the listener is active. More...
 
virtual void setActive (bool active)
 Changes the listener status. More...
 
virtual ~IListener ()
 
- Public Member Functions inherited from FIFE::DynamicSingleton< CEGuiManager >
 DynamicSingleton ()
 
virtual ~DynamicSingleton ()
 

Private Member Functions

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

Private Attributes

CEGuiInputProcessorm_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< CEGuiManager >
static CEGuiManagerinstance ()
 
- Protected Member Functions inherited from FIFE::IListener
 IListener ()
 

Detailed Description

Definition at line 45 of file ceguimanager.h.

Constructor & Destructor Documentation

◆ CEGuiManager()

FIFE::CEGuiManager::CEGuiManager ( )

◆ ~CEGuiManager()

FIFE::CEGuiManager::~CEGuiManager ( )
virtual

Definition at line 53 of file ceguimanager.cpp.

References m_inputProcessor.

Member Function Documentation

◆ getRootWindow()

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

Definition at line 78 of file ceguimanager.cpp.

References m_guiRoot.

◆ injectTimePulse()

void FIFE::CEGuiManager::injectTimePulse ( )
private

Inject a time pulse to CEGUI.

Definition at line 82 of file ceguimanager.cpp.

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

Referenced by turn().

+ Here is the caller graph for this function:

◆ onSdlEvent()

bool FIFE::CEGuiManager::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 69 of file ceguimanager.cpp.

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

◆ resizeTopContainer()

void FIFE::CEGuiManager::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 65 of file ceguimanager.cpp.

◆ setRootWindow()

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

Sets the root window of the gui system.

Definition at line 73 of file ceguimanager.cpp.

References m_guiRoot.

◆ turn()

void FIFE::CEGuiManager::turn ( )
virtual

Updates and renders the gui.

Implements FIFE::IGUIManager.

Definition at line 59 of file ceguimanager.cpp.

References injectTimePulse().

Member Data Documentation

◆ m_guiRoot

CEGUI::Window* FIFE::CEGuiManager::m_guiRoot
private

Our root gui window.

Definition at line 98 of file ceguimanager.h.

Referenced by getRootWindow(), and setRootWindow().

◆ m_inputProcessor

CEGuiInputProcessor* FIFE::CEGuiManager::m_inputProcessor
private

Input processor.

Converts SDL input to CEGUI input.

Definition at line 90 of file ceguimanager.h.

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

◆ m_lastTimePulse

double FIFE::CEGuiManager::m_lastTimePulse
private

Last time pulse injected to CEGUI.

Definition at line 94 of file ceguimanager.h.

Referenced by CEGuiManager(), and injectTimePulse().


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