00001 #ifndef SDL_WINDOW_H 00002 #define SDL_WINDOW_H 00003 00013 #include "sdlVideo.h" 00014 #include "windowInterface.h" 00015 00016 00020 class SDL_Window : public SDL_Video, public WindowInterface { 00021 public: 00027 SDL_Window(bool fullscreen = false); 00028 ~SDL_Window(void); 00029 00030 void setTitle(const char *title, const char *icon); 00031 void autoHideCursor(int waitMsec); 00032 void activate(bool on); 00033 unsigned long getTicks(void); 00034 void delay(unsigned long ticks); 00035 void lock(void); 00036 void unlock(void); 00037 void add(ComponentInterface* component, char depth); 00038 void del(ComponentInterface* component, char depth); 00039 void clear(char depth); 00040 void addInputComponent(FocusComponentInterface* component, char depth); 00041 void toggleFocus(void); 00042 void setFocus(FocusComponentInterface* component); 00043 void setFullscreen(bool on); 00044 bool getNowFullscreen(void); 00045 }; 00046 00047 #endif /* !SDL_WINDOW_H */ 00048