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 void setInterval(unsigned int interval)
00046 {
00047 _interval=interval;
00048 }
00049 void setTimeout(unsigned int to)
00050 {
00051 _timeout=to;
00052 }
00053 bool init(int, char ***) { return true; }
00054 bool createWindow(const char* , int , int ,
00055 int , int )
00056 {
00057 return true;
00058 }
00059 bool run();
00060 bool createMenu() { return true; }
00061 bool setupEvents() { return true; }
00062 void renderBuffer() { }
00063
00064 void quitUI() { _quit = true; }
00065
00066 private:
00067
00069 unsigned int _timeout;
00070
00072 bool _quit;
00073 };
00074
00075 }
00076
00077
00078 #endif