Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef NULLGUI_H
00021 #define NULLGUI_H
00022
00023 #ifdef HAVE_CONFIG_H
00024 #include "gnashconfig.h"
00025 #endif
00026
00027 #include "gui.h"
00028
00029 namespace gnash
00030 {
00031
00033 class NullGui : public Gui
00034 {
00035 public:
00036
00037 NullGui(bool do_loop, RunResources& r)
00038 :
00039 Gui(0, 0, do_loop, r),
00040 _timeout(0),
00041 _quit(false)
00042 {}
00043
00044 ~NullGui() {}
00045
00046 void setInterval(unsigned int interval) {
00047 _interval=interval;
00048 }
00049
00050 void setTimeout(unsigned int to) {
00051 _timeout=to;
00052 }
00053
00054 bool init(int, char ***) { return true; }
00055
00056 bool createWindow(const char* , int , int ,
00057 int , int ) {
00058 return true;
00059 }
00060
00061 bool run();
00062 bool createMenu() { return true; }
00063 bool setupEvents() { return true; }
00064 void renderBuffer() { }
00065
00066 void quitUI() { _quit = true; }
00067
00068 private:
00069
00071 unsigned int _timeout;
00072
00074 bool _quit;
00075 };
00076
00077 }
00078
00079 #endif