ListStore Class Reference

Inheritance diagram for ListStore:

TreeModel List of all members.

Detailed Description

The model to display a TreeView as a list.

See also:
TreeView


Public Member Functions

GType getType ()
 Gets this class type.

 this (GObject *gObject)
 Creates a ObjectG from a GTK GObject.

 this (GType[] types)
 Creates a new ListStore with the given types for the columns.

GtkTreeModel * model ()
 Gets the GtkTreeModel.

TreeIter createIter ()
 Creates a top level iteractor.

void set (TreeIter iter, int[] columns, void *[] values)
 sets the values for one row

void set (TreeIter iter, int[] columns, String[] values)
 Sets an iteractor values.

void set (TreeIter iter, TreeNode treeNode)
 Sets an iteractor values from a tree node.

void setValue (TreeIter iter, int column, char[] value)
 Sets the values for a row.

GtkListStore * gtk_list_store_new (gint n_columns,...)
void gtk_list_store_set_column_types (GtkListStore *list_store, gint n_columns, GType *types)
void gtk_list_store_set_value (GtkListStore *list_store, GtkTreeIter *iter, gint column, GValue *value)
void gtk_list_store_set (GtkListStore *list_store, GtkTreeIter *iter,...)
void gtk_list_store_set_valist (GtkListStore *list_store, GtkTreeIter *iter, vaList var_args)
bit remove (TreeIter iter)
 Removes a row from the list.

void insert (TreeIter iter, gint position)
 insert

void insertBefore (TreeIter iter, TreeIter sibling)
 insertBefore

void insertAfter (TreeIter iter, TreeIter sibling)
 insertAfter

void prepend (TreeIter iter)
 prepend

void append (TreeIter iter)
 append

void clear ()
 removes all entries from the list

bit iterIsValid (TreeIter iter)
 iterIsValid

void reorder (gint[] newOrder)
 reorder

void swap (TreeIter a, TreeIter b)
 swap

void moveAfter (TreeIter iter, TreeIter position)
 moveAfter

void modeBefore (TreeIter iter, TreeIter position)
 modeBefore


Member Function Documentation

void ListStore.append TreeIter  iter  ) 
 

append

Parameters:
iter 

void ListStore.clear  ) 
 

removes all entries from the list

TreeIter ListStore.createIter  ) 
 

Creates a top level iteractor.

I don't think lists have but the top level iteractor

GType ListStore.getType  ) 
 

Gets this class type.

Returns:
type

Reimplemented from TreeModel.

GtkListStore* ListStore.gtk_list_store_new gint  n_columns,
... 
 

Todo:

void ListStore.gtk_list_store_set GtkListStore *  list_store,
GtkTreeIter *  iter,
... 
 

Todo:

void ListStore.gtk_list_store_set_column_types GtkListStore *  list_store,
gint  n_columns,
GType *  types
 

Todo:

void ListStore.gtk_list_store_set_valist GtkListStore *  list_store,
GtkTreeIter *  iter,
vaList  var_args
 

Todo:

void ListStore.gtk_list_store_set_value GtkListStore *  list_store,
GtkTreeIter *  iter,
gint  column,
GValue *  value
 

Todo:

void ListStore.insert TreeIter  iter,
gint  position
 

insert

Parameters:
iter 
position 

void ListStore.insertAfter TreeIter  iter,
TreeIter  sibling
 

insertAfter

Parameters:
iter 
sibling 

void ListStore.insertBefore TreeIter  iter,
TreeIter  sibling
 

insertBefore

Parameters:
iter 
sibling 

bit ListStore.iterIsValid TreeIter  iter  ) 
 

iterIsValid

Parameters:
iter 

void ListStore.modeBefore TreeIter  iter,
TreeIter  position
 

modeBefore

Parameters:
iter 
position 

GtkTreeModel* ListStore.model  ) 
 

Gets the GtkTreeModel.

Reimplemented from TreeModel.

void ListStore.moveAfter TreeIter  iter,
TreeIter  position
 

moveAfter

Parameters:
iter 
position 

void ListStore.prepend TreeIter  iter  ) 
 

prepend

Parameters:
iter 

bit ListStore.remove TreeIter  iter  ) 
 

Removes a row from the list.

Parameters:
iter the iteract that contains the row
Returns:
true if succesefull

void ListStore.reorder gint[]  newOrder  ) 
 

reorder

Parameters:
newOrder 

void ListStore.set TreeIter  iter,
TreeNode  treeNode
 

Sets an iteractor values from a tree node.

This is the way to add a new row to the tree, the iteractor is either a top level iteractor created from createIter() or a nested iteractor created from append()

Parameters:
iter the iteractor to set
treeNode the tree node
See also:
createIter()

append()

void ListStore.set TreeIter  iter,
int[]  columns,
String[]  values
 

Sets an iteractor values.

This is the way to add a new row to the tree, the iteractor is either a top level iteractor created from createIter() or a nested iteractor created from append()

Parameters:
iter the iteractor to set
columns the numbers of the columns to set
values the values to set into the cells
See also:
createIter()

append()

void ListStore.set TreeIter  iter,
int[]  columns,
void *[]  values
 

sets the values for one row

Parameters:
iter the row iteractor
columns an arrays with the columns to set
values an arrays with the values

void ListStore.setValue TreeIter  iter,
int  column,
char[]  value
 

Sets the values for a row.

Parameters:
iter 
column the column to affect
value an array of GValues

void ListStore.swap TreeIter  a,
TreeIter  b
 

swap

Parameters:
a 
b 

ListStore.this GType[]  types  ) 
 

Creates a new ListStore with the given types for the columns.

Parameters:
types the array of column types

ListStore.this GObject *  gObject  ) 
 

Creates a ObjectG from a GTK GObject.

This will set a pointer to the ObjectG on the GTK GObject all the new widget will end up executing this contructor.

Reimplemented from TreeModel.


SourceForge.net Logo