aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/EventManager.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/EventManager.hh')
-rw-r--r--src/FbTk/EventManager.hh6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/FbTk/EventManager.hh b/src/FbTk/EventManager.hh
index 39883b3..7d67331 100644
--- a/src/FbTk/EventManager.hh
+++ b/src/FbTk/EventManager.hh
@@ -19,13 +19,15 @@
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.3 2002/12/02 19:36:58 fluxgen Exp $ 22// $Id: EventManager.hh,v 1.4 2002/12/03 17:05:45 fluxgen Exp $
23 23
24#include "EventHandler.hh" 24#include "EventHandler.hh"
25#include <map> 25#include <map>
26 26
27namespace FbTk { 27namespace FbTk {
28 28
29class FbWindow;
30
29/** 31/**
30 singleton mediator for EventHandlers 32 singleton mediator for EventHandlers
31*/ 33*/
@@ -34,6 +36,8 @@ public:
34 static EventManager *instance(); 36 static EventManager *instance();
35 37
36 void handleEvent(XEvent &ev); 38 void handleEvent(XEvent &ev);
39 void add(EventHandler &ev, const FbWindow &win);
40 void remove(const FbWindow &win);
37 void add(EventHandler &ev, Window win) { registerEventHandler(ev, win); } 41 void add(EventHandler &ev, Window win) { registerEventHandler(ev, win); }
38 void remove(Window win) { unregisterEventHandler(win); } 42 void remove(Window win) { unregisterEventHandler(win); }
39 void registerEventHandler(EventHandler &ev, Window win); 43 void registerEventHandler(EventHandler &ev, Window win);