#include <gnome.h> struct GnomeColorPicker; |
|
"color-set" void user_function (GnomeColorPicker *colorpicker, |
This widget provides color selection facilities to your application. It is a button that renders its current color and when pressed presents the user with a color selector from which he can choose a color.
You can select the color to be displayed in a number of ways: floating point values for the red, green and blue channels, or integers in the range 0 to 65,535 or intergers in the range 0 to 255 depending on your needs.
|
Creates a new GNOME color picker widget.
void gnome_color_picker_set_d (GnomeColorPicker *cp, |
Set color currently shown in color picker widget.
void gnome_color_picker_get_d (GnomeColorPicker *cp, |
Retrieve color currently set in color picker widget.
void gnome_color_picker_set_i8 (GnomeColorPicker *cp, |
Set color currently set in color picker widget.
void gnome_color_picker_get_i8 (GnomeColorPicker *cp, |
Retrieve color currently set in color picker widget.
void gnome_color_picker_set_i16 (GnomeColorPicker *cp, |
Set color currently set in color picker widget.
void gnome_color_picker_get_i16 (GnomeColorPicker *cp, |
Retrieve color currently set in color picker widget.
void gnome_color_picker_set_dither (GnomeColorPicker *cp, |
Sets whether the picker should dither the color sample or just paint a solid rectangle.
void gnome_color_picker_set_use_alpha
(GnomeColorPicker *cp,
|
Sets whether the picker should use the alpha channel or not.
void gnome_color_picker_set_title (GnomeColorPicker *cp, const |
Sets the title for the color selection dialog.
void user_function (GnomeColorPicker *colorpicker, |
This signal is emitted when the user changes the color on the color selector. The values passed to this signal are the red, green, blue and alpha channels selected in integer form in the range 0 to 65535.