GimpUi.ColorSelector¶
- Subclasses:
 
Methods¶
- Inherited:
 Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)
- Structs:
 Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Properties¶
- Inherited:
 Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)
Child Properties¶
- Inherited:
 
Style Properties¶
- Inherited:
 
Signals¶
- Inherited:
 
Name  | 
Short Description  | 
|---|---|
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent_instance  | 
r  | 
Class Details¶
- class GimpUi.ColorSelector(*args, **kwargs)¶
 - Bases:
 - Abstract:
 Yes
- Structure:
 
Functions and definitions for creating pluggable GIMP color selector modules.
- get_channel()¶
 - Returns:
 The
GimpUi.ColorSelectorChannelcurrently shown by the self.- Return type:
 
Returns the self's current channel.
New in version 2.10.
- get_color()¶
 - Returns:
 a copy of the selected color.
- Return type:
 
Retrieves the color shown in the self widget.
New in version 2.10.
- get_model_visible(model)¶
 - Parameters:
 model (
GimpUi.ColorSelectorModel) – TheGimpUi.ColorSelectorModel.- Returns:
 whether model is visible in self.
- Return type:
 
New in version 2.10.
- get_show_alpha()¶
 - Returns:
 Trueif theGimpUi.ColorSelectorhas alpha controls.- Return type:
 
Returns the self's show_alpha property.
New in version 2.10.
- get_simulation(profile, intent, bpc)¶
 - Parameters:
 profile (
Gimp.ColorProfile) –intent (
Gimp.ColorRenderingIntent) –bpc (
bool) –
- Return type:
 
- get_toggles_sensitive()¶
 - Returns:
 Trueif theGimpUi.ColorSelector's toggles are sensitive.- Return type:
 
Returns the sensitive property of the self's toggles.
New in version 2.10.
- get_toggles_visible()¶
 - Returns:
 Trueif theGimpUi.ColorSelector's toggles are visible.- Return type:
 
Returns the visible property of the self's toggles.
New in version 2.10.
- set_channel(channel)¶
 - Parameters:
 channel (
GimpUi.ColorSelectorChannel) – The new channel setting.
Sets the channel property of the self widget.
Changes between displayed channels if this self instance has the ability to show different channels. This will also update the color model if needed.
- set_color(color)¶
 - Parameters:
 color (
Gegl.Color) – The new color.
Sets the color shown in the self widget.
- set_config(config)¶
 - Parameters:
 config (
Gimp.ColorConfig) – aGimp.ColorConfigobject.
Sets the color management configuration to use with this color selector.
New in version 2.4.
- set_format(format)¶
 - Parameters:
 format (
Babl.Object) – aBabl.Objectformat, with space.
Sets the babl format representing the color model and the space this self is supposed to display values for. Depending on the type of color selector, it may trigger various UX changes, or none at all.
New in version 3.0.
- set_model_visible(model, visible)¶
 - Parameters:
 model (
GimpUi.ColorSelectorModel) – The affectedGimpUi.ColorSelectorModel.visible (
bool) – The new visible setting.
Sets the model visible/invisible on the self widget.
Toggles visibility of displayed models if this self instance has the ability to show different color models.
New in version 2.10.
- set_show_alpha(show_alpha)¶
 - Parameters:
 show_alpha (
bool) – The new show_alpha setting.
Sets the show_alpha property of the self widget.
- set_simulation(profile, intent, bpc)¶
 - Parameters:
 profile (
Gimp.ColorProfile) – aGimp.ColorProfileobject.intent (
Gimp.ColorRenderingIntent) – aGimp.ColorRenderingIntentenum.
Sets the simulation options to use with this color selector.
New in version 3.0.
- set_toggles_sensitive(sensitive)¶
 - Parameters:
 sensitive (
bool) – The new sensitive setting.
Sets the sensitive property of the self's toggles.
This function has no effect if this self instance has no toggles to switch channels.
- set_toggles_visible(visible)¶
 - Parameters:
 visible (
bool) – The new visible setting.
Sets the visible property of the self's toggles.
This function has no effect if this self instance has no toggles to switch channels.
- do_channel_changed(channel) virtual¶
 - Parameters:
 channel (
GimpUi.ColorSelectorChannel) –
- do_color_changed(color) virtual¶
 - Parameters:
 color (
Gegl.Color) –
- do_model_visible_changed(model, visible) virtual¶
 - Parameters:
 model (
GimpUi.ColorSelectorModel) –visible (
bool) –
- do_set_channel(channel) virtual¶
 - Parameters:
 channel (
GimpUi.ColorSelectorChannel) – The new channel setting.
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.
- do_set_color(color) virtual¶
 - Parameters:
 color (
Gegl.Color) – The new color.
Sets the color shown in the selector widget.
- do_set_config(config) virtual¶
 - Parameters:
 config (
Gimp.ColorConfig) – aGimp.ColorConfigobject.
Sets the color management configuration to use with this color selector.
New in version 2.4.
- do_set_format(format) virtual¶
 - Parameters:
 format (
Babl.Object) – aBabl.Objectformat, with space.
Sets the babl format representing the color model and the space this selector is supposed to display values for. Depending on the type of color selector, it may trigger various UX changes, or none at all.
New in version 3.0.
- do_set_model_visible(model, visible) virtual¶
 - Parameters:
 model (
GimpUi.ColorSelectorModel) – The affectedGimpUi.ColorSelectorModel.visible (
bool) – The new visible setting.
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.
New in version 2.10.
- do_set_show_alpha(show_alpha) virtual¶
 - Parameters:
 show_alpha (
bool) – The new show_alpha setting.
Sets the show_alpha property of the selector widget.
- do_set_simulation(profile, intent, bpc) virtual¶
 - Parameters:
 profile (
Gimp.ColorProfile) – aGimp.ColorProfileobject.intent (
Gimp.ColorRenderingIntent) – aGimp.ColorRenderingIntentenum.
Sets the simulation options to use with this color selector.
New in version 3.0.
- do_set_toggles_sensitive(sensitive) virtual¶
 - Parameters:
 sensitive (
bool) – The new sensitive setting.
Sets the sensitive property of the selector's toggles.
This function has no effect if this selector instance has no toggles to switch channels.
Signal Details¶
- GimpUi.ColorSelector.signals.channel_changed(color_selector, object)¶
 - Signal Name:
 channel-changed- Flags:
 - Parameters:
 color_selector (
GimpUi.ColorSelector) – The object which received the signalobject (
GimpUi.ColorSelectorChannel) –
- GimpUi.ColorSelector.signals.color_changed(color_selector, object)¶
 - Signal Name:
 color-changed- Flags:
 - Parameters:
 color_selector (
GimpUi.ColorSelector) – The object which received the signalobject (
Gegl.Color) –
- GimpUi.ColorSelector.signals.model_visible_changed(color_selector, object, p0)¶
 - Signal Name:
 model-visible-changed- Flags:
 - Parameters:
 color_selector (
GimpUi.ColorSelector) – The object which received the signalobject (
GimpUi.ColorSelectorModel) –p0 (
bool) –
- GimpUi.ColorSelector.signals.simulation(color_selector, object)¶
 - Signal Name:
 simulation- Flags:
 - Parameters:
 color_selector (
GimpUi.ColorSelector) – The object which received the signalobject (
bool) –