Reference Manual
Inti Logo
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

pixmap.h

Go to the documentation of this file.
00001 /*  Inti-GL: Integrated Foundation Classes
00002  *  Copyright (C) 2003 The Inti Development Team.
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU Library General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU Library General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  */
00018 
00023 
00024 #ifndef INTI_GDK_GL_PIXMAP_H
00025 #define INTI_GDK_GL_PIXMAP_H
00026 
00027 #ifndef INTI_GDK_DRAWABLE_H
00028 #include <inti/gdk/drawable.h>
00029 #endif
00030 
00031 #ifndef INTI_GDK_GL_DRAWABLE_H
00032 #include <inti/gdk/gl/drawable.h>
00033 #endif
00034 
00035 #ifndef __GDK_GL_PIXMAP_H__
00036 #include <gdk/gdkglpixmap.h>
00037 #endif
00038 
00039 namespace Inti {
00040 
00041 namespace Gdk {
00042 
00043 class Pixmap;
00044 
00045 namespace GL {
00046 
00047 class Config;
00048 class PixmapClass;
00049 
00054 
00055 class Pixmap : public Gdk::Drawable, public Gdk::GL::Drawable
00056 {
00057         friend class G::Object;
00058         friend class PixmapClass;
00059 
00060         Pixmap(const Pixmap&);
00061         Pixmap& operator=(const Pixmap&);
00062 
00063 protected:
00066 
00067         explicit Pixmap(GdkGLPixmap *pixmap, bool reference = true);
00074 
00076 
00077 public:
00080 
00081         virtual ~Pixmap();
00083 
00085 
00086         static Pointer<Pixmap> create(const Config& glconfig, const Gdk::Pixmap& pixmap, const int *attrib_list = 0);
00095 
00096         static Pixmap* get_gl_pixmap(Gdk::Pixmap& pixmap);
00100 
00101         static Gdk::GL::Drawable* get_gl_drawable(Gdk::Pixmap& pixmap);
00107 
00108         static bool is_gl_capable(Gdk::Pixmap& pixmap);
00112 
00113         static Pointer<Pixmap> set_gl_capability(Gdk::Pixmap& pixmap, const Config& glconfig, const int *attrib_list = 0);
00122 
00123         static void unset_gl_capability(Gdk::Pixmap& pixmap);
00128 
00131 
00132         GdkGLPixmap* gdk_gl_pixmap() const { return (GdkGLPixmap*)instance; }
00134 
00135         GdkGLPixmapClass* gdk_gl_pixmap_class() const;
00137 
00138         operator GdkGLPixmap* () const;
00140 
00141         Gdk::Pixmap* get_pixmap() const;
00147 
00151 
00152         virtual void dispose();
00155 
00157 };
00158 
00159 } // namespace GL
00160 
00161 } // namespace Gdk
00162 
00163 } // namespace Inti
00164 
00165 #endif // INTI_GDK_GL_PIXMAP_H
00166 
Main Page - Footer


Generated on Sun Sep 14 20:59:26 2003 for Inti-GL by doxygen 1.3.2 written by Dimitri van Heesch, © 1997-2002