Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gtk2::treeselection(3pm) [debian man page]

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

NAME
Gtk2::TreeSelection - wrapper for GtkTreeSelection 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-2011 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.14.2 2012-05-27 Gtk2::TreeSelection(3pm)

Check Out this Related Man Page

Gtk2::Gdk::Selection(3pm)				User Contributed Perl Documentation				 Gtk2::Gdk::Selection(3pm)

NAME
Gtk2::Gdk::Selection METHODS
Gtk2::Gdk::Selection->convert ($requestor, $selection, $target, $time_) o $requestor (Gtk2::Gdk::Window) o $selection (Gtk2::Gdk::Atom) o $target (Gtk2::Gdk::Atom) o $time_ (unsigned) window or undef = Gtk2::Gdk::Selection->owner_get ($selection) o $selection (Gtk2::Gdk::Atom) window or undef = Gtk2::Gdk::Selection->owner_get_for_display ($display, $selection) o $display (Gtk2::Gdk::Display) o $selection (Gtk2::Gdk::Atom) Since: gtk+ 2.2 boolean = Gtk2::Gdk::Selection->owner_set ($owner, $selection, $time_, $send_event) o $owner (Gtk2::Gdk::Window or undef) o $selection (Gtk2::Gdk::Atom) o $time_ (unsigned) o $send_event (boolean) boolean = Gtk2::Gdk::Selection->owner_set_for_display ($display, $owner, $selection, $time_, $send_event) o $display (Gtk2::Gdk::Display) o $owner (Gtk2::Gdk::Window) o $selection (Gtk2::Gdk::Atom) o $time_ (unsigned) o $send_event (boolean) Since: gtk+ 2.2 (data, prop_type, prop_format) = Gtk2::Gdk::Selection->property_get ($requestor) o $requestor (Gtk2::Gdk::Window) Use Gtk2::Clipboard instead. Gtk2::Gdk::Selection->send_notify ($requestor, $selection, $target, $property, $time_) o $requestor (unsigned) o $selection (Gtk2::Gdk::Atom) o $target (Gtk2::Gdk::Atom) o $property (Gtk2::Gdk::Atom) o $time_ (unsigned) Gtk2::Gdk::Selection->send_notify_for_display ($display, $requestor, $selection, $target, $property, $time_) o $display (Gtk2::Gdk::Display) o $requestor (unsigned) o $selection (Gtk2::Gdk::Atom) o $target (Gtk2::Gdk::Atom) o $property (Gtk2::Gdk::Atom) o $time_ (unsigned) Since: gtk+ 2.2 SEE ALSO
Gtk2 COPYRIGHT
Copyright (C) 2003-2011 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.14.2 2012-05-27 Gtk2::Gdk::Selection(3pm)
Man Page