28 #ifndef __OgreWindowEventUtils_H__
29 #define __OgreWindowEventUtils_H__
34 #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
35 # define WIN32_LEAN_AND_MEAN
36 # if !defined(NOMINMAX) && defined(_MSC_VER)
37 # define NOMINMAX // required to stop windows.h messing up std::min
40 #elif OGRE_PLATFORM == OGRE_PLATFORM_APPLE && !defined(__LP64__)
41 # include <Carbon/Carbon.h>
89 { (void)rw;
return true; }
126 static void messagePump();
168 #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
169 static LRESULT CALLBACK _WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
171 #elif OGRE_PLATFORM == OGRE_PLATFORM_APPLE && !defined __OBJC__ && !defined(__LP64__)
172 static OSStatus _CarbonWindowHandler(EventHandlerCallRef nextHandler, EventRef event,
void* wnd);
Manages the target rendering window.
Utility class to handle Window Events/Pumping/Messages
std::multimap< K, V, P, A > type
virtual void windowClosed(RenderWindow *rw)
Window has been closed (Only triggered if user pressed the [X] button)
virtual ~WindowEventListener()
static WindowEventListeners _msListeners
static Windows _msWindows
virtual void windowMoved(RenderWindow *rw)
Window has moved position
virtual void windowResized(RenderWindow *rw)
Window has resized
multimap< RenderWindow *, WindowEventListener * >::type WindowEventListeners
virtual void windowFocusChange(RenderWindow *rw)
Window has lost/gained focus
Callback class used to send out window events to client app
virtual bool windowClosing(RenderWindow *rw)
Window is closing (Only triggered if user pressed the [X] button)
vector< RenderWindow * >::type Windows