26 #ifndef _TGUI_EVENT_MANAGER_INCLUDED_
27 #define _TGUI_EVENT_MANAGER_INCLUDED_
36 struct TGUI_API EventManager :
public sf::NonCopyable
49 virtual void handleEvent(sf::Event& event);
56 virtual void focusObject(OBJECT*
const object);
62 virtual void unfocusObject(OBJECT*
const object);
68 virtual void unfocusAllObjects();
74 virtual void updateTime(
const sf::Time& elapsedTime);
81 virtual void tabKeyPressed();
91 virtual bool mouseOnObject(
unsigned int& objectNr,
float x,
float y);
97 virtual void mouseNotOnObject();
103 virtual void mouseNoLongerDown();
111 virtual bool focusNextObject();
118 std::vector<OBJECT*> m_Objects;
121 unsigned int m_FocusedObject;
127 bool m_KeyPress[sf::Keyboard::KeyCount];
136 friend struct GroupObject;
138 friend struct ChildWindow;
140 friend struct Window;
152 #endif //_TGUI_EVENT_MANAGER_INCLUDED_