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:
GtkAggGlue()
Definition: gtk_glue_agg.cpp:41
~GtkAggGlue()
Definition: gtk_glue_agg.cpp:48
void configure(GtkWidget *const widget, GdkEventConfigure *const event)
Definition: gtk_glue_agg.cpp:170
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
Definition: klash_part.cpp:329
void setRenderHandlerSize(int width, int height)
Definition: gtk_glue_agg.cpp:105
Base class for render handlers.
Definition: Renderer.h:188
void render()
Definition: gtk_glue_agg.cpp:144
Definition: klash_part.cpp:329
bool needsDrawingArea()
Definition: gtk_glue_agg.h:39
virtual void beforeRendering(movie_root *stage)
Definition: gtk_glue_agg.cpp:136
Definition: gtk_glue.h:40
Definition: gtk_glue_agg.h:32
Renderer * createRenderHandler()
Definition: gtk_glue_agg.cpp:74
bool init(int argc, char **argv[])
Definition: gtk_glue_agg.cpp:56
void prepDrawingArea(GtkWidget *drawing_area)
Definition: gtk_glue_agg.cpp:63
This class represents the &#39;Stage&#39; and top-level movie.
Definition: movie_root.h:150