00001
00002
00003 #ifndef _LIBGNOMEUIMM_COLOR_PICKER_H
00004 #define _LIBGNOMEUIMM_COLOR_PICKER_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #include <gtkmm/button.h>
00035
00036
00037 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00038 typedef struct _GnomeColorPicker GnomeColorPicker;
00039 typedef struct _GnomeColorPickerClass GnomeColorPickerClass;
00040 #endif
00041
00042
00043 namespace Gnome
00044 {
00045
00046 namespace UI
00047 { class ColorPicker_Class; }
00048
00049 }
00050 namespace Gnome
00051 {
00052
00053 namespace UI
00054 {
00055
00056 #ifndef GNOMEMM_DISABLE_DEPRECATED
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071 class ColorPicker : public Gtk::Button
00072 {
00073 public:
00074 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00075 typedef ColorPicker CppObjectType;
00076 typedef ColorPicker_Class CppClassType;
00077 typedef GnomeColorPicker BaseObjectType;
00078 typedef GnomeColorPickerClass BaseClassType;
00079 #endif
00080
00081 virtual ~ColorPicker();
00082
00083 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00084
00085 private:
00086 friend class ColorPicker_Class;
00087 static CppClassType colorpicker_class_;
00088
00089
00090 ColorPicker(const ColorPicker&);
00091 ColorPicker& operator=(const ColorPicker&);
00092
00093 protected:
00094 explicit ColorPicker(const Glib::ConstructParams& construct_params);
00095 explicit ColorPicker(GnomeColorPicker* castitem);
00096
00097 #endif
00098
00099 public:
00100 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00101 static GType get_type() G_GNUC_CONST;
00102
00103
00104 static GType get_base_type() G_GNUC_CONST;
00105 #endif
00106
00108 GnomeColorPicker* gobj() { return reinterpret_cast<GnomeColorPicker*>(gobject_); }
00109
00111 const GnomeColorPicker* gobj() const { return reinterpret_cast<GnomeColorPicker*>(gobject_); }
00112
00113
00114 public:
00115
00116 #ifdef GLIBMM_VFUNCS_ENABLED
00117 #endif //GLIBMM_VFUNCS_ENABLED
00118
00119 protected:
00120
00121 #ifdef GLIBMM_VFUNCS_ENABLED
00122 #endif //GLIBMM_VFUNCS_ENABLED
00123
00124
00125 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00126 virtual void on_color_set(guint r, guint g, guint b, guint a);
00127 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00128
00129
00130 private:
00131
00132 public:
00133 ColorPicker();
00134
00135
00136 void set(double r, double g, double b, double a);
00137
00138
00139 void set(guint8 r, guint8 g, guint8 b, guint8 a);
00140
00141
00142 void set(gushort r, gushort g, gushort b, gushort a);
00143
00144
00145 void get(double& r, double& g, double& b, double& a) const;
00146
00147 void get(guint8& r, guint8& g, guint8& b, guint8& a) const;
00148
00149 void get(gushort& r, gushort& g, gushort& b, gushort& a) const;
00150
00151
00152 void set_dither(bool dither = true);
00153
00154 bool get_dither() const;
00155
00156
00157 void set_use_alpha(bool use_alpha = true);
00158
00159 bool get_use_alpha() const;
00160
00161
00162 void set_title(const Glib::ustring& title);
00163
00164 Glib::ustring get_title() const;
00165
00166
00172 Glib::SignalProxy4< void,guint,guint,guint,guint > signal_color_set();
00173
00174
00175 #ifdef GLIBMM_PROPERTIES_ENABLED
00176
00182 Glib::PropertyProxy<bool> property_dither() ;
00183 #endif //#GLIBMM_PROPERTIES_ENABLED
00184
00185 #ifdef GLIBMM_PROPERTIES_ENABLED
00186
00192 Glib::PropertyProxy_ReadOnly<bool> property_dither() const;
00193 #endif //#GLIBMM_PROPERTIES_ENABLED
00194
00195 #ifdef GLIBMM_PROPERTIES_ENABLED
00196
00202 Glib::PropertyProxy<bool> property_use_alpha() ;
00203 #endif //#GLIBMM_PROPERTIES_ENABLED
00204
00205 #ifdef GLIBMM_PROPERTIES_ENABLED
00206
00212 Glib::PropertyProxy_ReadOnly<bool> property_use_alpha() const;
00213 #endif //#GLIBMM_PROPERTIES_ENABLED
00214
00215 #ifdef GLIBMM_PROPERTIES_ENABLED
00216
00222 Glib::PropertyProxy<Glib::ustring> property_title() ;
00223 #endif //#GLIBMM_PROPERTIES_ENABLED
00224
00225 #ifdef GLIBMM_PROPERTIES_ENABLED
00226
00232 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_title() const;
00233 #endif //#GLIBMM_PROPERTIES_ENABLED
00234
00235 #ifdef GLIBMM_PROPERTIES_ENABLED
00236
00242 Glib::PropertyProxy<guint> property_red() ;
00243 #endif //#GLIBMM_PROPERTIES_ENABLED
00244
00245 #ifdef GLIBMM_PROPERTIES_ENABLED
00246
00252 Glib::PropertyProxy_ReadOnly<guint> property_red() const;
00253 #endif //#GLIBMM_PROPERTIES_ENABLED
00254
00255 #ifdef GLIBMM_PROPERTIES_ENABLED
00256
00262 Glib::PropertyProxy<guint> property_green() ;
00263 #endif //#GLIBMM_PROPERTIES_ENABLED
00264
00265 #ifdef GLIBMM_PROPERTIES_ENABLED
00266
00272 Glib::PropertyProxy_ReadOnly<guint> property_green() const;
00273 #endif //#GLIBMM_PROPERTIES_ENABLED
00274
00275 #ifdef GLIBMM_PROPERTIES_ENABLED
00276
00282 Glib::PropertyProxy<guint> property_blue() ;
00283 #endif //#GLIBMM_PROPERTIES_ENABLED
00284
00285 #ifdef GLIBMM_PROPERTIES_ENABLED
00286
00292 Glib::PropertyProxy_ReadOnly<guint> property_blue() const;
00293 #endif //#GLIBMM_PROPERTIES_ENABLED
00294
00295 #ifdef GLIBMM_PROPERTIES_ENABLED
00296
00302 Glib::PropertyProxy<guint> property_alpha() ;
00303 #endif //#GLIBMM_PROPERTIES_ENABLED
00304
00305 #ifdef GLIBMM_PROPERTIES_ENABLED
00306
00312 Glib::PropertyProxy_ReadOnly<guint> property_alpha() const;
00313 #endif //#GLIBMM_PROPERTIES_ENABLED
00314
00315
00316 };
00317
00318 #endif //GNOMEMM_DISABLE_DEPRECATED
00319
00320 }
00321 }
00322
00323
00324 namespace Glib
00325 {
00334 Gnome::UI::ColorPicker* wrap(GnomeColorPicker* object, bool take_copy = false);
00335 }
00336
00337
00338 #endif
00339