GimpUi.IntStore¶
- Subclasses:
Methods¶
- Inherited:
Gtk.ListStore (18), GObject.Object (37), Gtk.Buildable (10), Gtk.TreeDragDest (2), Gtk.TreeDragSource (3), Gtk.TreeModel (28), Gtk.TreeSortable (6)
- Structs:
class |
|
class |
|
class |
|
Virtual Methods¶
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
The |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class GimpUi.IntStore(*column_types)¶
- Bases:
- Abstract:
No
- Structure:
A model for integer based name-value pairs (e.g. enums)
- classmethod lookup_by_user_data(model, user_data)¶
- Parameters:
model (
Gtk.TreeModel) – aGimpUi.IntStoreuser_data (
objectorNone) – aobject“user-data” to lookup in the model
- Returns:
Trueif the user-data has been located and iter is valid,Falseotherwise.- iter:
return location for the iter of the given user_data
- Return type:
(
bool, iter:Gtk.TreeIter)
Iterate over the model looking for user_data.
New in version 2.10.
- classmethod lookup_by_value(model, value)¶
- Parameters:
model (
Gtk.TreeModel) – aGimpUi.IntStorevalue (
int) – an integer value to lookup in the model
- Returns:
Trueif the value has been located and iter is valid,Falseotherwise.- iter:
return location for the iter of the given value
- Return type:
(
bool, iter:Gtk.TreeIter)
Iterate over the model looking for value.
New in version 2.2.
- classmethod new(labels)¶
- Parameters:
labels ([
str]) – an array of labels- Returns:
a new
Gtk.ListStore.- Return type:
A variant of
GimpUi.IntStore.new() that takes an array of labels. The array indices are used as values.New in version 3.0.
Property Details¶
- GimpUi.IntStore.props.user_data_type¶
- Name:
user-data-type- Type:
- Default Value:
<GType void>- Flags:
Sets the
GObject.GTypefor theGimpUi.IntStoreColumns.USER_DATAcolumn.You need to set this property when constructing the store if you want to use the
GimpUi.IntStoreColumns.USER_DATAcolumn and want to have the store handle ref-counting of your user data.New in version 2.4.