PHP-GTK
Wednesday, August 20, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousunselect-all
GtkListStore Constructornext

Last updated: Sun, 12 May 2013
view this page in English

GtkListStore

Data model for list data.

Object Hierarchy

Implemented Interfaces

Description

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 ( GType type_column_0 [, GType type_column_1 [, GType type_column_2 , ...]]);

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

Methods

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.


User Contributed Notes
gtk.gtkliststore.php
add a note about notes
There are no user contributed notes for this page.


previousunselect-all
GtkListStore Constructornext

Last updated: Sun, 12 May 2013
view this page in English


credits 

PHP  Copyright © 2001-2014 The PHP Group
 All rights reserved.
Last updated: Sun May 12 20:50:59 2013 CEST