windowInterface.h
Go to the documentation of this file.00001 #ifndef WINDOW_INTERFACE_H
00002 #define WINDOW_INTERFACE_H
00003
00013 #include "focusComponentInterface.h"
00014 #include <limits.h>
00015
00016
00020 class WindowInterface {
00021 public:
00022 enum { All = -1 };
00023 int w;
00024 int h;
00026 virtual ~WindowInterface(void) {}
00027
00036 virtual void setTitle(const char *title, const char *icon = NULL) = 0;
00037
00045 virtual void autoHideCursor(int waitMsec = INT_MAX) = 0;
00046
00052 virtual void activate(bool on) = 0;
00053
00059 virtual unsigned long getTicks(void) = 0;
00060
00066 virtual void delay(unsigned long ticks) = 0;
00067
00071 virtual void lock(void) = 0;
00072
00076 virtual void unlock(void) = 0;
00077
00078 virtual void addInputComponent(FocusComponentInterface* component,
00079 char depth = 0) = 0;
00080
00087 virtual void add(ComponentInterface* component, char depth = 0) = 0;
00088
00095 virtual void del(ComponentInterface* component, char depth = 0) = 0;
00096
00102 virtual void clear(char depth = All) = 0;
00103
00104 virtual void toggleFocus(void) = 0;
00105 virtual void setFocus(FocusComponentInterface* component) = 0;
00106
00107 virtual void setFullscreen(bool on) = 0;
00108 virtual bool getNowFullscreen(void) = 0;
00109 };
00110
00111 #endif
00112