Next:
Gtk2::TreeView
Previous:
Gtk2::TreeSortable::IterCompareFunc
 [Gtk2-Perl - Table of Contents][Gtk2-Perl - Index]

Gtk2::TreeStore



NAME

Gtk2::TreeStore

HIERARCHY

  Glib::Object
  +----Gtk2::TreeStore

INTERFACES

  Gtk2::Buildable
  Gtk2::TreeModel
  Gtk2::TreeDragSource
  Gtk2::TreeDragDest
  Gtk2::TreeSortable

METHODS

treestore = Gtk2::TreeStore->new (...)

treeiter = $tree_store->append ($parent)

$tree_store->clear

$tree_store->set_column_types (...)

$tree_store->set ($iter, $col1, $val1, ...)

treeiter = $tree_store->insert ($parent, $position)

treeiter = $tree_store->insert_after ($parent, $sibling)

treeiter = $tree_store->insert_before ($parent, $sibling)

treeiter = $tree_store->insert_with_values ($parent, $position, ...)

Like doing insert followed by set, except that insert_with_values emits only the row-inserted signal, rather than row-inserted, row-changed, and, if the store is sorted, rows-reordered as in the multiple-operation case. Since emitting the rows-reordered signal repeatedly can affect the performance of the program, insert_with_values should generally be preferred when inserting rows in a sorted tree store.

Since: gtk+ 2.10

boolean = $tree_store->is_ancestor ($iter, $descendant)

integer = $tree_store->iter_depth ($iter)

boolean = $tree_store->iter_is_valid ($iter)

Since: gtk+ 2.2

$tree_store->move_after ($iter, $position)

Since: gtk+ 2.2

$tree_store->move_before ($iter, $position)

Since: gtk+ 2.2

treeiter = $tree_store->prepend ($parent)

boolean = $tree_store->remove ($iter)

$tree_store->reorder ($parent, ...)

Since: gtk+ 2.2

$tree_store->swap ($a, $b)

Since: gtk+ 2.2

$tree_store->set_value ($iter, $col1, $val1, ...)

Alias for Gtk2::TreeStore::set().

SEE ALSO

Gtk2, Glib::Object

COPYRIGHT

Copyright (C) 2003-2008 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.


[Top] Generated by Marek::Pod::HTML 0.49 on Wed Dec 16 23:04:22 2009