diff options
Diffstat (limited to 'src/FbTk/EventManager.hh')
-rw-r--r-- | src/FbTk/EventManager.hh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/FbTk/EventManager.hh b/src/FbTk/EventManager.hh index 049d527..6bd368c 100644 --- a/src/FbTk/EventManager.hh +++ b/src/FbTk/EventManager.hh | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: EventManager.hh,v 1.8 2004/04/19 22:46:46 fluxgen Exp $ | 22 | // $Id: EventManager.hh,v 1.9 2004/05/04 14:33:38 rathnor Exp $ |
23 | 23 | ||
24 | #include "EventHandler.hh" | 24 | #include "EventHandler.hh" |
25 | #include <map> | 25 | #include <map> |
@@ -51,12 +51,15 @@ public: | |||
51 | 51 | ||
52 | void registerEventHandler(EventHandler &ev, Window win); | 52 | void registerEventHandler(EventHandler &ev, Window win); |
53 | void unregisterEventHandler(Window win); | 53 | void unregisterEventHandler(Window win); |
54 | |||
54 | private: | 55 | private: |
55 | EventManager() { } | 56 | EventManager() { } |
56 | ~EventManager(); | 57 | ~EventManager(); |
57 | void dispatch(Window win, XEvent &event, bool parent = false); | 58 | void dispatch(Window win, XEvent &event, bool parent = false); |
58 | std::map<Window, EventHandler *> m_eventhandlers; | 59 | |
59 | std::map<Window, EventHandler *> m_parent; | 60 | typedef std::map<Window, EventHandler *> EventHandlerMap; |
61 | EventHandlerMap m_eventhandlers; | ||
62 | EventHandlerMap m_parent; | ||
60 | }; | 63 | }; |
61 | 64 | ||
62 | } //end namespace FbTk | 65 | } //end namespace FbTk |