| Top |
| GtkWidget * | gtk_color_button_new () |
| GtkWidget * | gtk_color_button_new_with_rgba () |
| void | gtk_color_button_set_title () |
| const gchar * | gtk_color_button_get_title () |
The GtkColorButton is a button which displays the currently selected color and allows to open a color selection dialog to change the color. It is suitable widget for selecting a color in a preference dialog.
GtkColorButton has a single CSS node with name button. To differentiate it from a plain GtkButton, it gets the .color style class.
GtkWidget *
gtk_color_button_new (void);
Creates a new color button.
This returns 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
GtkWidget *
gtk_color_button_new_with_rgba (const GdkRGBA *rgba);
Creates a new color button.
Since: 3.0
void gtk_color_button_set_title (GtkColorButton *button,const gchar *title);
Sets the title for the color selection dialog.
Since: 2.4
const gchar *
gtk_color_button_get_title (GtkColorButton *button);
Gets the title of the color selection dialog.
Since: 2.4