Top | ![]() |
![]() |
![]() |
![]() |
GtkListStore * | gimp_int_store_new () |
GtkListStore * | gimp_int_store_new_valist () |
gboolean | gimp_int_store_lookup_by_value () |
gboolean | gimp_int_store_lookup_by_user_data () |
GimpIntStore implements GtkTreeModel, GtkTreeDragSource, GtkTreeDragDest, GtkTreeSortable and GtkBuildable.
GtkListStore * gimp_int_store_new (const gchar *first_label
,gint first_value
,...
);
Creates a GtkListStore with a number of useful columns. GimpIntStore is especially useful if the items you want to store are identified using an integer value.
If you need to construct an empty GimpIntStore, it's best to use g_object_new (GIMP_TYPE_INT_STORE, NULL).
[skip]
first_label |
the label of the first item |
|
first_value |
the value of the first item |
|
... |
a |
Since: 2.2
GtkListStore * gimp_int_store_new_valist (const gchar *first_label
,gint first_value
,va_list values
);
A variant of gimp_int_store_new()
that takes a va_list of
label/value pairs.
first_label |
the label of the first item |
|
first_value |
the value of the first item |
|
values |
a va_list with more values |
Since: 3.0
gboolean gimp_int_store_lookup_by_value (GtkTreeModel *model
,gint value
,GtkTreeIter *iter
);
Iterate over the model
looking for value
.
model |
||
value |
an integer value to lookup in the |
|
iter |
return location for the iter of the given |
[out] |
Since: 2.2
gboolean gimp_int_store_lookup_by_user_data (GtkTreeModel *model
,gpointer user_data
,GtkTreeIter *iter
);
Iterate over the model
looking for user_data
.
model |
||
user_data |
a gpointer "user-data" to lookup in the |
|
iter |
return location for the iter of the given |
[out] |
Since: 2.10
“user-data-type”
property “user-data-type” GType *
Sets the GType for the GIMP_INT_STORE_USER_DATA column.
You need to set this property when constructing the store if you want to use the GIMP_INT_STORE_USER_DATA column and want to have the store handle ref-counting of your user data.
Flags: Read / Write / Construct Only
Allowed values: void
Since: 2.4