GimpUi.EnumStore¶
- 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:
class |
|
class |
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
The type of the enum |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class GimpUi.EnumStore(*column_types)¶
- Bases:
- Abstract:
No
- Structure:
A
GimpUi.IntStoresubclass that keeps enum values.- classmethod new(enum_type)¶
- Parameters:
enum_type (
GObject.GType) – theGObject.GTypeof an enum.- Returns:
a new
GimpUi.EnumStore.- Return type:
Creates a new
GimpUi.EnumStore, derived fromGtk.ListStoreand 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:
enum_type (
GObject.GType) – theGObject.GTypeof an enum.minimum (
int) – the minimum value to includemaximum (
int) – the maximum value to include
- Returns:
a new
GimpUi.EnumStore.- Return type:
Creates a new
GimpUi.EnumStorelikeGimpUi.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:
- Default Value:
<GType GEnum>- Flags:
Sets the
GObject.GTypeof the enum to be used in the store.New in version 2.4.