Top |
GtkWidget * | gimp_color_selector_new () |
void | gimp_color_selector_set_toggles_visible () |
gboolean | gimp_color_selector_get_toggles_visible () |
void | gimp_color_selector_set_toggles_sensitive () |
gboolean | gimp_color_selector_get_toggles_sensitive () |
void | gimp_color_selector_set_show_alpha () |
gboolean | gimp_color_selector_get_show_alpha () |
void | gimp_color_selector_set_color () |
void | gimp_color_selector_get_color () |
void | gimp_color_selector_set_channel () |
GimpColorSelectorChannel | gimp_color_selector_get_channel () |
void | gimp_color_selector_set_model_visible () |
gboolean | gimp_color_selector_get_model_visible () |
void | gimp_color_selector_color_changed () |
void | gimp_color_selector_channel_changed () |
void | gimp_color_selector_model_visible_changed () |
void | gimp_color_selector_set_config () |
void | channel-changed | Run First |
void | color-changed | Run First |
void | model-visible-changed | Run First |
GimpColorSelector | |
#define | GIMP_COLOR_SELECTOR_SIZE |
#define | GIMP_COLOR_SELECTOR_BAR_SIZE |
enum | GimpColorSelectorChannel |
enum | GimpColorSelectorModel |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── GimpColorSelector ├── GimpColorNotebook ├── GimpColorScales ╰── GimpColorSelect
GimpColorSelector implements AtkImplementorIface, GtkBuildable and GtkOrientable.
GtkWidget * gimp_color_selector_new (GType selector_type
,const GimpRGB *rgb
,const GimpHSV *hsv
,GimpColorSelectorChannel channel
);
Creates a new GimpColorSelector widget of type selector_type
.
Note that this is mostly internal API to be used by other widgets.
Please use gimp_color_selection_new()
for the "GIMP-typical" color
selection widget. Also see gimp_color_button_new()
.
Retunn value: the new GimpColorSelector widget.
void gimp_color_selector_set_toggles_visible (GimpColorSelector *selector
,gboolean visible
);
Sets the visible
property of the selector
's toggles.
This function has no effect if this selector
instance has no
toggles to switch channels.
gboolean
gimp_color_selector_get_toggles_visible
(GimpColorSelector *selector
);
Returns the visible
property of the selector
's toggles.
Since: 2.10
void gimp_color_selector_set_toggles_sensitive (GimpColorSelector *selector
,gboolean sensitive
);
Sets the sensitive
property of the selector
's toggles.
This function has no effect if this selector
instance has no
toggles to switch channels.
gboolean
gimp_color_selector_get_toggles_sensitive
(GimpColorSelector *selector
);
Returns the sensitive
property of the selector
's toggles.
Since: 2.10
void gimp_color_selector_set_show_alpha (GimpColorSelector *selector
,gboolean show_alpha
);
Sets the show_alpha
property of the selector
widget.
gboolean
gimp_color_selector_get_show_alpha (GimpColorSelector *selector
);
Returns the selector
's show_alpha
property.
Since: 2.10
void gimp_color_selector_set_color (GimpColorSelector *selector
,const GimpRGB *rgb
,const GimpHSV *hsv
);
Sets the color shown in the selector
widget.
void gimp_color_selector_get_color (GimpColorSelector *selector
,GimpRGB *rgb
,GimpHSV *hsv
);
Retrieves the color shown in the selector
widget.
selector |
A GimpColorSelector widget. |
|
rgb |
Return location for the color. |
|
hsv |
Return location for the same same color in HSV. |
Since: 2.10
void gimp_color_selector_set_channel (GimpColorSelector *selector
,GimpColorSelectorChannel channel
);
Sets the channel
property of the selector
widget.
Changes between displayed channels if this selector
instance has
the ability to show different channels.
This will also update the color model if needed.
GimpColorSelectorChannel
gimp_color_selector_get_channel (GimpColorSelector *selector
);
Returns the selector
's current channel.
Since: 2.10
void gimp_color_selector_set_model_visible (GimpColorSelector *selector
,GimpColorSelectorModel model
,gboolean visible
);
Sets the model
visible/invisible on the selector
widget.
Toggles visibility of displayed models if this selector
instance
has the ability to show different color models.
selector |
A GimpColorSelector widget. |
|
model |
The affected GimpColorSelectorModel. |
|
visible |
The new visible setting. |
Since: 2.10
gboolean gimp_color_selector_get_model_visible (GimpColorSelector *selector
,GimpColorSelectorModel model
);
Since: 2.10
void
gimp_color_selector_color_changed (GimpColorSelector *selector
);
Emits the "color-changed" signal.
void
gimp_color_selector_channel_changed (GimpColorSelector *selector
);
Emits the "channel-changed" signal.
void gimp_color_selector_model_visible_changed (GimpColorSelector *selector
,GimpColorSelectorModel model
);
Emits the "model-visible-changed" signal.
Since: 2.10
void gimp_color_selector_set_config (GimpColorSelector *selector
,GimpColorConfig *config
);
Sets the color management configuration to use with this color selector.
Since: 2.4
#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.
An enum to specify the types of color channels edited in GimpColorSelector widgets.
An enum to specify the types of color spaces edited in GimpColorSelector widgets.
Since: 2.10
“channel-changed”
signalvoid user_function (GimpColorSelector *gimpcolorselector, GimpColorSelectorChannel arg1, gpointer user_data)
Flags: Run First
“color-changed”
signalvoid user_function (GimpColorSelector *gimpcolorselector, gpointer arg1, gpointer arg2, gpointer user_data)
Flags: Run First
“model-visible-changed”
signalvoid user_function (GimpColorSelector *gimpcolorselector, GimpColorSelectorModel arg1, gboolean arg2, gpointer user_data)
Flags: Run First