GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

pixmap.hh

Go to the documentation of this file.
00001 /* GFC-UI: GTK+ Foundation Classes (User Interface Library) 00002 * Copyright (C) 2002-2004 The GFC 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 GFC_GDK_PIXMAP_HH 00025 #define GFC_GDK_PIXMAP_HH 00026 00027 #ifndef GFC_GDK_DRAWABLE_HH 00028 #include <gfc/gdk/drawable.hh> 00029 #endif 00030 00031 namespace GFC { 00032 00033 namespace Gdk { 00034 00035 class Window; 00036 00045 00046 class Pixmap : public Drawable 00047 { 00048 friend class G::Object; 00049 00050 Pixmap(const Pixmap&); 00051 Pixmap& operator=(const Pixmap&); 00052 00053 protected: 00056 00057 explicit Pixmap(GdkPixmap *pixmap, bool owns_reference = true); 00064 00066 00067 public: 00070 00071 Pixmap(const Drawable& drawable, int width, int height); 00079 00080 Pixmap(int width, int height, int depth); 00085 00086 Pixmap(const Drawable& drawable, const char* data, int width, int height, const Color& fg, const Color& bg); 00094 00095 Pixmap(const char* data, int width, int height, int depth, const Color& fg, const Color& bg); 00104 00105 Pixmap(const Drawable& drawable, const String& filename, Pointer<Bitmap> *mask = 0, const Color *transparent_color = 0); 00113 00114 Pixmap(Colormap *colormap, const String& filename, Pointer<Bitmap> *mask = 0, const Color *transparent_color = 0); 00122 00123 Pixmap(const Drawable& drawable, const char * const *data, Pointer<Bitmap> *mask = 0, const Color *transparent_color = 0); 00131 00132 Pixmap(Colormap *colormap, const char * const *data, Pointer<Bitmap> *mask = 0, const Color *transparent_color = 0); 00140 00141 virtual ~Pixmap(); 00143 00145 00146 static Pointer<Pixmap> create(GdkNativeWindow anid, const Display *display = 0); 00155 00156 static Pointer<Pixmap> lookup(GdkNativeWindow anid, const Display *display = 0); 00163 00166 00167 GdkPixmap* gdk_pixmap() const; 00169 00170 GdkPixmapObject* gdk_pixmap_object() const; 00172 00176 00177 void clear(GC& gc, const Color& color); 00181 00183 }; 00184 00185 } // namespace Gdk 00186 00187 } // namespace GFC 00188 00189 #include <gfc/gdk/inline/pixmap.inl> 00190 00191 #endif // GFC_GDK_PIXMAP_HH 00192

Generated on Tue Aug 24 00:34:31 2004 for GFC-UI by doxygen 1.3.8