Main Page - Header
Author: The Inti Development Team

Reference Manual

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: Integrated Foundation Classes
    00002  *  Copyright (C) 2002 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_PIXMAP_H
    00025 #define INTI_GDK_PIXMAP_H
    00026
    00027 #ifndef INTI_GDK_DRAWABLE_H
    00028 #include <inti/gdk/drawable.h>
    00029 #endif
    00030
    00031 namespace Inti {
    00032
    00033 namespace Gdk {
    00034
    00035 class PixmapClass;
    00036 class Window;
    00037
    00046
    00047 class Pixmap : public Drawable
    00048 {
    00049         friend class G::Object;
    00050         friend class PixmapClass;
    00051
    00052         Pixmap(const Pixmap&);
    00053         Pixmap& operator=(const Pixmap&);
    00054
    00055 protected:
    00058
    00059         explicit Pixmap(GdkPixmap *pixmap, bool reference = true);
    00066
    00068
    00069 public:
    00072
    00073         Pixmap(const Drawable& drawable, int width, int height);
    00081
    00082         Pixmap(int width, int height, int depth);
    00087
    00088         Pixmap(const Drawable& drawable, const char* data, int width, int height, const Color& fg, const Color& bg);
    00096
    00097         Pixmap(const char* data, int width, int height, int depth, const Color& fg, const Color& bg);
    00106
    00107         Pixmap(const Drawable& drawable, const String& filename, Pointer<Bitmap> *mask = 0, const Color *transparent_color = 0);
    00115
    00116         Pixmap(Colormap *colormap, const String& filename, Pointer<Bitmap> *mask = 0, const Color *transparent_color = 0);
    00124
    00125         Pixmap(const Drawable& drawable, const char * const *data, Pointer<Bitmap> *mask = 0, const Color *transparent_color = 0);
    00133
    00134         Pixmap(Colormap *colormap, const char * const *data, Pointer<Bitmap> *mask = 0, const Color *transparent_color = 0);
    00142
    00143         virtual ~Pixmap();
    00145
    00147
    00148         static Pointer<Pixmap> create(GdkNativeWindow anid, const Display *display = 0);
    00157
    00158         static Pointer<Pixmap> lookup(GdkNativeWindow anid, const Display *display = 0);
    00165
    00168
    00169         GdkPixmap* gdk_pixmap() const { return (GdkPixmap*)instance; }
    00171
    00172         GdkPixmapObject* gdk_pixmap_object() const;
    00174
    00175         GdkPixmapObjectClass* gdk_pixmap_object_class() const;
    00177
    00181
    00182         void clear(GC& gc, const Color& color);
    00186
    00188 };
    00189
    00190 } // namespace Gdk
    00191
    00192 } // namespace Inti
    00193
    00194 #endif // INTI_GDK_PIXMAP_H
    00195

Main Page - Footer