man Gtk2::TreeView () - Gtk2::TreeView

NAME

Gtk2::TreeView

HIERARCHY

  Glib::Object
  +----Glib::Object::_Unregistered::GInitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gtk2::TreeView

INTERFACES

  Gtk2::Atk::ImplementorIface

METHODS

widget = Gtk2::TreeView->new ($model=undef)

widget = Gtk2::TreeView->new_with_model ($model)

$tree_view->collapse_all

$tree_view->columns_autosize

Retuns an array of columns. Returns the Gtk2::TreePath and Gtk2::TreeViewColumn of the cell with the keyboard focus cursor. Either may be undef.

$tree_view->enable_model_drag_dest ($actions, ...)

* ... (list) of Gtk2::TargetEntry's
* ... (list) of Gtk2::TargetEntry's

$tree_view->set_enable_search ($enable_search)

$tree_view->expand_all

$tree_view->expand_to_path ($path)

$tree_view->set_expander_column ($column)

$treeview->set_fixed_height_mode ($enable)

$tree_view->set_hadjustment ($adjustment)

$tree_view->set_headers_clickable ($setting)

$tree_view->set_headers_visible ($headers_visible)

$treeview->set_hover_expand ($expand)

$treeview->set_hover_selection ($hover)

* ... (list)
Insert a column that calls $func every time it needs to fetch the data for a cell. $func will get a cell renderer, the tree model, and the iter of the row in question, and should set the proper value into the cell renderer.

$tree_view->set_model ($model)

Finds the path at the point ($x, $y), relative to widget coordinates. That is, $x and $y are relative to an event's coordinates. $x and $y must come from an event on the $tree_view only where CW$event->window == $tree_view->get_bin_window. It is primarily for things like popup menus. In scalar context, returns the Gtk2::TreePath, in array context, adds the Gtk2::TreeViewColumn, and $x and $y translated to be relative to the cell. This function is only meaningful if $tree_view is realized.

$tree_view->set_reorderable ($reorderable)

$tree_view->set_rules_hint ($setting)

$tree_view->set_search_column ($column)

$tree_view->unset_rows_drag_dest

$tree_view->unset_rows_drag_source

$tree_view->set_vadjustment ($adjustment)

PROPERTIES

'enable-search' (boolean : readable / writable / private)
View allows user to search through columns interactively
'expander-column' (Gtk2::TreeViewColumn : readable / writable / private)
Set the column for the expander column
'fixed-height-mode' (boolean : readable / writable / private)
Speeds up GtkTreeView by assuming that all rows have the same height
'hadjustment' (Gtk2::Adjustment : readable / writable / private)
Horizontal Adjustment for the widget
'headers-clickable' (boolean : readable / writable / private)
Column headers respond to click events
'headers-visible' (boolean : readable / writable / private)
Show the column header buttons
'hover-expand' (boolean : readable / writable / private)
Whether rows should be expanded/collapsed when the pointer moves over them
'hover-selection' (boolean : readable / writable / private)
Whether the selection should follow the pointer
'model' (Gtk2::TreeModel : readable / writable / private)
The model for the tree view
'reorderable' (boolean : readable / writable / private)
View is reorderable
'rules-hint' (boolean : readable / writable / private)
Set a hint to the theme engine to draw rows in alternating colors
'search-column' (integer : readable / writable / private)
Model column to search through when searching through code
'vadjustment' (Gtk2::Adjustment : readable / writable / private)
Vertical Adjustment for the widget

SIGNALS

