PHP-GTK
Thursday, July 24, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGtkTreeDragSource::row_draggable
GtkTreeModel::foreachnext

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

GtkTreeModel

The tree interface used by GtkTreeView.

Object Hierarchy

  GInterface
  GtkTreeModel

Implemented by

Description

This is an interface and cannot be instantiated directly.

The GtkTreeModel interface defines a generic tree interface for use by the GtkTreeView widget. It is an abstract interface, and is designed to be usable with any appropriate data structure. The programmer just has to implement this interface on their own data type for it to be viewable by a GtkTreeView widget.

Methods

foreach()
  Loop through all rows.
get_column_type()
  Returns the type of the column.
get_flags()
  Returns a set of flags supported by the interface.
get_iter()
  Returns an iter for the given GtkTreePath.
get_iter_first()
  Returns an iter to the first row.
get_iter_root()
  DEPRECATED. Alias for get_iter_first().
get_iter_from_string()
  Convert the given string path to a valid path and return the iter.
get_n_columns()
  Returns the number of columns used by tree_model.
get_path()
  Returns a path to the given iterator.
get_string_from_iter()
  Generates a string representation of the iter.
get_value()
  Returns the value of a column of the given iter.
iter_children()
  Returns iter for the first child row.
iter_has_child()
  If an iterator has one or more children.
iter_n_children()
  Returns the number of childen iter has.
iter_next()
  Next iterator on the same level.
iter_nth_child()
  FIXME: behavior needs to be changed
iter_parent()
  FIXME: behavior needs to be changed
ref_node()
  FIXME
row_changed()
  Emits the "row_changed" signal.
row_deleted()
  Emits the "row_deleted" signal.
row_has_child_toggled()
  Emits the "row_has_child_toggled" signal.
row_inserted()
  Emits the "row_inserted" signal.
unref_node()
  FIXME
get()
 

Signals

"row-changed"
  Row has been changed in the model.
"row-deleted"
  Row has been deleted.
"row-has-child-toggled"
 
"row-inserted"
  The row has been inserted.
"rows-reordered"
  Rows have been reordered.


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


previousGtkTreeDragSource::row_draggable
GtkTreeModel::foreachnext

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:51:00 2013 CEST