GimpUi.ColorSelection

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned GimpUi.ColorSelection GimpUi.ColorSelection Gtk.Box Gtk.Box Gtk.Box->GimpUi.ColorSelection Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Box Gtk.Orientable->Gtk.Box Gtk.Widget->Gtk.Container

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

new ()

color_changed ()

get_color ()

get_notebook ()

get_old_color ()

get_right_vbox ()

get_show_alpha ()

reset ()

set_color (color)

set_config (config)

set_format (format)

set_old_color (color)

set_show_alpha (show_alpha)

set_simulation (profile, intent, bpc)

Virtual Methods

Inherited:

Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)

Name

Type

Flags

Short Description

config

Gimp.ColorConfig

w

The color config used by this color selection

Child Properties

Inherited:

Gtk.Box (5)

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Short Description

color-changed

Fields

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Class Details

class GimpUi.ColorSelection(*args, **kwargs)
Bases:

Gtk.Box

Abstract:

No

Structure:

GimpUi.ColorSelectionClass

Widget for doing a color selection.

classmethod new()
Returns:

The new GimpUi.ColorSelection widget.

Return type:

Gtk.Widget

Creates a new GimpUi.ColorSelection widget.

color_changed()

Emits the “color-changed” signal.

get_color()
Returns:

the currently selected color.

Return type:

Gegl.Color

This function returns the GimpUi.ColorSelection's current color.

get_notebook()
Returns:

The selection’s GimpUi.ColorNotebook.

Return type:

Gtk.Widget

New in version 3.0.

get_old_color()
Returns:

the old color.

Return type:

Gegl.Color

get_right_vbox()
Returns:

The selection’s right Gtk.Box which contains the color scales.

Return type:

Gtk.Box

New in version 3.0.

get_show_alpha()
Returns:

True if the GimpUi.ColorSelection has alpha controls.

Return type:

bool

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) – A Gimp.ColorConfig object.

Sets the color management configuration to use with this color selection.

New in version 2.4.

set_format(format)
Parameters:

format (Babl.Object) – A Babl.Object format, 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:

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:

RUN_FIRST

Parameters:

color_selection (GimpUi.ColorSelection) – The object which received the signal

Property Details

GimpUi.ColorSelection.props.config
Name:

config

Type:

Gimp.ColorConfig

Default Value:

None

Flags:

WRITABLE

The color config used by this color selection