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 #ifndef GNASH_KDE4_AGG_GLUE_H
00020 #define GNASH_KDE4_AGG_GLUE_H
00021
00022
00023 #ifdef HAVE_CONFIG_H
00024 #include "gnashconfig.h"
00025 #endif
00026
00027 #include "Kde4Glue.h"
00028
00029 #include <memory>
00030 #include <QImage>
00031 #include <boost/scoped_array.hpp>
00032 #include <QPainter>
00033 #include "snappingrange.h"
00034
00035 class QRect;
00036
00037 namespace gnash
00038 {
00039
00040 class Kde4AggGlue : public Kde4Glue
00041 {
00042 public:
00043 Kde4AggGlue();
00044 ~Kde4AggGlue();
00045
00046 bool init(int argc, char **argv[]);
00047 void prepDrawingArea(DrawingWidget *drawing_area);
00048 Renderer* createRenderHandler();
00049 void initBuffer(int width, int height);
00050 void resize(int width, int height);
00051 void render();
00052 void render(const QRect& updateRect);
00053
00054 private:
00055 int _width;
00056 int _height;
00057 boost::scoped_array<unsigned char> _offscreenbuf;
00058 Renderer* _renderer;
00059 std::auto_ptr<QImage> _image;
00060 std::auto_ptr<QPainter> _painter;
00061 };
00062
00063
00064 }
00065
00066 #endif