Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Examples

gdkmm/gl/pixmap.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _GDKMM_GL_PIXMAP_H
00004 #define _GDKMM_GL_PIXMAP_H
00005 
00006 #include <glibmm.h>
00007 
00008 // -*- C++ -*-
00009 /* gdkglextmm - C++ Wrapper for GdkGLExt
00010  * Copyright (C) 2002-2003  Naofumi Yasufuku
00011  *
00012  * This library is free software; you can redistribute it and/or
00013  * modify it under the terms of the GNU Lesser General Public
00014  * License as published by the Free Software Foundation; either
00015  * version 2.1 of the License, or (at your option) any later version.
00016  *
00017  * This library is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020  * Lesser General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU Lesser General Public
00023  * License along with this library; if not, write to the Free Software
00024  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
00025  */
00026 
00027 #include <gdkmm/gl/defs.h>
00028 
00029 #include <gdkmm/drawable.h>
00030 #include <gdkmm/pixmap.h>
00031 
00032 #include <gdkmm/gl/config.h>
00033 #include <gdkmm/gl/drawable.h>
00034 
00035 
00036 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00037 typedef struct _GdkGLPixmap GdkGLPixmap;
00038 typedef struct _GdkGLPixmapClass GdkGLPixmapClass;
00039 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00040 
00041 
00042 namespace Gdk
00043 {
00044 
00045 namespace GL
00046 { class Pixmap_Class; } // namespace GL
00047 
00048 } // namespace Gdk
00049 namespace Gdk
00050 {
00051 namespace GL
00052 {
00053 
00060 class Pixmap : public Gdk::Drawable,
00061                public Gdk::GL::Drawable
00062 {
00063   
00064 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00065 
00066 public:
00067   typedef Pixmap CppObjectType;
00068   typedef Pixmap_Class CppClassType;
00069   typedef GdkGLPixmap BaseObjectType;
00070   typedef GdkGLPixmapClass BaseClassType;
00071 
00072 private:  friend class Pixmap_Class;
00073   static CppClassType pixmap_class_;
00074 
00075 private:
00076   // noncopyable
00077   Pixmap(const Pixmap&);
00078   Pixmap& operator=(const Pixmap&);
00079 
00080 protected:
00081   explicit Pixmap(const Glib::ConstructParams& construct_params);
00082   explicit Pixmap(GdkGLPixmap* castitem);
00083 
00084 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00085 
00086 public:
00087   virtual ~Pixmap();
00088 
00089 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00090   static GType get_type()      G_GNUC_CONST;
00091   static GType get_base_type() G_GNUC_CONST;
00092 #endif
00093 
00095   GdkGLPixmap*       gobj()       { return reinterpret_cast<GdkGLPixmap*>(gobject_); }
00096 
00098   const GdkGLPixmap* gobj() const { return reinterpret_cast<GdkGLPixmap*>(gobject_); }
00099 
00100   GdkGLPixmap* gobj_copy();
00101 
00102 private:
00103 
00104 
00105 protected:
00106   Pixmap(const Glib::RefPtr<const Config>& glconfig,
00107          const Glib::RefPtr<const Gdk::Pixmap>& pixmap,
00108          const int* attrib_list = 0);
00109 
00110 public:
00111   
00112   static Glib::RefPtr<Pixmap> create(const Glib::RefPtr<const Config>& glconfig, const Glib::RefPtr<const Gdk::Pixmap>& pixmap, const int* attrib_list);
00113 
00114 
00115 public:
00116 
00117   
00124   Glib::RefPtr<Gdk::Pixmap> get_pixmap();
00125 
00126   
00133   Glib::RefPtr<const Gdk::Pixmap> get_pixmap() const;
00134 
00135 public:
00136 
00137   
00147   static Glib::RefPtr<Pixmap> set_gl_capability(const Glib::RefPtr<Gdk::Pixmap>& pixmap, const Glib::RefPtr<const Config>& glconfig, const int* attrib_list = 0);
00148 
00149   
00153   static void unset_gl_capability(const Glib::RefPtr<Gdk::Pixmap>& pixmap);
00154 
00155   
00159   static bool is_gl_capable(const Glib::RefPtr<const Gdk::Pixmap>& pixmap);
00160 
00161   
00165   static Glib::RefPtr<Pixmap> get_gl_pixmap(const Glib::RefPtr<const Gdk::Pixmap>& pixmap);
00166 
00167   
00168   static Glib::RefPtr<Gdk::GL::Drawable> get_gl_drawable(const Glib::RefPtr<const Gdk::Pixmap>& pixmap);
00169 
00170 
00171 public:
00172 
00173 public:
00174   //C++ methods used to invoke GTK+ virtual functions:
00175 
00176 protected:
00177   //GTK+ Virtual Functions (override these to change behaviour):
00178 
00179   //Default Signal Handlers::
00180 
00181 
00182 };
00183 
00197 } // namespace GL
00198 } // namespace Gdk
00199 
00200 
00201 namespace Glib
00202 {
00204   Glib::RefPtr<Gdk::GL::Pixmap> wrap(GdkGLPixmap* object, bool take_copy = false);
00205 }
00206 
00207 
00208 #endif /* _GDKMM_GL_PIXMAP_H */
00209 

Generated on Thu Nov 20 22:46:32 2003 for gtkglextmm by doxygen 1.3.4