set-scroll-adjustments (Gtk2::TreeView, Gtk2::Adjustment, Gtk2::Adjustment)
row-activated (Gtk2::TreeView, Gtk2::TreePath, Gtk2::TreeViewColumn)
boolean = test-expand-row (Gtk2::TreeView, Gtk2::TreeIter, Gtk2::TreePath)
boolean = test-collapse-row (Gtk2::TreeView, Gtk2::TreeIter, Gtk2::TreePath)
row-expanded (Gtk2::TreeView, Gtk2::TreeIter, Gtk2::TreePath)
row-collapsed (Gtk2::TreeView, Gtk2::TreeIter, Gtk2::TreePath)
columns-changed (Gtk2::TreeView)
cursor-changed (Gtk2::TreeView)
boolean = move-cursor (Gtk2::TreeView, Gtk2::MovementStep, integer)
boolean = select-all (Gtk2::TreeView)
boolean = unselect-all (Gtk2::TreeView)
boolean = select-cursor-row (Gtk2::TreeView, boolean)
boolean = toggle-cursor-row (Gtk2::TreeView)
boolean = expand-collapse-cursor-row (Gtk2::TreeView, boolean, boolean, boolean)
boolean = select-cursor-parent (Gtk2::TreeView)
boolean = start-interactive-search (Gtk2::TreeView)

ENUMS AND FLAGS

flags Gtk2::Gdk::DragAction

* 'default' / 'GDK_ACTION_DEFAULT'
* 'copy' / 'GDK_ACTION_COPY'
* 'move' / 'GDK_ACTION_MOVE'
* 'link' / 'GDK_ACTION_LINK'
* 'private' / 'GDK_ACTION_PRIVATE'
* 'ask' / 'GDK_ACTION_ASK'

flags Gtk2::Gdk::ModifierType

* 'shift-mask' / 'GDK_SHIFT_MASK'
* 'lock-mask' / 'GDK_LOCK_MASK'
* 'control-mask' / 'GDK_CONTROL_MASK'
* 'mod1-mask' / 'GDK_MOD1_MASK'
* 'mod2-mask' / 'GDK_MOD2_MASK'
* 'mod3-mask' / 'GDK_MOD3_MASK'
* 'mod4-mask' / 'GDK_MOD4_MASK'
* 'mod5-mask' / 'GDK_MOD5_MASK'
* 'button1-mask' / 'GDK_BUTTON1_MASK'
* 'button2-mask' / 'GDK_BUTTON2_MASK'
* 'button3-mask' / 'GDK_BUTTON3_MASK'
* 'button4-mask' / 'GDK_BUTTON4_MASK'
* 'button5-mask' / 'GDK_BUTTON5_MASK'
* 'release-mask' / 'GDK_RELEASE_MASK'
* 'modifier-mask' / 'GDK_MODIFIER_MASK'

enum Gtk2::MovementStep

* 'logical-positions' / 'GTK_MOVEMENT_LOGICAL_POSITIONS'
* 'visual-positions' / 'GTK_MOVEMENT_VISUAL_POSITIONS'
* 'words' / 'GTK_MOVEMENT_WORDS'
* 'display-lines' / 'GTK_MOVEMENT_DISPLAY_LINES'
* 'display-line-ends' / 'GTK_MOVEMENT_DISPLAY_LINE_ENDS'
* 'paragraphs' / 'GTK_MOVEMENT_PARAGRAPHS'
* 'paragraph-ends' / 'GTK_MOVEMENT_PARAGRAPH_ENDS'
* 'pages' / 'GTK_MOVEMENT_PAGES'
* 'buffer-ends' / 'GTK_MOVEMENT_BUFFER_ENDS'
* 'horizontal-pages' / 'GTK_MOVEMENT_HORIZONTAL_PAGES'

enum Gtk2::TreeViewDropPosition

* 'before' / 'GTK_TREE_VIEW_DROP_BEFORE'
* 'after' / 'GTK_TREE_VIEW_DROP_AFTER'
* 'into-or-before' / 'GTK_TREE_VIEW_DROP_INTO_OR_BEFORE'
* 'into-or-after' / 'GTK_TREE_VIEW_DROP_INTO_OR_AFTER'

SEE ALSO

Gtk2, Glib::Object, Glib::Object::_Unregistered::GInitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container

COPYRIGHT

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

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