XfceItemListStore

XfceItemListStore — Store for XfceItemListModel

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── XfceItemListModel
        ╰── XfceItemListStore

Implemented Interfaces

XfceItemListStore implements GtkTreeModel, GtkTreeDragSource and GtkTreeDragDest.

Includes

#include <libxfce4ui/libxfce4ui.h>

Description

This class copies the GtkListStore interface, it also supports the GtkTreeModel interface, but is intended to be used as an XfceItemListModel.

Functions

xfce_item_list_store_new ()

XfceItemListStore *
xfce_item_list_store_new (gint n_columns,
                          ...);

Parameters

n_columns

Number of columns in the model, if you use only standard ones, specify -1

 

...

Column types

 

Returns

XfceItemListStore.

[transfer full]

Since: 4.21.3


xfce_item_list_store_clear ()

void
xfce_item_list_store_clear (XfceItemListStore *store);

Removes all items.

Parameters

Since: 4.21.3


xfce_item_list_store_insert ()

gint
xfce_item_list_store_insert (XfceItemListStore *store,
                             gint index);

Inserts an empty item at the specified index.

Parameters

store

XfceItemListStore

 

index

Index to insert, or -1 to insert at the end

 

Returns

The index at which the item was inserted

Since: 4.21.3


xfce_item_list_store_set ()

void
xfce_item_list_store_set (XfceItemListStore *store,
                          gint index,
                          ...);

Sets the value of the item's columns at a specific index; the column index must be -1 at the end.

Parameters

store

XfceItemListStore

 

index

Item index

 

...

Indexes and column values

 

Since: 4.21.3


xfce_item_list_store_insert_with_values ()

gint
xfce_item_list_store_insert_with_values
                               (XfceItemListStore *store,
                                gint index,
                                ...);

This is a function that combines xfce_item_list_store_insert and xfce_item_list_store_set.

Parameters

store

XfceItemListStore

 

index

Index of the item to insert, or -1 to insert at the end

 

...

Indexes and column values

 

Returns

The index at which the new item was inserted

Since: 4.21.3

Types and Values

XfceItemListStore

typedef struct _XfceItemListStore XfceItemListStore;