| GIMP Widgets Library Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
GimpIntStore;
enum GimpIntStoreColumns;
GtkListStore * gimp_int_store_new (void);
gboolean gimp_int_store_lookup_by_value (GtkTreeModel *model,
gint value,
GtkTreeIter *iter);
GimpIntStore implements GtkTreeModel, GtkTreeDragSource, GtkTreeDragDest, GtkTreeSortable and GtkBuildable.
typedef enum
{
GIMP_INT_STORE_VALUE,
GIMP_INT_STORE_LABEL,
GIMP_INT_STORE_STOCK_ID,
GIMP_INT_STORE_PIXBUF,
GIMP_INT_STORE_USER_DATA,
GIMP_INT_STORE_NUM_COLUMNS
} GimpIntStoreColumns;
GtkListStore * gimp_int_store_new (void);
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.
Returns : |
a new GimpIntStore. |
Since GIMP 2.2
gboolean gimp_int_store_lookup_by_value (GtkTreeModel *model,
gint value,
GtkTreeIter *iter);
Iterate over the model looking for value.
|
a GimpIntStore |
|
an integer value to lookup in the model
|
|
return location for the iter of the given value
|
Returns : |
TRUE if the value has been located and iter is
valid, FALSE otherwise.
|
Since GIMP 2.2
"user-data-type" property"user-data-type" GType* : Read / Write / Construct Only
Allows to set 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.
Since GIMP 2.4