Orxonox  0.0.5 Codename: Arcturus
Protected Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes | Friends | List of all members
orxonox::WindowEventListener Class Reference

Interface for receiving window events like resize, moved and focusChanged. More...

#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/core/WindowEventListener.h>

Inheritance diagram for orxonox::WindowEventListener:
orxonox::Listable orxonox::Identifiable orxonox::Camera orxonox::GUIManager orxonox::InGameConsole orxonox::InputManager orxonox::Mouse orxonox::OrxonoxOverlay orxonox::FlagHUD orxonox::GUIOverlay orxonox::HUDBar orxonox::HUDNavigation orxonox::HUDPickupSystem orxonox::HUDRadar orxonox::HUDWeapon orxonox::HUDWeaponMode orxonox::HUDWeaponSystem orxonox::OverlayText orxonox::Scoreboard orxonox::ShroomHUD orxonox::Stats orxonox::StoryModeHUD orxonox::WagnisHUD

Protected Member Functions

 WindowEventListener ()
 
virtual ~WindowEventListener ()=default
 
unsigned int getWindowHeight () const
 Returns the current render window height. More...
 
unsigned int getWindowWidth () const
 Returns the current render window width. More...
 

Private Member Functions

virtual void windowFocusChanged (bool bFocus)
 Window has lost/gained focus. More...
 
virtual void windowMoved ()
 Window has been moved. More...
 
virtual void windowResized (unsigned int newWidth, unsigned int newHeight)
 Window has resized. More...
 

Static Private Member Functions

static void changeWindowFocus (bool bFocus)
 Calls all registered objects. More...
 
static void moveWindow ()
 Calls all registered objects. More...
 
static void resizeWindow (unsigned int newWidth, unsigned int newHeight)
 Calls all registered objects and sets the static variables. More...
 

Static Private Attributes

static unsigned int windowHeight_s = 0
 
static unsigned int windowWidth_s = 0
 Static variable that holds the latest distributed information. More...
 

Friends

class OgreWindowEventListener
 

Additional Inherited Members

- Public Member Functions inherited from orxonox::Listable
 Listable ()
 Constructor: Allocates space in the element list. More...
 
 Listable (Context *context)
 Constructor: Allocates space in the element list and assigns the context. More...
 
virtual ~Listable ()
 Destructor: Removes the object from the object-lists. More...
 
ContextgetContext () const
 
void setContext (Context *context)
 Changes the context. More...
 
void unregisterObject ()
 Removes this object from the object-lists. More...
 
- Public Member Functions inherited from orxonox::Identifiable
 Identifiable ()
 Constructor: Sets the default values. More...
 
virtual ~Identifiable ()
 
ORX_FORCEINLINE voidgetDerivedPointer (unsigned int classID)
 Returns a valid pointer of any derived type that is registered in the class hierarchy. More...
 
template<class T >
ORX_FORCEINLINE T * getDerivedPointer (unsigned int classID)
 Version of getDerivedPointer with template. More...
 
template<class T >
ORX_FORCEINLINE const T * getDerivedPointer (unsigned int classID) const
 Const version of getDerivedPointer with template. More...
 
IdentifiergetIdentifier () const
 Returns the Identifier of the object. More...
 
bool isA (const Identifier *identifier)
 Returns true if the object's class is of the given type or a derivative. More...
 
template<class B >
bool isA (const SubclassIdentifier< B > *identifier)
 Returns true if the object's class is of the given type or a derivative. More...
 
bool isA (const Identifiable *object)
 Returns true if the object's class is of the given type or a derivative. More...
 
bool isChildOf (const Identifier *identifier)
 Returns true if the object's class is a child of the given type. More...
 
template<class B >
bool isChildOf (const SubclassIdentifier< B > *identifier)
 Returns true if the object's class is a child of the given type. More...
 
bool isChildOf (const Identifiable *object)
 Returns true if the object's class is a child of the given type. More...
 
bool isDirectChildOf (const Identifier *identifier)
 Returns true if the object's class is a direct child of the given type. More...
 
template<class B >
bool isDirectChildOf (const SubclassIdentifier< B > *identifier)
 Returns true if the object's class is a direct child of the given type. More...
 
bool isDirectChildOf (const Identifiable *object)
 Returns true if the object's class is a direct child of the given type. More...
 
bool isDirectParentOf (const Identifier *identifier)
 Returns true if the object's class is a direct parent of the given type. More...
 
template<class B >
bool isDirectParentOf (const SubclassIdentifier< B > *identifier)
 Returns true if the object's class is a direct parent of the given type. More...
 
bool isDirectParentOf (const Identifiable *object)
 Returns true if the object's class is a direct child of the given type. More...
 
bool isExactlyA (const Identifier *identifier)
 Returns true if the object's class is exactly of the given type. More...
 
template<class B >
bool isExactlyA (const SubclassIdentifier< B > *identifier)
 Returns true if the object's class is exactly of the given type. More...
 
bool isExactlyA (const Identifiable *object)
 Returns true if the object's class is exactly of the given type. More...
 
bool isParentOf (const Identifier *identifier)
 Returns true if the object's class is a parent of the given type. More...
 
template<class B >
bool isParentOf (const SubclassIdentifier< B > *identifier)
 Returns true if the object's class is a parent of the given type. More...
 
bool isParentOf (const Identifiable *object)
 Returns true if the object's class is a parent of the given type. More...
 

Detailed Description

Interface for receiving window events like resize, moved and focusChanged.

Constructor & Destructor Documentation

orxonox::WindowEventListener::WindowEventListener ( )
protected
virtual orxonox::WindowEventListener::~WindowEventListener ( )
protectedvirtualdefault

Member Function Documentation

void orxonox::WindowEventListener::changeWindowFocus ( bool  bFocus)
staticprivate

Calls all registered objects.

unsigned int orxonox::WindowEventListener::getWindowHeight ( ) const
inlineprotected

Returns the current render window height.

unsigned int orxonox::WindowEventListener::getWindowWidth ( ) const
inlineprotected

Returns the current render window width.

void orxonox::WindowEventListener::moveWindow ( )
staticprivate

Calls all registered objects.

void orxonox::WindowEventListener::resizeWindow ( unsigned int  newWidth,
unsigned int  newHeight 
)
staticprivate

Calls all registered objects and sets the static variables.

virtual void orxonox::WindowEventListener::windowFocusChanged ( bool  bFocus)
inlineprivatevirtual

Window has lost/gained focus.

Reimplemented in orxonox::InputManager, and orxonox::GUIManager.

virtual void orxonox::WindowEventListener::windowMoved ( )
inlineprivatevirtual

Window has been moved.

virtual void orxonox::WindowEventListener::windowResized ( unsigned int  newWidth,
unsigned int  newHeight 
)
inlineprivatevirtual

Friends And Related Function Documentation

friend class OgreWindowEventListener
friend

Member Data Documentation

unsigned int orxonox::WindowEventListener::windowHeight_s = 0
staticprivate
unsigned int orxonox::WindowEventListener::windowWidth_s = 0
staticprivate

Static variable that holds the latest distributed information.


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