OGRE  14.2
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)
 Window has been closed (Only triggered if user pressed the [X] button) More...
 
virtual bool windowClosing (Ogre::RenderWindow *rw)
 Window is closing (Only triggered if user pressed the [X] button) More...
 
virtual void windowFocusChange (Ogre::RenderWindow *rw)
 Window has lost/gained focus. More...
 
virtual void windowMoved (Ogre::RenderWindow *rw)
 Window has moved position. More...
 
virtual void windowResized (Ogre::RenderWindow *rw)
 Window has resized. More...
 

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

Window has moved position.

Parameters
rwThe RenderWindow which created this events

◆ windowResized()

virtual void OgreBites::WindowEventListener::windowResized ( Ogre::RenderWindow rw)
inlinevirtual

Window has resized.

Parameters
rwThe RenderWindow which created this events

◆ windowClosing()

virtual bool OgreBites::WindowEventListener::windowClosing ( Ogre::RenderWindow rw)
inlinevirtual

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

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

Window has lost/gained focus.

Parameters
rwThe RenderWindow which created this events

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