Ardour  8.7-14-g57a6773833
rgbcmap.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GDKMM_RGBCMAP_H
4 #define _GDKMM_RGBCMAP_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: rgbcmap.hg,v 1.2 2003/12/14 11:54:01 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 
30 #include <gdkmmconfig.h>
31 #include <glibmm/arrayhandle.h>
32 
33 #ifndef DOXYGEN_SHOULD_SKIP_THIS
34 extern "C" { typedef struct _GdkRgbCmap GdkRgbCmap; }
35 #endif
36 
37 namespace Gdk
38 {
39 
40 class RgbCmap
41 {
42  public:
43 #ifndef DOXYGEN_SHOULD_SKIP_THIS
44  typedef RgbCmap CppObjectType;
45  typedef GdkRgbCmap BaseObjectType;
46 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
47 
48 private:
49 
50 
51 public:
52 
53  virtual ~RgbCmap();
54 
55 #ifndef GDKMM_DISABLE_DEPRECATED
56  explicit RgbCmap(const Glib::ArrayHandle<guint32>& colors);
57 
59  unsigned long size() const;
60 
62  guint32& operator[](unsigned long index);
63 
65  const guint32& operator[](unsigned long index) const;
66 #endif //GDKMM_DISABLE_DEPRECATED
67 
69  GdkRgbCmap* gobj() { return gobject_; }
71  const GdkRgbCmap* gobj() const { return gobject_; }
72 
73 protected:
75 
76 private:
77  // noncopyable
78  RgbCmap(const RgbCmap&);
80 
81 
82 };
83 
84 } // namespace Gdk
85 
86 
87 #endif /* _GDKMM_RGBCMAP_H */
88 
RgbCmap(const RgbCmap &)
virtual ~RgbCmap()
const guint32 & operator[](unsigned long index) const
Access the colors.
RgbCmap & operator=(const RgbCmap &)
guint32 & operator[](unsigned long index)
Access the colors.
GdkRgbCmap * gobj()
Provides access to the underlying C GObject.
Definition: rgbcmap.h:69
unsigned long size() const
Number of colors.
RgbCmap(const Glib::ArrayHandle< guint32 > &colors)
const GdkRgbCmap * gobj() const
Provides access to the underlying C GObject.
Definition: rgbcmap.h:71
GdkRgbCmap * gobject_
Definition: rgbcmap.h:74
typedefG_BEGIN_DECLS struct _GdkRgbCmap GdkRgbCmap
Definition: gdkrgb.h:38