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 __AQUASUP_H__
00021 #define __AQUASUP_H__
00022
00023 #ifdef HAVE_CONFIG_H
00024 #include "gnashconfig.h"
00025 #endif
00026
00027 #include <vector>
00028
00029 #include "gui.h"
00030
00031 #if defined(RENDERER_OPENGL)
00032 #include "aqua_ogl_glue.h"
00033 #endif
00034
00035 namespace gnash {
00036
00037 class DSOEXPORT AquaGui : public Gui
00038 {
00039 private:
00040
00041 std::vector< geometry::Range2d<int> > _drawbounds;
00042
00043 int m_stage_width;
00044 int m_stage_height;
00045
00046 int valid_x(int x);
00047 int valid_y(int y);
00048 void key_event(int key, bool down);
00049 unsigned int _timeout;
00050
00051 EventLoopTimerRef* _advance_timer;
00052
00053 #if defined(RENDERER_OPENGL)
00054 AquaOglGlue _glue;
00055 #ifdef FIX_I810_LOD_BIAS
00056 float _tex_lod_bias;
00057 #endif
00058 #endif
00059
00060 public:
00061 AquaGui(unsigned long xid, float scale, bool loop, RunResources& r);
00062 virtual ~AquaGui();
00063 virtual bool init(int argc, char **argv[]);
00064 virtual void setCursor(gnash_cursor_type newcursor);
00065 virtual bool createWindow(const char *title, int width, int height,
00066 int xPosition = 0, int yPosition = 0);
00067 virtual bool run();
00068 virtual bool createMenu();
00069 virtual bool setupEvents();
00070 virtual void renderBuffer();
00071 virtual void setTimeout(unsigned int timeout);
00072 };
00073
00074 }
00075
00076 #endif