Name
GimpColorButton -- Widget for selecting a color.
Description
This widget provides a simple button with a preview showing the
color.
On click a GtkColorSelectionDialog is opened. Additionally the button
supports Drag and Drop and has a right-click menu that allows to choose
the color from the current FG or BG color. If the user changes the
color, the "color_changed" signal is emitted.
Details
gimp_color_button_new ()
GtkWidget* gimp_color_button_new (const gchar *title,
gint width,
gint height,
const GimpRGB *color,
GimpColorAreaType type); |
Creates a new GimpColorButton widget.
This returns a button with a preview showing the color.
When the button is clicked a GtkColorSelectionDialog is opened.
If the user changes the color the new color is written into the
array that was used to pass the initial color and the "color_changed"
signal is emitted.
gimp_color_button_set_color ()
void gimp_color_button_set_color (GimpColorButton *gcb,
const GimpRGB *color); |
gimp_color_button_get_color ()
gimp_color_button_has_alpha ()
gimp_color_button_set_type ()
void gimp_color_button_set_type (GimpColorButton *gcb,
GimpColorAreaType type); |
Signals
The "color-changed" signal
See Also
libgimpcolor-gimpcolorspace