add and remove functions

This commit is contained in:
fluxgen 2002-12-02 19:36:58 +00:00
parent c8aff5576a
commit 2045fcca49

View file

@ -19,7 +19,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE. // 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 "EventHandler.hh"
#include <map> #include <map>
@ -34,7 +34,8 @@ public:
static EventManager *instance(); static EventManager *instance();
void handleEvent(XEvent &ev); 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 registerEventHandler(EventHandler &ev, Window win);
void unregisterEventHandler(Window win); void unregisterEventHandler(Window win);
private: private: