Gtk2::TreeView
- NAME
- HIERARCHY
- INTERFACES
- METHODS
- widget = Gtk2::TreeView->new ($model=undef)
- widget = Gtk2::TreeView->new_with_model ($model)
- integer = $tree_view->append_column ($column)
- rectangle = $tree_view->get_background_area ($path, $column)
- window = $tree_view->get_bin_window
- rectangle = $tree_view->get_cell_area ($path, $column)
- $tree_view->collapse_all
- boolean = $tree_view->collapse_row ($path)
- $tree_view->set_column_drag_function ($func, $data=undef)
- treeviewcolumn = $tree_view->get_column ($n)
- $tree_view->columns_autosize
- list = $tree_view->get_columns
- (tx, ty) = $tree_view->convert_bin_window_to_tree_coords ($bx, $by)
- (wx, wy) = $tree_view->convert_bin_window_to_widget_coords ($bx, $by)
- (bx, by) = $tree_view->convert_tree_to_bin_window_coords ($tx, $ty)
- (wx, wy) = $tree_view->convert_tree_to_widget_coords ($tx, $ty)
- (bx, by) = $tree_view->convert_widget_to_bin_window_coords ($wx, $wy)
- (tx, ty) = $tree_view->convert_widget_to_tree_coords ($wx, $wy)
- pixmap = $tree_view->create_row_drag_icon ($path)
- (path, focus_column) = $tree_view->get_cursor
- $tree_view->set_cursor_on_cell ($path, $focus_column, $focus_cell, $start_editing)
- $tree_view->set_cursor ($path, $focus_column=undef, $start_editing=FALSE)
- (path, dropposition) = $tree_view->get_dest_row_at_pos ($drag_x, $drag_y)
- (path, dropposition) = $tree_view->get_drag_dest_row
- $tree_view->set_drag_dest_row ($path, $pos)
- $tree_view->enable_model_drag_dest ($actions, ...)
- $tree_view->enable_model_drag_source ($start_button_mask, $actions, ...)
- boolean = $tree_view->get_enable_search
- $tree_view->set_enable_search ($enable_search)
- boolean = $tree_view->get_enable_tree_lines
- $tree_view->set_enable_tree_lines ($enabled)
- $tree_view->expand_all
- boolean = $tree_view->expand_row ($path, $open_all)
- $tree_view->expand_to_path ($path)
- treeviewcolumn or undef = $tree_view->get_expander_column
- $tree_view->set_expander_column ($column)
- boolean = $treeview->get_fixed_height_mode
- $treeview->set_fixed_height_mode ($enable)
- treeviewgridlines = $tree_view->get_grid_lines
- $tree_view->set_grid_lines ($grid_lines)
- adjustment or undef = $tree_view->get_hadjustment
- $tree_view->set_hadjustment ($adjustment)
- boolean = $tree_view->get_headers_clickable
- $tree_view->set_headers_clickable ($setting)
- boolean = $tree_view->get_headers_visible
- $tree_view->set_headers_visible ($headers_visible)
- boolean = $treeview->get_hover_expand
- $treeview->set_hover_expand ($expand)
- boolean = $treeview->get_hover_selection
- $treeview->set_hover_selection ($hover)
- integer = $tree_view->insert_column ($column, $position)
- $tree_view->insert_column_with_attributes ($position, $title, $cellrenderer, $attr1, $col1, $attr2, $col2, ...)
- integer = $tree_view->insert_column_with_data_func ($position, $title, $cell, $func, $data=undef)
- boolean = $tree_view->is_rubber_banding_active
- integer = $tree_view->get_level_indentation
- $tree_view->set_level_indentation ($indentation)
- $tree_view->map_expanded_rows ($func, $data=undef)
- treemodel or undef = $tree_view->get_model
- $tree_view->set_model ($model)
- $tree_view->move_column_after ($column, $base_column)
- path = $tree_view->get_path_at_pos ($x, $y)
- (path, column, cell_x, cell_y) = $tree_view->get_path_at_pos ($x, $y)
- integer = $tree_view->remove_column ($column)
- boolean = $tree_view->get_reorderable
- $tree_view->set_reorderable ($reorderable)
- $tree_view->row_activated ($path, $column)
- boolean = $tree_view->row_expanded ($path)
- $tree_view->set_row_separator_func ($func, $data=undef)
- boolean = $tree_view->get_rubber_banding
- $tree_view->set_rubber_banding ($enable)
- boolean = $tree_view->get_rules_hint
- $tree_view->set_rules_hint ($setting)
- $tree_view->scroll_to_cell ($path, $column=undef, $use_align=FALSE, $row_align=0.0, $col_align=0.0)
- $tree_view->scroll_to_point ($tree_x, $tree_y)
- integer = $tree_view->get_search_column
- $tree_view->set_search_column ($column)
- entry or undef = $tree_view->get_search_entry
- $tree_view->set_search_entry ($entry)
- $tree_view->set_search_equal_func ($func, $data=undef)
- $tree_view->set_search_position_func ($func, $user_data=undef)
- treeselection = $tree_view->get_selection
- boolean = $tree_view->get_show_expanders
- $tree_view->set_show_expanders ($enabled)
- $tree_view->set_tooltip_cell ($tooltip, $path, $column, $cell)
- integer = $tree_view->get_tooltip_column
- $tree_view->set_tooltip_column ($column)
- (x, y, model, path, iter) = $treeview->get_tooltip_context ($x, $y, $keyboard_tip)
- $tree_view->set_tooltip_row ($tooltip, $path)
- (wx, wy) = $tree_view->tree_to_widget_coords ($tx, $ty)
- $tree_view->unset_rows_drag_dest
- $tree_view->unset_rows_drag_source
- adjustment or undef = $tree_view->get_vadjustment
- $tree_view->set_vadjustment ($adjustment)
- (start_path, end_path) = $tree_view->get_visible_range
- rectangle = $tree_view->get_visible_rect
- (tx, ty) = $tree_view->widget_to_tree_coords ($wx, $wy)
- PROPERTIES
- SIGNALS
- ENUMS AND FLAGS
- SEE ALSO
- COPYRIGHT
Gtk2::TreeView
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::TreeView
Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
Retuns an array of columns.
Since: gtk+ 2.12
Since: gtk+ 2.12
Since: gtk+ 2.12
Since: gtk+ 2.12
Since: gtk+ 2.12
Since: gtk+ 2.12
Returns the Gtk2::TreePath and Gtk2::TreeViewColumn of the cell with the
keyboard focus cursor. Either may be undef.
Since: gtk+ 2.2
Since: gtk+ 2.10
Since: gtk+ 2.10
Since: gtk+ 2.2
Since: gtk+ 2.6
Since: gtk+ 2.6
Since: gtk+ 2.10
Since: gtk+ 2.10
Since: gtk+ 2.10
Since: gtk+ 2.6
Since: gtk+ 2.6
Since: gtk+ 2.6
Since: gtk+ 2.6
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.
Since: gtk+ 2.12
Since: gtk+ 2.12
Since: gtk+ 2.12
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 $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.
Since: gtk+ 2.6
Since: gtk+ 2.10
Since: gtk+ 2.10
Since: gtk+ 2.10
Since: gtk+ 2.10
Pass undef for the func to restore the default search position function.
Since: gtk+ 2.10
Since: gtk+ 2.12
Since: gtk+ 2.12
Since: gtk+ 2.12
Since: gtk+ 2.12
Since: gtk+ 2.12
Since: gtk+ 2.12
Since: gtk+ 2.12
Since: gtk+ 2.8
- 'enable-grid-lines' (Gtk2::TreeViewGridLines : readable / writable / private)
-
Whether grid lines should be drawn in the tree view
- 'enable-search' (boolean : readable / writable / private)
-
View allows user to search through columns interactively
- 'enable-tree-lines' (boolean : readable / writable / private)
-
Whether tree lines should be drawn in the tree view
- '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
- 'level-indentation' (integer : readable / writable / private)
-
Extra indentation for each level
- 'model' (Gtk2::TreeModel : readable / writable / private)
-
The model for the tree view
- 'reorderable' (boolean : readable / writable / private)
-
View is reorderable
- 'rubber-banding' (boolean : readable / writable / private)
-
Whether to enable selection of multiple items by dragging the mouse pointer
- '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
- 'show-expanders' (boolean : readable / writable / private)
-
View has expanders
- 'tooltip-column' (integer : readable / writable / private)
-
The column in the model containing the tooltip texts for the rows
- 'vadjustment' (Gtk2::Adjustment : readable / writable / private)
-
Vertical Adjustment for the widget
- set-scroll-adjustments (Gtk2::TreeView, Gtk2::Adjustment, Gtk2::Adjustment)
- boolean = select-all (Gtk2::TreeView)
- boolean = unselect-all (Gtk2::TreeView)
- boolean = move-cursor (Gtk2::TreeView, Gtk2::MovementStep, integer)
- 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 = 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)
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container
Copyright (C) 2003-2008 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
[Top]
Generated by Marek::Pod::HTML 0.49 on Wed Dec 16 23:04:25 2009