From 2045fcca4913f47dd68f86c4f0660927c74e3e00 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Mon, 2 Dec 2002 19:36:58 +0000 Subject: add and remove functions --- src/FbTk/EventManager.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/FbTk/EventManager.hh b/src/FbTk/EventManager.hh index cdec410..39883b3 100644 --- a/src/FbTk/EventManager.hh +++ b/src/FbTk/EventManager.hh @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: EventManager.hh,v 1.2 2002/12/01 13:42:14 rathnor Exp $ +// $Id: EventManager.hh,v 1.3 2002/12/02 19:36:58 fluxgen Exp $ #include "EventHandler.hh" #include @@ -34,7 +34,8 @@ public: static EventManager *instance(); void handleEvent(XEvent &ev); - + void add(EventHandler &ev, Window win) { registerEventHandler(ev, win); } + void remove(Window win) { unregisterEventHandler(win); } void registerEventHandler(EventHandler &ev, Window win); void unregisterEventHandler(Window win); private: -- cgit v0.11.2