GimpUi.EnumStore

g GObject.GInterface GObject.GInterface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.TreeDragDest Gtk.TreeDragDest GObject.GInterface->Gtk.TreeDragDest Gtk.TreeDragSource Gtk.TreeDragSource GObject.GInterface->Gtk.TreeDragSource Gtk.TreeModel Gtk.TreeModel GObject.GInterface->Gtk.TreeModel Gtk.TreeSortable Gtk.TreeSortable GObject.GInterface->Gtk.TreeSortable GObject.Object GObject.Object Gtk.ListStore Gtk.ListStore GObject.Object->Gtk.ListStore GimpUi.EnumStore GimpUi.EnumStore GimpUi.IntStore GimpUi.IntStore GimpUi.IntStore->GimpUi.EnumStore Gtk.Buildable->Gtk.ListStore Gtk.ListStore->GimpUi.IntStore Gtk.TreeDragDest->Gtk.ListStore Gtk.TreeDragSource->Gtk.ListStore Gtk.TreeModel->Gtk.ListStore Gtk.TreeSortable->Gtk.ListStore

Subclasses:

None

Methods

Inherited:

GimpUi.IntStore (3), Gtk.ListStore (18), GObject.Object (37), Gtk.Buildable (10), Gtk.TreeDragDest (2), Gtk.TreeDragSource (3), Gtk.TreeModel (28), Gtk.TreeSortable (6)

Structs:

GObject.ObjectClass (5)

class

new (enum_type)

class

new_with_range (enum_type, minimum, maximum)

set_icon_prefix (icon_prefix)

Virtual Methods

Inherited:

GObject.Object (7), Gtk.Buildable (10), Gtk.TreeDragDest (2), Gtk.TreeDragSource (3), Gtk.TreeModel (19), Gtk.TreeSortable (6)

Properties

Inherited:

GimpUi.IntStore (1)

Name

Type

Flags

Short Description

enum-type

GObject.GType

r/w/co

The type of the enum

Signals

Inherited:

GObject.Object (1), Gtk.TreeModel (5), Gtk.TreeSortable (1)

Fields

Inherited:

GObject.Object (1), Gtk.TreeModel (5), Gtk.TreeSortable (1)

Class Details

class GimpUi.EnumStore(*column_types)
Bases:

GimpUi.IntStore

Abstract:

No

Structure:

GimpUi.EnumStoreClass

A GimpUi.IntStore subclass that keeps enum values.

classmethod new(enum_type)
Parameters:

enum_type (GObject.GType) – the GObject.GType of an enum.

Returns:

a new GimpUi.EnumStore.

Return type:

Gtk.ListStore

Creates a new GimpUi.EnumStore, derived from Gtk.ListStore and fills it with enum values. The enum needs to be registered to the type system and should have translatable value names.

New in version 2.4.

classmethod new_with_range(enum_type, minimum, maximum)
Parameters:
Returns:

a new GimpUi.EnumStore.

Return type:

Gtk.ListStore

Creates a new GimpUi.EnumStore like GimpUi.EnumStore.new() but allows to limit the enum values to a certain range. Values smaller than minimum or larger than maximum are not added to the store.

New in version 2.4.

set_icon_prefix(icon_prefix)
Parameters:

icon_prefix (str) – a prefix to create icon names from enum values

Creates an icon name for each enum value in the self by appending the value’s nick to the given icon_prefix, separated by a hyphen.

See also: GimpUi.EnumComboBox.set_icon_prefix().

New in version 2.10.

Property Details

GimpUi.EnumStore.props.enum_type
Name:

enum-type

Type:

GObject.GType

Default Value:

<GType GEnum>

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Sets the GObject.GType of the enum to be used in the store.

New in version 2.4.