3 #ifndef _GDKMM_PIXMAP_H
4 #define _GDKMM_PIXMAP_H
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
39 typedef struct _GdkPixmapClass GdkPixmapClass;
44 #ifndef DOXYGEN_SHOULD_SKIP_THIS
48 #ifndef DOXYGEN_SHOULD_SKIP_THIS
50 {
class Pixmap_Class; }
68 #ifndef DOXYGEN_SHOULD_SKIP_THIS
71 typedef Pixmap CppObjectType;
77 static CppClassType pixmap_class_;
85 explicit Pixmap(
const Glib::ConstructParams& construct_params);
97 #ifndef DOXYGEN_SHOULD_SKIP_THIS
100 static GType get_base_type() G_GNUC_CONST;
123 Pixmap(
const Glib::RefPtr<Drawable>& drawable,
124 const char* data,
int width,
int height,
int depth,
132 static Glib::RefPtr<Pixmap>
create(
const Glib::RefPtr<Drawable>& drawable,
int width,
int height,
int depth = -1);
135 static Glib::RefPtr<Pixmap>
create(
const Glib::RefPtr<Drawable>& drawable,
const char* data,
int width,
int height,
int depth,
const Color& fg,
const Color& bg);
142 const char* data,
int width,
int height,
int depth,
146 static Glib::RefPtr<Pixmap>
create_from_xpm(
const Glib::RefPtr<const Drawable>& drawable,
147 const Color& transparent_color,
148 const std::string& filename);
151 static Glib::RefPtr<Pixmap>
create_from_xpm(
const Glib::RefPtr<const Drawable>& drawable,
152 Glib::RefPtr<Bitmap>& mask,
153 const Color& transparent_color,
154 const std::string& filename);
157 static Glib::RefPtr<Pixmap>
create_from_xpm(
const Glib::RefPtr<const Drawable>& drawable,
158 const Glib::RefPtr<Colormap>& colormap,
159 Glib::RefPtr<Bitmap>& mask,
160 const Color& transparent_color,
161 const std::string& filename);
163 static Glib::RefPtr<Pixmap>
create_from_xpm(
const Glib::RefPtr<const Drawable>& drawable,
164 Glib::RefPtr<Bitmap>& mask,
165 const Color& transparent_color,
166 const char*
const* data);
168 static Glib::RefPtr<Pixmap>
create_from_xpm(
const Glib::RefPtr<const Drawable>& drawable,
169 const Glib::RefPtr<Colormap>& colormap,
170 Glib::RefPtr<Bitmap>& mask,
171 const Color& transparent_color,
172 const char*
const* data);
175 Glib::RefPtr<Bitmap>& mask,
176 const Color& transparent_color,
177 const char*
const* data);
180 Glib::RefPtr<Bitmap>& mask,
181 const char*
const* data);
static Glib::RefPtr< Pixmap > create_from_xpm(const Glib::RefPtr< const Drawable > &drawable, const Color &transparent_color, const std::string &filename)
Create a Pixmap from a xpm file.
static Glib::RefPtr< Pixmap > create_from_xpm(const Glib::RefPtr< Colormap > &colormap, Glib::RefPtr< Bitmap > &mask, const Color &transparent_color, const char *const *data)
Pixmap(const Glib::RefPtr< Drawable > &drawable, int width, int height, int depth=-1)
static Glib::RefPtr< Pixmap > create(const Glib::RefPtr< Drawable > &drawable, const char *data, int width, int height, int depth, const Color &fg, const Color &bg)
static Glib::RefPtr< Pixmap > create_from_xpm(const Glib::RefPtr< const Drawable > &drawable, Glib::RefPtr< Bitmap > &mask, const Color &transparent_color, const char *const *data)
Pixmap(const Glib::RefPtr< Display > &display, NativeWindow anid)
static Glib::RefPtr< Pixmap > create_from_xpm(const Glib::RefPtr< const Drawable > &drawable, const Glib::RefPtr< Colormap > &colormap, Glib::RefPtr< Bitmap > &mask, const Color &transparent_color, const char *const *data)
static Glib::RefPtr< Pixmap > create_from_xpm(const Glib::RefPtr< const Drawable > &drawable, Glib::RefPtr< Bitmap > &mask, const Color &transparent_color, const std::string &filename)
Pixmap(const Glib::RefPtr< Drawable > &drawable, const char *data, int width, int height, int depth, const Color &fg, const Color &bg)
Initialize a Pixmap from data.
static Glib::RefPtr< Pixmap > create(const Glib::RefPtr< Drawable > &drawable, int width, int height, int depth=-1)
GdkPixmap * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
static Glib::RefPtr< Pixmap > create_from_xpm(const Glib::RefPtr< const Drawable > &drawable, const Glib::RefPtr< Colormap > &colormap, Glib::RefPtr< Bitmap > &mask, const Color &transparent_color, const std::string &filename)
Create a Pixmap from a xpm file with colormap.
static Glib::RefPtr< Pixmap > create(const Glib::RefPtr< Display > &display, NativeWindow anid)
static GType get_type() G_GNUC_CONST
const GdkPixmap * gobj() const
Provides access to the underlying C GObject.
static Glib::RefPtr< Pixmap > create_from_data(const Glib::RefPtr< const Drawable > &drawable, const char *data, int width, int height, int depth, const Color &fg, const Color &bg)
static Glib::RefPtr< Pixmap > create_from_xpm(const Glib::RefPtr< Colormap > &colormap, Glib::RefPtr< Bitmap > &mask, const char *const *data)
Glib::RefPtr< Gdk::Pixmap > wrap(GdkPixmapObject *object, bool take_copy=false)
GdkPixmap * gobj()
Provides access to the underlying C GObject.
typedefG_BEGIN_DECLS struct _GdkPixmapObject GdkPixmapObject
GdkNativeWindow NativeWindow