GimpUi.ColorNotebook

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.ColorNotebook GimpUi.ColorNotebook GimpUi.ColorSelector GimpUi.ColorSelector GimpUi.ColorSelector->GimpUi.ColorNotebook Gtk.Box Gtk.Box Gtk.Box->GimpUi.ColorSelector Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Box Gtk.Orientable->Gtk.Box Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

GimpUi.ColorSelector (17), 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)

enable_simulation (enabled)

get_current_selector ()

get_notebook ()

get_selectors ()

set_format (format)

set_has_page (page_type, has_page)

set_simulation (profile, intent, bpc)

Virtual Methods

Inherited:

GimpUi.ColorSelector (13), 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)

Child Properties

Inherited:

Gtk.Box (5)

Style Properties

Inherited:

Gtk.Widget (17)

Name

Type

Default

Flags

Short Description

tab-icon-size

Gtk.IconSize

Gtk.IconSize.BUTTON

r

Size for icons displayed in the tab

Signals

Inherited:

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

Fields

Inherited:

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

Class Details

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

GimpUi.ColorSelector

Abstract:

No

Structure:

GimpUi.ColorNotebookClass

The GimpUi.ColorNotebook widget is an implementation of a GimpUi.ColorSelector. It serves as a container for GimpUi.ColorSelectors.

enable_simulation(enabled)
Parameters:

enabled (bool) –

get_current_selector()
Returns:

The active page’s GimpUi.ColorSelector.

Return type:

GimpUi.ColorSelector

New in version 3.0.

get_notebook()
Returns:

The Gtk.Notebook inside.

Return type:

Gtk.Notebook

New in version 3.0.

get_selectors()
Returns:

The notebook’s list of GimpUi.ColorSelector's.

Return type:

[GimpUi.ColorSelector]

New in version 3.0.

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_has_page(page_type, has_page)
Parameters:
  • page_type (GObject.GType) – The GObject.GType of the notebook page to add or remove.

  • has_page (bool) – Whether the page should be added or removed.

Returns:

The new page widget, if has_page was True, or None if has_page was False.

Return type:

Gtk.Widget

This function adds and removed pages to / from a GimpUi.ColorNotebook. The page_type passed must be a GimpUi.ColorSelector subtype.

set_simulation(profile, intent, bpc)
Parameters:

Updates all selectors with the current simulation settings.

New in version 3.0.