Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gtk2::treeselection(3) [suse man page]

Gtk2::TreeSelection(3)					User Contributed Perl Documentation				    Gtk2::TreeSelection(3)

NAME
Gtk2::TreeSelection HIERARCHY
Glib::Object +----Gtk2::TreeSelection METHODS
integer = $selection->count_selected_rows boolean = $selection->iter_is_selected ($iter) o $iter (Gtk2::TreeIter) selectionmode = $selection->get_mode $selection->set_mode ($type) o $type (Gtk2::SelectionMode) boolean = $selection->path_is_selected ($path) o $path (Gtk2::TreePath) $selection->select_all $selection->set_select_function ($func, $data=undef) o $func (scalar) o $data (scalar) $selection->select_iter ($iter) o $iter (Gtk2::TreeIter) $selection->select_path ($path) o $path (Gtk2::TreePath) $selection->select_range ($start_path, $end_path) o $start_path (Gtk2::TreePath) o $end_path (Gtk2::TreePath) $selection->selected_foreach ($func, $data=undef) o $func (subroutine) o $data (scalar) Call $func on every selected row in $selection's view. iter = $tree_selection->get_selected (model, iter) = $tree_selection->get_selected Since most of the time you are only interested in the iter, "get_selected" returns only the iter in scalar context. @paths = $selection->get_selected_rows Returns 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) o $iter (Gtk2::TreeIter) $selection->unselect_path ($path) o $path (Gtk2::TreePath) $selection->unselect_range ($start_path, $end_path) o $start_path (Gtk2::TreePath) o $end_path (Gtk2::TreePath) Since: gtk+ 2.2 scalar = $selection->get_user_data SIGNALS
changed (Gtk2::TreeSelection) ENUMS AND FLAGS
enum Gtk2::SelectionMode o 'none' / 'GTK_SELECTION_NONE' o 'single' / 'GTK_SELECTION_SINGLE' o 'browse' / 'GTK_SELECTION_BROWSE' o 'multiple' / 'GTK_SELECTION_MULTIPLE' o 'extended' / 'GTK_SELECTION_EXTENDED' 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. perl v5.12.1 2010-07-05 Gtk2::TreeSelection(3)

Check Out this Related Man Page

Gtk2::TreeModelFilter(3)				User Contributed Perl Documentation				  Gtk2::TreeModelFilter(3)

NAME
Gtk2::TreeModelFilter HIERARCHY
Glib::Object +----Gtk2::TreeModelFilter INTERFACES
Gtk2::TreeModel Gtk2::TreeDragSource METHODS
treemodelfilter = Gtk2::TreeModelFilter->new ($child_model, $root=undef) o $child_model (Gtk2::TreeModel) o $root (Gtk2::TreePath or undef) $filter->clear_cache treeiter = $filter->convert_child_iter_to_iter ($child_iter) o $child_iter (Gtk2::TreeIter) treepath or undef = $filter->convert_child_path_to_path ($child_path) o $child_path (Gtk2::TreePath) treeiter = $filter->convert_iter_to_child_iter ($filter_iter) o $filter_iter (Gtk2::TreeIter) treepath or undef = $path->convert_path_to_child_path ($filter_path) o $filter_path (Gtk2::TreePath) treemodel = $filter->get_model $filter->set_modify_func ($types, $func=undef, $data=undef) o $types (scalar) type name string for one column, or an arrayref of type names for multiple columns o $func (scalar) o $data (scalar) func is called as sub myfunc { my ($filter, $iter, $column_num, $data) = @_; ... and should return the value from the filtered model that iter row and column number. $filter->refilter $filter->set_visible_column ($column) o $column (integer) $filter->set_visible_func ($func, $data=undef) o $func (scalar) o $data (scalar) PROPERTIES
'child-model' (Gtk2::TreeModel : readable / writable / construct-only / private) The model for the filtermodel to filter 'virtual-root' (Gtk2::TreePath : readable / writable / construct-only / private) The virtual root (relative to the child model) for this filtermodel 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. perl v5.12.1 2010-07-05 Gtk2::TreeModelFilter(3)
Man Page