GimpUi.ColorHexEntry

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.CellEditable Gtk.CellEditable GObject.GInterface->Gtk.CellEditable Gtk.Editable Gtk.Editable GObject.GInterface->Gtk.Editable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned GimpUi.ColorHexEntry GimpUi.ColorHexEntry Gtk.Buildable->Gtk.Widget Gtk.Entry Gtk.Entry Gtk.CellEditable->Gtk.Entry Gtk.Editable->Gtk.Entry Gtk.Entry->GimpUi.ColorHexEntry Gtk.Widget->Gtk.Entry

Subclasses:

None

Methods

Inherited:

Gtk.Entry (76), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.CellEditable (3), Gtk.Editable (13)

Structs:

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

class

new ()

get_color ()

set_color (color)

Virtual Methods

Inherited:

Gtk.Entry (14), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10), Gtk.CellEditable (3), Gtk.Editable (10)

Properties

Inherited:

Gtk.Entry (51), Gtk.Widget (39), Gtk.CellEditable (1)

Style Properties

Inherited:

Gtk.Entry (4), Gtk.Widget (17)

Signals

Inherited:

Gtk.Entry (15), Gtk.Widget (69), GObject.Object (1), Gtk.CellEditable (2), Gtk.Editable (3)

Name

Short Description

color-changed

Fields

Inherited:

Gtk.Entry (15), Gtk.Widget (69), GObject.Object (1), Gtk.CellEditable (2), Gtk.Editable (3)

Class Details

class GimpUi.ColorHexEntry(**kwargs)
Bases:

Gtk.Entry

Abstract:

No

Structure:

GimpUi.ColorHexEntryClass

Widget for entering a color’s hex triplet. The syntax follows CSS and SVG specifications, which means that only sRGB colors are supported.

classmethod new()
Returns:

a new GimpUi.ColorHexEntry widget

Return type:

Gtk.Widget

New in version 2.2.

get_color()
Returns:

the color stored in self.

Return type:

Gegl.Color

Retrieves the color value displayed by a GimpUi.ColorHexEntry.

New in version 2.2.

set_color(color)
Parameters:

color (Gegl.Color) – the color to set.

Sets the color displayed by a GimpUi.ColorHexEntry. If the new color is different to the previously set color, the “color-changed” signal is emitted.

New in version 2.2.

Signal Details

GimpUi.ColorHexEntry.signals.color_changed(color_hex_entry)
Signal Name:

color-changed

Flags:

RUN_FIRST

Parameters:

color_hex_entry (GimpUi.ColorHexEntry) – The object which received the signal