GimpUi.ColorSelection¶
- Subclasses:
 None
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)
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
Properties¶
- Inherited:
 Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
w  | 
The color config used by this color selection  | 
Child Properties¶
- Inherited:
 
Style Properties¶
- Inherited:
 
Signals¶
- Inherited:
 
Name  | 
Short Description  | 
|---|---|
Fields¶
- Inherited:
 
Class Details¶
- class GimpUi.ColorSelection(*args, **kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
Widget for doing a color selection.
- classmethod new()¶
 - Returns:
 The new
GimpUi.ColorSelectionwidget.- Return type:
 
Creates a new
GimpUi.ColorSelectionwidget.
- color_changed()¶
 Emits the “color-changed” signal.
- get_color()¶
 - Returns:
 the currently selected color.
- Return type:
 
This function returns the
GimpUi.ColorSelection's current color.
- get_notebook()¶
 - Returns:
 The selection’s
GimpUi.ColorNotebook.- Return type:
 
New in version 3.0.
- get_old_color()¶
 - Returns:
 the old color.
- Return type:
 
- get_right_vbox()¶
 - 
New in version 3.0.
 
- get_show_alpha()¶
 - Returns:
 Trueif theGimpUi.ColorSelectionhas alpha controls.- Return type:
 
Returns the self's show_alpha property.
- reset()¶
 Sets the
GimpUi.ColorSelection's current color to its old color.
- set_color(color)¶
 - Parameters:
 color (
Gegl.Color) – The color to set as current color.
Sets the
GimpUi.ColorSelection's current color to the new color.
- set_config(config)¶
 - Parameters:
 config (
Gimp.ColorConfig) – AGimp.ColorConfigobject.
Sets the color management configuration to use with this color selection.
New in version 2.4.
- set_format(format)¶
 - Parameters:
 format (
Babl.Object) – ABabl.Objectformat, with space.
Updates all selectors with the current format.
New in version 3.0.
- set_old_color(color)¶
 - Parameters:
 color (
Gegl.Color) – The color to set as old color.
Sets the
GimpUi.ColorSelection's old color.
- 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 selection.
New in version 3.0.
Signal Details¶
- GimpUi.ColorSelection.signals.color_changed(color_selection)¶
 - Signal Name:
 color-changed- Flags:
 - Parameters:
 color_selection (
GimpUi.ColorSelection) – The object which received the signal
Property Details¶
- GimpUi.ColorSelection.props.config¶
 - Name:
 config- Type:
 - Default Value:
 - Flags:
 
The color config used by this color selection