manpagez: man pages & more
html files: libgimpwidgets
Home | html | info | man

GimpIntStore

GimpIntStore — A model for integer based name-value pairs (e.g. enums)

Properties

GType * user-data-type Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── GtkListStore
        ╰── GimpIntStore
            ╰── GimpEnumStore

Implemented Interfaces

GimpIntStore implements GtkTreeModel, GtkTreeDragSource, GtkTreeDragDest, GtkTreeSortable and GtkBuildable.

Description

A model for integer based name-value pairs (e.g. enums)

Functions

gimp_int_store_new ()

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


gimp_int_store_lookup_by_value ()

gboolean
gimp_int_store_lookup_by_value (GtkTreeModel *model,
                                gint value,
                                GtkTreeIter *iter);

Iterate over the model looking for value .

Parameters

model

a GimpIntStore

 

value

an integer value to lookup in the model

 

iter

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

Types and Values

GimpIntStore

typedef struct _GimpIntStore GimpIntStore;

enum GimpIntStoreColumns

The column types of GimpIntStore.

Members

GIMP_INT_STORE_VALUE

the integer value

 

GIMP_INT_STORE_LABEL

a human-readable label

 

GIMP_INT_STORE_STOCK_ID

a stock ID

 

GIMP_INT_STORE_PIXBUF

a GdkPixbuf

 

GIMP_INT_STORE_USER_DATA

arbitrary user data

 

GIMP_INT_STORE_NUM_COLUMNS

the number of columns

 

Property Details

The “user-data-type” property

  “user-data-type”           GType *

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.

Flags: Read / Write / Construct Only

Allowed values: void

Since: GIMP 2.4

© manpagez.com 2000-2017
Individual documents may contain additional copyright information.