GimpUi.ColorScale

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.ColorScale GimpUi.ColorScale Gtk.Buildable->Gtk.Widget Gtk.Range Gtk.Range Gtk.Orientable->Gtk.Range Gtk.Scale Gtk.Scale Gtk.Range->Gtk.Scale Gtk.Scale->GimpUi.ColorScale Gtk.Widget->Gtk.Range

Subclasses:

None

Methods

Inherited:

Gtk.Scale (14), Gtk.Range (28), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)

Structs:

Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new (orientation, channel)

set_channel (channel)

set_color (color)

set_color_config (config)

set_format (format)

Virtual Methods

Inherited:

Gtk.Scale (3), Gtk.Range (6), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

Gtk.Scale (4), Gtk.Range (8), Gtk.Widget (39), Gtk.Orientable (1)

Name

Type

Flags

Short Description

channel

GimpUi.ColorSelectorChannel

r/w/c

The channel which is edited by the color scale

Style Properties

Inherited:

Gtk.Scale (2), Gtk.Range (8), Gtk.Widget (17)

Signals

Inherited:

Gtk.Scale (1), Gtk.Range (4), Gtk.Widget (69), GObject.Object (1)

Fields

Inherited:

Gtk.Scale (1), Gtk.Range (4), Gtk.Widget (69), GObject.Object (1)

Class Details

class GimpUi.ColorScale(**kwargs)
Bases:

Gtk.Scale

Abstract:

No

Structure:

GimpUi.ColorScaleClass

Fancy colored sliders.

classmethod new(orientation, channel)
Parameters:
Returns:

a new GimpUi.ColorScale widget

Return type:

Gtk.Widget

Creates a new GimpUi.ColorScale widget.

set_channel(channel)
Parameters:

channel (GimpUi.ColorSelectorChannel) – the new color channel

Changes the color channel displayed by the self.

set_color(color)
Parameters:

color (Gegl.Color) – the new color.

Changes the color value of the self.

set_color_config(config)
Parameters:

config (Gimp.ColorConfig) – a Gimp.ColorConfig object.

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

New in version 2.10.

set_format(format)
Parameters:

format (Babl.Object) – the Babl.Object format represented by self.

Changes the color format displayed by the self.

Property Details

GimpUi.ColorScale.props.channel
Name:

channel

Type:

GimpUi.ColorSelectorChannel

Default Value:

GimpUi.ColorSelectorChannel.VALUE

Flags:

READABLE, WRITABLE, CONSTRUCT

The channel which is edited by the color scale.

New in version 2.8.