00001
00002
00003 #ifndef _HILDON_LIBSMM_COLOR_BUTTON_H
00004 #define _HILDON_LIBSMM_COLOR_BUTTON_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 #include <gtkmm/button.h>
00031
00032
00033 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00034 typedef struct _HildonColorButton HildonColorButton;
00035 typedef struct _HildonColorButtonClass HildonColorButtonClass;
00036 #endif
00037
00038
00039 namespace Hildon
00040 { class ColorButton_Class; }
00041 namespace Hildon
00042 {
00043
00049 class ColorButton : public Gtk::Button
00050 {
00051 public:
00052 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00053 typedef ColorButton CppObjectType;
00054 typedef ColorButton_Class CppClassType;
00055 typedef HildonColorButton BaseObjectType;
00056 typedef HildonColorButtonClass BaseClassType;
00057 #endif
00058
00059 virtual ~ColorButton();
00060
00061 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00062
00063 private:
00064 friend class ColorButton_Class;
00065 static CppClassType colorbutton_class_;
00066
00067
00068 ColorButton(const ColorButton&);
00069 ColorButton& operator=(const ColorButton&);
00070
00071 protected:
00072 explicit ColorButton(const Glib::ConstructParams& construct_params);
00073 explicit ColorButton(HildonColorButton* castitem);
00074
00075 #endif
00076
00077 public:
00078 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00079 static GType get_type() G_GNUC_CONST;
00080 static GType get_base_type() G_GNUC_CONST;
00081 #endif
00082
00084 HildonColorButton* gobj() { return reinterpret_cast<HildonColorButton*>(gobject_); }
00085
00087 const HildonColorButton* gobj() const { return reinterpret_cast<HildonColorButton*>(gobject_); }
00088
00089
00090 public:
00091
00092 #ifdef GLIBMM_VFUNCS_ENABLED
00093 #endif //GLIBMM_VFUNCS_ENABLED
00094
00095 protected:
00096
00097 #ifdef GLIBMM_VFUNCS_ENABLED
00098 #endif //GLIBMM_VFUNCS_ENABLED
00099
00100
00101 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00102 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00103
00104
00105 private:
00106
00107 public:
00108 ColorButton();
00109
00110
00111 explicit ColorButton(const Gdk::Color& color);
00112
00113
00117 Gdk::Color get_color() const;
00118
00119
00123 void set_color(const Gdk::Color& color);
00124
00125 #ifdef GLIBMM_PROPERTIES_ENABLED
00126
00132 Glib::PropertyProxy<Gdk::Color> property_color() ;
00133 #endif //#GLIBMM_PROPERTIES_ENABLED
00134
00135 #ifdef GLIBMM_PROPERTIES_ENABLED
00136
00142 Glib::PropertyProxy_ReadOnly<Gdk::Color> property_color() const;
00143 #endif //#GLIBMM_PROPERTIES_ENABLED
00144
00145
00146 };
00147
00148 }
00149
00150
00151 namespace Glib
00152 {
00158 Hildon::ColorButton* wrap(HildonColorButton* object, bool take_copy = false);
00159 }
00160
00161
00162 #endif
00163