Ardour  9.0-pre0-582-g084a23a80d
pixmap.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GDKMM_PIXMAP_H
4 #define _GDKMM_PIXMAP_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: pixmap.hg,v 1.5 2004/03/10 01:17:36 murrayc Exp $ */
11 
12 /* Copyright (C) 1998-2002 The gtkmm Development Team
13  *
14  * This library is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU Lesser General Public
16  * License as published by the Free Software Foundation; either
17  * version 2.1 of the License, or (at your option) any later version.
18  *
19  * This library is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22  * Lesser General Public License for more details.
23  *
24  * You should have received a copy of the GNU Lesser General Public
25  * License along with this library; if not, write to the Free
26  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27  */
28 
29 #include <gdkmm/drawable.h>
30 #include <gdkmm/color.h>
31 #include <gdkmm/colormap.h>
32 #include <gdkmm/types.h>
33 
34 
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
36 extern "C" {
37 //Custom stuct prototypes, because they aren't what the code-generator expects:
38 typedef struct _GdkDrawable GdkPixmap;
39 typedef struct _GdkPixmapClass GdkPixmapClass;
40 } // extern "C"
41 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
42 
43 
44 #ifndef DOXYGEN_SHOULD_SKIP_THIS
45 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
46 
47 
48 #ifndef DOXYGEN_SHOULD_SKIP_THIS
49 namespace Gdk
50 { class Pixmap_Class; } // namespace Gdk
51 #endif //DOXYGEN_SHOULD_SKIP_THIS
52 
53 namespace Gdk
54 {
55 
56 class Window;
57 
64 class Pixmap : public Gdk::Drawable
65 {
66  // GdkPixmap is a typedef to GdkDrawable, but it's actually a GdkPixmapObject.
67 
68 #ifndef DOXYGEN_SHOULD_SKIP_THIS
69 
70 public:
71  typedef Pixmap CppObjectType;
72  typedef Pixmap_Class CppClassType;
73  typedef GdkPixmap BaseObjectType;
74  typedef GdkPixmapObjectClass BaseClassType;
75 
76 private: friend class Pixmap_Class;
77  static CppClassType pixmap_class_;
78 
79 private:
80  // noncopyable
81  Pixmap(const Pixmap&);
82  Pixmap& operator=(const Pixmap&);
83 
84 protected:
85  explicit Pixmap(const Glib::ConstructParams& construct_params);
86  explicit Pixmap(GdkPixmap* castitem);
87 
88 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
89 
90 public:
91  virtual ~Pixmap();
92 
95  static GType get_type() G_GNUC_CONST;
96 
97 #ifndef DOXYGEN_SHOULD_SKIP_THIS
98 
99 
100  static GType get_base_type() G_GNUC_CONST;
101 #endif
102 
104  GdkPixmap* gobj() { return reinterpret_cast<GdkPixmap*>(gobject_); }
105 
107  const GdkPixmap* gobj() const { return reinterpret_cast<GdkPixmap*>(gobject_); }
108 
111 
112 private:
113 
114  // see wrap_new() implementation in pixmap.ccg
115 
116 
117 protected:
119 
120  Pixmap(const Glib::RefPtr<Drawable>& drawable, int width, int height, int depth = -1);
121 
123  Pixmap(const Glib::RefPtr<Drawable>& drawable,
124  const char* data, int width, int height, int depth,
125  const Color& fg, const Color& bg);
126 
127  Pixmap(const Glib::RefPtr<Display>& display, NativeWindow anid);
128 
129 public:
130 
131 
132  static Glib::RefPtr<Pixmap> create(const Glib::RefPtr<Drawable>& drawable, int width, int height, int depth = -1);
133 
134 
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);
136 
137 
138  static Glib::RefPtr<Pixmap> create(const Glib::RefPtr<Display>& display, NativeWindow anid);
139 
140 
141  static Glib::RefPtr<Pixmap> create_from_data(const Glib::RefPtr<const Drawable>& drawable,
142  const char* data, int width, int height, int depth,
143  const Color& fg, const Color& bg);
144 
146  static Glib::RefPtr<Pixmap> create_from_xpm(const Glib::RefPtr<const Drawable>& drawable,
147  const Color& transparent_color,
148  const std::string& filename);
149 
150  // Create a Pixmap from a xpm file.
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);
155 
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);
162 
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);
167 
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);
173 
174  static Glib::RefPtr<Pixmap> create_from_xpm(const Glib::RefPtr<Colormap>& colormap,
175  Glib::RefPtr<Bitmap>& mask,
176  const Color& transparent_color,
177  const char* const* data);
178 
179  static Glib::RefPtr<Pixmap> create_from_xpm(const Glib::RefPtr<Colormap>& colormap,
180  Glib::RefPtr<Bitmap>& mask,
181  const char* const* data);
182 
183 
184 public:
185 
186 public:
187  //C++ methods used to invoke GTK+ virtual functions:
188 
189 protected:
190  //GTK+ Virtual Functions (override these to change behaviour):
191 
192  //Default Signal Handlers::
193 
194 
195 };
196 
197 } // namespace Gdk
198 
199 
200 namespace Glib
201 {
210  Glib::RefPtr<Gdk::Pixmap> wrap(GdkPixmapObject* object, bool take_copy = false);
211 }
212 
213 
214 #endif /* _GDKMM_PIXMAP_H */
215 
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)
virtual ~Pixmap()
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.
Definition: pixmap.h:107
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.
Definition: pixmap.h:104
Definition: Window.h:41
typedefG_BEGIN_DECLS struct _GdkPixmapObject GdkPixmapObject
Definition: gdkpixmap.h:39
GdkNativeWindow NativeWindow
gint height
Definition: xcursors.h:1
gint width
Definition: xcursors.h:1