• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • Examples
  • File List
  • File Members

gtk_canvas.h

Go to the documentation of this file.
00001 // gnash-canvas.h: Gtk canvas widget for gnash
00002 // 
00003 //   Copyright (C) 2009, 2010 Free Software Foundation, Inc.
00004 // 
00005 // This program is free software; you can redistribute it and/or modify
00006 // it under the terms of the GNU General Public License as published by
00007 // the Free Software Foundation; either version 3 of the License, or
00008 // (at your option) any later version.
00009 // 
00010 // This program is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU General Public License
00016 // along with this program; if not, write to the Free Software
00017 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00018 //
00019 
00020 #ifndef GNASH_GTK_CANVAS_H
00021 #define GNASH_GTK_CANVAS_H
00022 
00023 #include <string>
00024 #include <gtk/gtkdrawingarea.h>
00025 #include <boost/shared_ptr.hpp>
00026 
00027 // Forward declarations.
00028 namespace gnash {
00029     class Renderer;
00030 }
00031 
00032 G_BEGIN_DECLS
00033 
00034 typedef struct _GnashCanvas            GnashCanvas;
00035 typedef struct _GnashCanvasClass       GnashCanvasClass;
00036 
00037 #define GNASH_TYPE_CANVAS              (gnash_canvas_get_type())
00038 #define GNASH_CANVAS(object)           (G_TYPE_CHECK_INSTANCE_CAST((object), GNASH_TYPE_CANVAS, GnashCanvas))
00039 #define GNASH_CANVAS_CLASS(klass)          (G_TYPE_CHECK_CLASS_CAST((klass), GNASH_TYPE_CANVAS, GnashCanvasClass))
00040 #define GNASH_IS_CANVAS(object)        (G_TYPE_CHECK_INSTANCE_TYPE((object), GNASH_TYPE_CANVAS))
00041 #define GNASH_IS_CANVAS_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), GNASH_TYPE_CANVAS))
00042 #define GNASH_CANVAS_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), GNASH_TYPE_CANVAS, GnashCanvasClass))
00043 
00044 struct _GnashCanvasClass {
00045     GtkDrawingAreaClass base_class;
00046 };
00047 
00048 GType            gnash_canvas_get_type              ();
00049 GtkWidget       *gnash_canvas_new                   ();
00050 
00051 void             gnash_canvas_setup                 (GnashCanvas *canvas, std::string &hwaccel, std::string &renderer, int argc, char **argv[]);
00052 void             gnash_canvas_before_rendering      (GnashCanvas *canvas);
00053 boost::shared_ptr<gnash::Renderer>  gnash_canvas_get_renderer   (GnashCanvas *canvas);
00054 
00055 G_END_DECLS
00056 
00057 #endif
00058 
00059 // local Variables:
00060 // mode: C++
00061 // indent-tabs-mode: nil
00062 // End:
00063 

Generated on Fri Mar 16 2012 15:46:10 for Gnash by  doxygen 1.7.1