Gnash  0.8.11dev
gtk_glue_agg.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010,
3 // 2011 Free Software Foundation, Inc
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 //
19 
20 #ifdef HAVE_CONFIG_H
21 #include "gnashconfig.h"
22 #endif
23 
24 #include "gtk_glue.h"
25 
26 #include <gtk/gtk.h>
27 #include <gdk/gdk.h>
28 
29 namespace gnash
30 {
31 
32 class GtkAggGlue : public GtkGlue
33 {
34  public:
35  GtkAggGlue();
36  ~GtkAggGlue();
37 
38  bool init(int argc, char **argv[]);
39  bool needsDrawingArea() { return true; };
40  void prepDrawingArea(GtkWidget *drawing_area);
42  void setRenderHandlerSize(int width, int height);
43  virtual void beforeRendering(movie_root* stage);
44  void render();
45  void render(int minx, int miny, int maxx, int maxy);
46  void configure(GtkWidget *const widget, GdkEventConfigure *const event);
47 
48  private:
49  GdkImage* _offscreenbuf;
50  Renderer *_agg_renderer;
51 };
52 
53 } // namespace gnash
54 
55 // local Variables:
56 // mode: C++
57 // indent-tabs-mode: nil
58 // End:
Renderer_agg.h
gnash::GtkAggGlue::prepDrawingArea
void prepDrawingArea(GtkWidget *drawing_area)
Definition: gtk_glue_agg.cpp:63
gnash::GtkAggGlue::needsDrawingArea
bool needsDrawingArea()
Definition: gtk_glue_agg.h:39
gnash::GtkAggGlue
Definition: gtk_glue_agg.h:33
gnash::create_Renderer_agg
DSOEXPORT Renderer_agg_base * create_Renderer_agg(const char *pixelformat)
Create a render handler.
Definition: Renderer_agg.cpp:2048
gnash::GtkAggGlue::setRenderHandlerSize
void setRenderHandlerSize(int width, int height)
Definition: gtk_glue_agg.cpp:105
gnash::GtkAggGlue::beforeRendering
virtual void beforeRendering(movie_root *stage)
Definition: gtk_glue_agg.cpp:136
height
@ height
Definition: klash_part.cpp:329
gnash::GnashException
Top-level gnash exception.
Definition: GnashException.h:31
y
std::int32_t y
Definition: BitmapData_as.cpp:435
_
#define _(String)
Definition: log.h:44
Renderer.h
gnash::GtkAggGlue::~GtkAggGlue
~GtkAggGlue()
Definition: gtk_glue_agg.cpp:48
gnash
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
gnash::GtkAggGlue::createRenderHandler
Renderer * createRenderHandler()
Definition: gtk_glue_agg.cpp:74
GNASH_REPORT_FUNCTION
#define GNASH_REPORT_FUNCTION
Definition: log.h:452
gnash::Renderer
Base class for render handlers.
Definition: Renderer.h:189
gtk_glue_agg.h
gtk_glue.h
gnash::GtkAggGlue::init
bool init(int argc, char **argv[])
Definition: gtk_glue_agg.cpp:56
gnash::GtkGlue
Definition: gtk_glue.h:41
gnash::GtkAggGlue::render
void render()
Definition: gtk_glue_agg.cpp:144
gnash::agg_detect_pixel_format
DSOEXPORT const char * agg_detect_pixel_format(unsigned int rofs, unsigned int rsize, unsigned int gofs, unsigned int gsize, unsigned int bofs, unsigned int bsize, unsigned int bpp)
Definition: Renderer_agg.cpp:2109
log.h
gnash::GtkGlue::_drawing_area
GtkWidget * _drawing_area
Definition: gtk_glue.h:77
gnash::GtkAggGlue::configure
void configure(GtkWidget *const widget, GdkEventConfigure *const event)
Definition: gtk_glue_agg.cpp:170
gnash::Renderer_agg_base
Definition: Renderer_agg.h:30
gnashconfig.h
gnash::movie_root
This class represents the 'Stage' and top-level movie.
Definition: movie_root.h:151
gnash::GtkAggGlue::GtkAggGlue
GtkAggGlue()
Definition: gtk_glue_agg.cpp:41
width
@ width
Definition: klash_part.cpp:329
GnashException.h
x
std::int32_t x
Definition: BitmapData_as.cpp:434