![]() |
![]() |
![]() |
GIMP Widgets Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
GimpColorSelector; #define GIMP_COLOR_SELECTOR_SIZE #define GIMP_COLOR_SELECTOR_BAR_SIZE enum GimpColorSelectorChannel; GtkWidget * gimp_color_selector_new (GType selector_type, const GimpRGB *rgb, const GimpHSV *hsv, GimpColorSelectorChannel channel); void gimp_color_selector_set_toggles_visible (GimpColorSelector *selector, gboolean visible); void gimp_color_selector_set_toggles_sensitive (GimpColorSelector *selector, gboolean sensitive); void gimp_color_selector_set_show_alpha (GimpColorSelector *selector, gboolean show_alpha); void gimp_color_selector_set_color (GimpColorSelector *selector, const GimpRGB *rgb, const GimpHSV *hsv); void gimp_color_selector_set_channel (GimpColorSelector *selector, GimpColorSelectorChannel channel); void gimp_color_selector_color_changed (GimpColorSelector *selector); void gimp_color_selector_channel_changed (GimpColorSelector *selector); void gimp_color_selector_set_config (GimpColorSelector *selector, GimpColorConfig *config);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBox +----GtkVBox +----GimpColorSelector +----GimpColorNotebook +----GimpColorScales +----GimpColorSelect
GimpColorSelector implements AtkImplementorIface, GtkBuildable and GtkOrientable.
#define GIMP_COLOR_SELECTOR_SIZE 150
The suggested size for a color area in a GimpColorSelector implementation.
#define GIMP_COLOR_SELECTOR_BAR_SIZE 15
The suggested width for a color bar in a GimpColorSelector implementation.
typedef enum { GIMP_COLOR_SELECTOR_HUE, /*< desc="_H", help="Hue" >*/ GIMP_COLOR_SELECTOR_SATURATION, /*< desc="_S", help="Saturation" >*/ GIMP_COLOR_SELECTOR_VALUE, /*< desc="_V", help="Value" >*/ GIMP_COLOR_SELECTOR_RED, /*< desc="_R", help="Red" >*/ GIMP_COLOR_SELECTOR_GREEN, /*< desc="_G", help="Green" >*/ GIMP_COLOR_SELECTOR_BLUE, /*< desc="_B", help="Blue" >*/ GIMP_COLOR_SELECTOR_ALPHA /*< desc="_A", help="Alpha" >*/ } GimpColorSelectorChannel;
the hue channel | |
the saturation channel | |
the value channel | |
the red channel | |
the green channel | |
the blue channel | |
the alpha channel |
GtkWidget * gimp_color_selector_new (GType selector_type, const GimpRGB *rgb, const GimpHSV *hsv, GimpColorSelectorChannel channel);
|
|
|
|
|
|
|
|
Returns : |
void gimp_color_selector_set_toggles_visible (GimpColorSelector *selector, gboolean visible);
|
|
|
void gimp_color_selector_set_toggles_sensitive (GimpColorSelector *selector, gboolean sensitive);
|
|
|
void gimp_color_selector_set_show_alpha (GimpColorSelector *selector, gboolean show_alpha);
|
|
|
void gimp_color_selector_set_color (GimpColorSelector *selector, const GimpRGB *rgb, const GimpHSV *hsv);
|
|
|
|
|
void gimp_color_selector_set_channel (GimpColorSelector *selector, GimpColorSelectorChannel channel);
|
|
|
void gimp_color_selector_color_changed (GimpColorSelector *selector);
|
void gimp_color_selector_channel_changed (GimpColorSelector *selector);
|
void gimp_color_selector_set_config (GimpColorSelector *selector, GimpColorConfig *config);
Sets the color management configuration to use with this color selector.
|
|
|
Since GIMP 2.4
"channel-changed"
signalvoid user_function (GimpColorSelector *gimpcolorselector, gint arg1, gpointer user_data) : Run First
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
"color-changed"
signalvoid user_function (GimpColorSelector *gimpcolorselector, gpointer arg1, gpointer arg2, gpointer user_data) : Run First
|
the object which received the signal. |
|
|
|
|
|
user data set when the signal handler was connected. |