OGRE  13.6
Object-Oriented Graphics Rendering Engine
OgreBites::WindowEventListener Class Reference

Callback class used to send out window events to client app. More...

#include <OgreWindowEventUtilities.h>

Public Member Functions

virtual ~WindowEventListener ()
 
virtual void windowClosed (Ogre::RenderWindow *rw)
 
virtual bool windowClosing (Ogre::RenderWindow *rw)
 
virtual void windowFocusChange (Ogre::RenderWindow *rw)
 
virtual void windowMoved (Ogre::RenderWindow *rw)
 
virtual void windowResized (Ogre::RenderWindow *rw)
 

Detailed Description

Callback class used to send out window events to client app.

Constructor & Destructor Documentation

◆ ~WindowEventListener()

virtual OgreBites::WindowEventListener::~WindowEventListener ( )
inlinevirtual

Member Function Documentation

◆ windowMoved()

virtual void OgreBites::WindowEventListener::windowMoved ( Ogre::RenderWindow rw)
inlinevirtual
Remarks
Window has moved position
Parameters
rwThe RenderWindow which created this events

◆ windowResized()

virtual void OgreBites::WindowEventListener::windowResized ( Ogre::RenderWindow rw)
inlinevirtual
Remarks
Window has resized
Parameters
rwThe RenderWindow which created this events

◆ windowClosing()

virtual bool OgreBites::WindowEventListener::windowClosing ( Ogre::RenderWindow rw)
inlinevirtual
Remarks
Window is closing (Only triggered if user pressed the [X] button)
Parameters
rwThe RenderWindow which created this events
Returns
True will close the window(default).

◆ windowClosed()

virtual void OgreBites::WindowEventListener::windowClosed ( Ogre::RenderWindow rw)
inlinevirtual
Remarks
Window has been closed (Only triggered if user pressed the [X] button)
Parameters
rwThe RenderWindow which created this events
Note
The window has not actually close yet when this event triggers. It's only closed after all windowClosed events are triggered. This allows apps to deinitialise properly if they have services that needs the window to exist when deinitialising.

◆ windowFocusChange()

virtual void OgreBites::WindowEventListener::windowFocusChange ( Ogre::RenderWindow rw)
inlinevirtual
Remarks
Window has lost/gained focus
Parameters
rwThe RenderWindow which created this events

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