|
NAMEGtk2::ListStore - wrapper for GtkListStoreHIERARCHYGlib::Object +----Gtk2::ListStore INTERFACESGtk2::TreeModel Gtk2::TreeDragSource Gtk2::TreeDragDest Gtk2::TreeSortable Gtk2::Buildable METHODSliststore = Gtk2::ListStore->new (...)
treeiter = $list_store->append$list_store->clear$list_store->set_column_types (...)
$list_store->set ($iter, $col1, $val1, ...)
treeiter = $list_store->insert ($position)
treeiter = $list_store->insert_after ($sibling)
treeiter = $list_store->insert_before ($sibling)
treeiter = $list_store->insert_with_values ($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 list store. Since: gtk+ 2.6 boolean = $list_store->iter_is_valid ($iter)
Since: gtk+ 2.2 $store->move_after ($iter, $position)
Since: gtk+ 2.2 $store->move_before ($iter, $position)
Since: gtk+ 2.2 treeiter = $list_store->prependboolean = $list_store->remove ($iter)
The return is always a boolean in the style of Gtk 2.2.x and up, even when running on Gtk 2.0.x. $store->reorder (...)
Reorders store to follow the order indicated by new_order. Note that this function only works with unsorted stores. A list of position should be passed, one for each item in the list. Since: gtk+ 2.2 $store->swap ($a, $b)
Since: gtk+ 2.2 $list_store->set_value ($iter, $col, $val)
SEE ALSOGtk2, Glib::ObjectCOPYRIGHTCopyright (C) 2003-2011 by the gtk2-perl team.This software is licensed under the LGPL. See Gtk2 for a full notice.
Visit the GSP FreeBSD Man Page Interface. |