Ardour  9.0-pre0-582-g084a23a80d
bitmap.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GDKMM_BITMAP_H
4 #define _GDKMM_BITMAP_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: bitmap.hg,v 1.3 2004/01/05 17:32:12 murrayc Exp $ */
11 
12 /* Copyright (C) 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/pixmap.h>
30 
31 
32 namespace Gdk
33 {
34 
35 class Window;
36 
37 // In GDK, GdkBitmap has the same type as GdkPixmap. Both are typedefed
38 // to their base type GdkDrawable, but the real type is GdkPixmapObject.
39 // A GdkBitmap is a GdkPixmap with a depth of 1.
40 
43 class Bitmap : public Gdk::Pixmap
44 {
45  // The Bitmap type only really exists in gtkmm. We fake its existence
46  // with a custom Gdk::Pixmap_Class::wrap_new() -- see comments there.
47  public:
48 #ifndef DOXYGEN_SHOULD_SKIP_THIS
49  typedef Bitmap CppObjectType;
50  typedef GdkBitmap BaseObjectType;
51 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
52 
53 private:
54 
55 
56 protected:
57 #ifndef DOXYGEN_SHOULD_SKIP_THIS
58  explicit Bitmap(GdkBitmap* castitem);
59  friend class Gdk::Pixmap_Class;
60 #endif
61 
62  Bitmap(const char* data, int width, int height);
63 
64  Bitmap(const Glib::RefPtr<Gdk::Drawable>& drawable, const char* data, int width, int height);
65 
66 public:
67 
68  static Glib::RefPtr<Bitmap> create(const char* data, int width, int height);
69 
70 
71  static Glib::RefPtr<Bitmap> create(const Glib::RefPtr<Gdk::Drawable>& drawable, const char* data, int width, int height);
72 
73 
74 };
75 
76 } // namespace Gdk
77 
78 
79 #endif /* _GDKMM_BITMAP_H */
80 
static Glib::RefPtr< Bitmap > create(const Glib::RefPtr< Gdk::Drawable > &drawable, const char *data, int width, int height)
static Glib::RefPtr< Bitmap > create(const char *data, int width, int height)
Bitmap(const Glib::RefPtr< Gdk::Drawable > &drawable, const char *data, int width, int height)
Bitmap(const char *data, int width, int height)
Definition: Window.h:41
gint height
Definition: xcursors.h:1
gint width
Definition: xcursors.h:1