libgnomeuimm 2.28.0
color-picker.h
Go to the documentation of this file.
1// -*- c++ -*-
2// Generated by gtkmmproc -- DO NOT MODIFY!
3#ifndef _LIBGNOMEUIMM_COLOR_PICKER_H
4#define _LIBGNOMEUIMM_COLOR_PICKER_H
5
6
7#include <glibmm.h>
8
9// -*- C++ -*- // this is for the .hg, I realize gensig puts one in
10/* $Id: color-picker.hg,v 1.11 2003/11/29 16:39:08 murrayc Exp $ */
11
12/* color-picker.h
13 *
14 * Copyright (C) 1998 EMC Capital Management Inc.
15 * Developed by Havoc Pennington <hp@pobox.com>
16 *
17 * Copyright (C) 1999 The Gtk-- Development Team
18 *
19 * This library is free software; you can redistribute it and/or
20 * modify it under the terms of the GNU Lesser General Public
21 * License as published by the Free Software Foundation; either
22 * version 2.1 of the License, or (at your option) any later version.
23 *
24 * This library is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27 * Lesser General Public License for more details.
28 *
29 * You should have received a copy of the GNU Lesser General Public
30 * License along with this library; if not, write to the Free
31 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 */
33
34#include <gtkmm/button.h>
35
36
37#ifndef DOXYGEN_SHOULD_SKIP_THIS
38typedef struct _GnomeColorPicker GnomeColorPicker;
39typedef struct _GnomeColorPickerClass GnomeColorPickerClass;
40#endif /* DOXYGEN_SHOULD_SKIP_THIS */
41
42
43namespace Gnome
44{
45
46namespace UI
47{ class ColorPicker_Class; } // namespace UI
48
49} // namespace Gnome
50namespace Gnome
51{
52
53namespace UI
54{
55
56#ifndef GNOMEMM_DISABLE_DEPRECATED
57
58/* Button used to Select Colors
59 * This widget provides color selection facilities to your
60 * application. The widget appears as a button which contains a
61 * "color swatch" of the currently selected color. When the button
62 * is pressed, the widget presents the user with a color selection
63 * dialog where the color can be selected.
64 *
65 * You can select the color to be displayed in a number of ways:
66 * floating point values for the red, green and blue channels,
67 * integers in the range 0 to 65,535, or integers in the range 0 to
68 * 255, depending on your needs.
69 */
70
71class ColorPicker : public Gtk::Button
72{
73 public:
74#ifndef DOXYGEN_SHOULD_SKIP_THIS
75 typedef ColorPicker CppObjectType;
76 typedef ColorPicker_Class CppClassType;
77 typedef GnomeColorPicker BaseObjectType;
78 typedef GnomeColorPickerClass BaseClassType;
79#endif /* DOXYGEN_SHOULD_SKIP_THIS */
80
81 virtual ~ColorPicker();
82
83#ifndef DOXYGEN_SHOULD_SKIP_THIS
84
85private:
86 friend class ColorPicker_Class;
87 static CppClassType colorpicker_class_;
88
89 // noncopyable
91 ColorPicker& operator=(const ColorPicker&);
92
93protected:
94 explicit ColorPicker(const Glib::ConstructParams& construct_params);
95 explicit ColorPicker(GnomeColorPicker* castitem);
96
97#endif /* DOXYGEN_SHOULD_SKIP_THIS */
98
99public:
100#ifndef DOXYGEN_SHOULD_SKIP_THIS
101 static GType get_type() G_GNUC_CONST;
102
103
104 static GType get_base_type() G_GNUC_CONST;
105#endif
106
108 GnomeColorPicker* gobj() { return reinterpret_cast<GnomeColorPicker*>(gobject_); }
109
111 const GnomeColorPicker* gobj() const { return reinterpret_cast<GnomeColorPicker*>(gobject_); }
112
113
114public:
115 //C++ methods used to invoke GTK+ virtual functions:
116#ifdef GLIBMM_VFUNCS_ENABLED
117#endif //GLIBMM_VFUNCS_ENABLED
118
119protected:
120 //GTK+ Virtual Functions (override these to change behaviour):
121#ifdef GLIBMM_VFUNCS_ENABLED
122#endif //GLIBMM_VFUNCS_ENABLED
123
124 //Default Signal Handlers::
125#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
126 virtual void on_color_set(guint r, guint g, guint b, guint a);
127#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
128
129
130private:
131
132public:
134
135
136 void set(double r, double g, double b, double a);
137
138
139 void set(guint8 r, guint8 g, guint8 b, guint8 a);
140
141
142 void set(gushort r, gushort g, gushort b, gushort a);
143
144
145 void get(double& r, double& g, double& b, double& a) const;
146
147 void get(guint8& r, guint8& g, guint8& b, guint8& a) const;
148
149 void get(gushort& r, gushort& g, gushort& b, gushort& a) const;
150
151
152 void set_dither(bool dither = true);
153
154 bool get_dither() const;
155
156
157 void set_use_alpha(bool use_alpha = true);
158
159 bool get_use_alpha() const;
160
161
162 void set_title(const Glib::ustring& title);
163
164 Glib::ustring get_title() const;
165
166
172 Glib::SignalProxy4< void,guint,guint,guint,guint > signal_color_set();
173
174
175 #ifdef GLIBMM_PROPERTIES_ENABLED
182 Glib::PropertyProxy<bool> property_dither() ;
183#endif //#GLIBMM_PROPERTIES_ENABLED
184
185#ifdef GLIBMM_PROPERTIES_ENABLED
192 Glib::PropertyProxy_ReadOnly<bool> property_dither() const;
193#endif //#GLIBMM_PROPERTIES_ENABLED
194
195 #ifdef GLIBMM_PROPERTIES_ENABLED
202 Glib::PropertyProxy<bool> property_use_alpha() ;
203#endif //#GLIBMM_PROPERTIES_ENABLED
204
205#ifdef GLIBMM_PROPERTIES_ENABLED
212 Glib::PropertyProxy_ReadOnly<bool> property_use_alpha() const;
213#endif //#GLIBMM_PROPERTIES_ENABLED
214
215 #ifdef GLIBMM_PROPERTIES_ENABLED
222 Glib::PropertyProxy<Glib::ustring> property_title() ;
223#endif //#GLIBMM_PROPERTIES_ENABLED
224
225#ifdef GLIBMM_PROPERTIES_ENABLED
232 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_title() const;
233#endif //#GLIBMM_PROPERTIES_ENABLED
234
235 #ifdef GLIBMM_PROPERTIES_ENABLED
242 Glib::PropertyProxy<guint> property_red() ;
243#endif //#GLIBMM_PROPERTIES_ENABLED
244
245#ifdef GLIBMM_PROPERTIES_ENABLED
252 Glib::PropertyProxy_ReadOnly<guint> property_red() const;
253#endif //#GLIBMM_PROPERTIES_ENABLED
254
255 #ifdef GLIBMM_PROPERTIES_ENABLED
262 Glib::PropertyProxy<guint> property_green() ;
263#endif //#GLIBMM_PROPERTIES_ENABLED
264
265#ifdef GLIBMM_PROPERTIES_ENABLED
272 Glib::PropertyProxy_ReadOnly<guint> property_green() const;
273#endif //#GLIBMM_PROPERTIES_ENABLED
274
275 #ifdef GLIBMM_PROPERTIES_ENABLED
282 Glib::PropertyProxy<guint> property_blue() ;
283#endif //#GLIBMM_PROPERTIES_ENABLED
284
285#ifdef GLIBMM_PROPERTIES_ENABLED
292 Glib::PropertyProxy_ReadOnly<guint> property_blue() const;
293#endif //#GLIBMM_PROPERTIES_ENABLED
294
295 #ifdef GLIBMM_PROPERTIES_ENABLED
302 Glib::PropertyProxy<guint> property_alpha() ;
303#endif //#GLIBMM_PROPERTIES_ENABLED
304
305#ifdef GLIBMM_PROPERTIES_ENABLED
312 Glib::PropertyProxy_ReadOnly<guint> property_alpha() const;
313#endif //#GLIBMM_PROPERTIES_ENABLED
314
315
316};
317
318#endif //GNOMEMM_DISABLE_DEPRECATED
319
320} /* namespace UI */
321} /* namespace Gnome */
322
323
324namespace Glib
325{
334 Gnome::UI::ColorPicker* wrap(GnomeColorPicker* object, bool take_copy = false);
335} //namespace Glib
336
337
338#endif /* _LIBGNOMEUIMM_COLOR_PICKER_H */
339
Definition: color-picker.h:72
bool get_dither() const
void get(gushort &r, gushort &g, gushort &b, gushort &a) const
void set(double r, double g, double b, double a)
Glib::PropertyProxy< bool > property_use_alpha()
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy_ReadOnly< guint > property_blue() const
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy_ReadOnly< guint > property_alpha() const
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
const GnomeColorPicker * gobj() const
Provides access to the underlying C GtkObject.
Definition: color-picker.h:111
void get(double &r, double &g, double &b, double &a) const
Glib::PropertyProxy_ReadOnly< bool > property_use_alpha() const
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
GnomeColorPicker * gobj()
Provides access to the underlying C GtkObject.
Definition: color-picker.h:108
bool get_use_alpha() const
Glib::PropertyProxy< bool > property_dither()
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
void get(guint8 &r, guint8 &g, guint8 &b, guint8 &a) const
virtual void on_color_set(guint r, guint g, guint b, guint a)
Glib::PropertyProxy_ReadOnly< guint > property_green() const
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::SignalProxy4< void, guint, guint, guint, guint > signal_color_set()
Glib::PropertyProxy< guint > property_blue()
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
void set_use_alpha(bool use_alpha=true)
Glib::PropertyProxy< Glib::ustring > property_title()
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Gnome::UI::ColorPicker * wrap(GnomeColorPicker *object, bool take_copy=false)
A Glib::wrap() method for this object.
void set(guint8 r, guint8 g, guint8 b, guint8 a)
Glib::PropertyProxy< guint > property_green()
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy< guint > property_red()
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_title() const
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
void set(gushort r, gushort g, gushort b, gushort a)
void set_title(const Glib::ustring &title)
void set_dither(bool dither=true)
Glib::PropertyProxy_ReadOnly< bool > property_dither() const
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy_ReadOnly< guint > property_red() const
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::ustring get_title() const
Glib::PropertyProxy< guint > property_alpha()
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Definition: about.h:306
Definition: about.h:46