00001 /*************************************************************************** 00002 sdleventhandler.h - description 00003 ------------------- 00004 begin : Sat May 3 2003 00005 copyright : (C) 2003 by Gabor Torok 00006 email : cctorok@yahoo.com 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef SDLEVENTHANDLER_H 00019 #define SDLEVENTHANDLER_H 00020 00021 #include "constants.h" 00022 #include "gui/widget.h" 00023 00028 class Widget; 00029 00030 class SDLEventHandler { 00031 public: 00032 SDLEventHandler(); 00033 virtual ~SDLEventHandler(); 00034 00038 virtual bool handleEvent(SDL_Event *event) = 0; 00039 00043 virtual bool handleEvent(Widget *widget, SDL_Event *event) = 0; 00044 00045 }; 00046 00047 #endif
1.4.0