|
NAMEGtk2::TreeSelection - wrapper for GtkTreeSelectionHIERARCHYGlib::Object +----Gtk2::TreeSelection METHODSinteger = $selection->count_selected_rowsboolean = $selection->iter_is_selected ($iter)
selectionmode = $selection->get_mode$selection->set_mode ($type)
boolean = $selection->path_is_selected ($path)
$selection->select_all$selection->set_select_function ($func, $data=undef)
$selection->select_iter ($iter)
$selection->select_path ($path)
$selection->select_range ($start_path, $end_path)
$selection->selected_foreach ($func, $data=undef)
Call $func on every selected row in $selection's view. iter = $tree_selection->get_selected(model, iter) = $tree_selection->get_selectedSince most of the time you are only interested in the iter, "get_selected" returns only the iter in scalar context.@paths = $selection->get_selected_rowsReturns the Gtk2::TreePath of each selected row, or an empty list if no rows are selected. The model is not returned, as documented in the C API reference. To get the model, try "$selection->get_tree_view->get_model".treeview = $selection->get_tree_view$selection->unselect_all$selection->unselect_iter ($iter)
$selection->unselect_path ($path)
$selection->unselect_range ($start_path, $end_path)
Since: gtk+ 2.2 scalar = $selection->get_user_dataSIGNALS
ENUMS AND FLAGSenum Gtk2::SelectionMode
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. |