|  |  | 

The GtkColorButton is a button which displays the currently selected color an allows to open a color selection dialog to change the color. It is suitable widget for selecting a color in a preference dialog.
| Public Member Functions | |
| virtual | ~ColorButton () | 
| GtkColorButton* | gobj () | 
| Provides access to the underlying C GtkObject. | |
| const GtkColorButton* | gobj () const | 
| Provides access to the underlying C GtkObject. | |
| ColorButton () | |
| Creates a new color button. | |
| ColorButton (const Gdk::Color& color) | |
| Creates a new color button with a predefined color. | |
| void | set_color (const Gdk::Color& color) | 
| Sets the current color to be color . | |
| void | set_alpha (guint16 alpha) | 
| Sets the current opacity to be alpha . | |
| Gdk::Color | get_color () const | 
| Returns a copy of the the current color. | |
| guint16 | get_alpha () const | 
| Returns the current alpha value. | |
| void | set_use_alpha (bool use_alpha=true) | 
| Sets whether or not the color button should use the alpha channel. | |
| bool | get_use_alpha () const | 
| Does the color selection dialog use the alpha channel? | |
| void | set_title (const Glib::ustring& title) | 
| Sets the title for the color selection dialog. | |
| Glib::ustring | get_title () const | 
| Gets the title of the color selection dialog. | |
| 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< bool > | property_use_alpha () const | 
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
| Glib::PropertyProxy<Glib::ustring> | property_title () | 
| 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. | |
| Glib::PropertyProxy<Gdk::Color> | property_color () | 
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
| Glib::PropertyProxy_ReadOnly< Gdk::Color > | property_color () const | 
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
| Glib::PropertyProxy<guint16> | property_alpha () | 
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
| Glib::PropertyProxy_ReadOnly< guint16 > | property_alpha () const | 
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
| Glib::SignalProxy0<void> | signal_color_set () | 
| Protected Member Functions | |
| virtual void | on_color_set () | 
| Related Functions | |
| (Note that these are not member functions.) | |
| Gtk::ColorButton* | wrap (GtkColorButton* object, bool take_copy=false) | 
| 
 | 
| 
 | 
| 
 | 
| Creates a new color button. This creates a widget in the form of a small button containing a swatch representing the current selected color. When the button is clicked, a color-selection dialog will open, allowing the user to select a color. The swatch will be updated to reflect the new color when the user finishes. Since: 2.4 | 
| 
 | 
| Creates a new color button with a predefined color. Same as Gtk::ColorButton::ColorButton(). Additionally takes a Gdk::Color and initializes the button with this color. Equivalent to calling set_color(color) after the default constructor. 
 
 | 
| 
 | 
| Returns the current alpha value. 
 
 | 
| 
 | 
| Returns a copy of the the current color. Changes to the return value will have no effect on the Gtk::ColorButton. 
 
 | 
| 
 | 
| Gets the title of the color selection dialog. 
 
 | 
| 
 | 
| Does the color selection dialog use the alpha channel? 
 
 | 
| 
 | 
| Provides access to the underlying C GtkObject. 
 Reimplemented from Gtk::Button. 
 | 
| 
 | 
| Provides access to the underlying C GtkObject. 
 Reimplemented from Gtk::Button. 
 | 
| 
 | 
| 
 | 
| 
 | 
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. 
 
 | 
| 
 | 
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. 
 
 | 
| 
 | 
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. 
 
 | 
| 
 | 
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. 
 
 | 
| 
 | 
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. 
 
 | 
| 
 | 
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. 
 
 | 
| 
 | 
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. 
 
 | 
| 
 | 
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. 
 
 | 
| 
 | 
| Sets the current opacity to be alpha . Since: 2.4 
 | 
| 
 | 
| Sets the current color to be color . Since: 2.4 
 | 
| 
 | 
| Sets the title for the color selection dialog. Since: 2.4 
 | 
| 
 | 
| Sets whether or not the color button should use the alpha channel. Since: 2.4 
 | 
| 
 | 
| 
 | 
| 
 | ||||||||||||
| 
 
 
 |