Forum und email

GtkListStore

Data model for list data.

Йерархия на обектите

Изпълними интерфейси

Описание

The GtkListStore object is a list model for use with a GtkTreeView widget. It can be used to store any number of tabular data.

On creation, you have to determine how many columns the store will have, and what type they shall be able to contain. After that, you will fill the model with data by using the set() , append() or prepend() methods.

After you have done that, you can use the list store object as data source for a GtkTreeView by using the set_model() method.

Constructors

GtkListStore ( GtkType type_column_0 [, GtkType type_column_1 [, GtkType type_column_2 , ...]]);

-- Create a new list store with a number of columns.

Методи

append()
  Append one row to the end of the list.
clear()
  Remove all rows.
insert()
  Insert a row of data at a certain position.
insert_after()
  FIXME: Code should be changed
insert_before()
  FIXME: Code should be changed
iter_is_valid()
  Checks if the given iterator is valid.
move_after()
  Moves the given row after a specified one.
move_before()
  Moves the given row before a specified one.
prepend()
  Add a row at the beginning of the list.
remove()
  Remove a specific row.
set()
  Change certains columns of a row.
swap()
  Swaps two rows.