pub trait TreeViewExt: IsA<TreeView> + 'static {
Show 129 methods
// Provided methods
fn append_column(&self, column: &TreeViewColumn) -> i32 { ... }
fn collapse_all(&self) { ... }
fn collapse_row(&self, path: &TreePath) -> bool { ... }
fn columns_autosize(&self) { ... }
fn convert_bin_window_to_tree_coords(&self, bx: i32, by: i32) -> (i32, i32) { ... }
fn convert_bin_window_to_widget_coords(
&self,
bx: i32,
by: i32,
) -> (i32, i32) { ... }
fn convert_tree_to_bin_window_coords(&self, tx: i32, ty: i32) -> (i32, i32) { ... }
fn convert_tree_to_widget_coords(&self, tx: i32, ty: i32) -> (i32, i32) { ... }
fn convert_widget_to_bin_window_coords(
&self,
wx: i32,
wy: i32,
) -> (i32, i32) { ... }
fn convert_widget_to_tree_coords(&self, wx: i32, wy: i32) -> (i32, i32) { ... }
fn create_row_drag_icon(&self, path: &TreePath) -> Option<Paintable> { ... }
fn enable_model_drag_dest(
&self,
formats: &ContentFormats,
actions: DragAction,
) { ... }
fn enable_model_drag_source(
&self,
start_button_mask: ModifierType,
formats: &ContentFormats,
actions: DragAction,
) { ... }
fn expand_all(&self) { ... }
fn expand_row(&self, path: &TreePath, open_all: bool) -> bool { ... }
fn expand_to_path(&self, path: &TreePath) { ... }
fn activates_on_single_click(&self) -> bool { ... }
fn background_area(
&self,
path: Option<&TreePath>,
column: Option<&TreeViewColumn>,
) -> Rectangle { ... }
fn cell_area(
&self,
path: Option<&TreePath>,
column: Option<&TreeViewColumn>,
) -> Rectangle { ... }
fn column(&self, n: i32) -> Option<TreeViewColumn> { ... }
fn columns(&self) -> Vec<TreeViewColumn> { ... }
fn cursor(&self) -> (Option<TreePath>, Option<TreeViewColumn>) { ... }
fn dest_row_at_pos(
&self,
drag_x: i32,
drag_y: i32,
) -> Option<(Option<TreePath>, TreeViewDropPosition)> { ... }
fn drag_dest_row(&self) -> (Option<TreePath>, TreeViewDropPosition) { ... }
fn enables_search(&self) -> bool { ... }
fn enables_tree_lines(&self) -> bool { ... }
fn expander_column(&self) -> Option<TreeViewColumn> { ... }
fn is_fixed_height_mode(&self) -> bool { ... }
fn grid_lines(&self) -> TreeViewGridLines { ... }
fn is_headers_clickable(&self) -> bool { ... }
fn is_headers_visible(&self) -> bool { ... }
fn hover_expands(&self) -> bool { ... }
fn is_hover_selection(&self) -> bool { ... }
fn level_indentation(&self) -> i32 { ... }
fn model(&self) -> Option<TreeModel> { ... }
fn n_columns(&self) -> u32 { ... }
fn path_at_pos(
&self,
x: i32,
y: i32,
) -> Option<(Option<TreePath>, Option<TreeViewColumn>, i32, i32)> { ... }
fn is_reorderable(&self) -> bool { ... }
fn is_rubber_banding(&self) -> bool { ... }
fn search_column(&self) -> i32 { ... }
fn search_entry(&self) -> Option<Editable> { ... }
fn selection(&self) -> TreeSelection { ... }
fn shows_expanders(&self) -> bool { ... }
fn tooltip_column(&self) -> i32 { ... }
fn tooltip_context(
&self,
x: i32,
y: i32,
keyboard_tip: bool,
) -> Option<(Option<TreeModel>, TreePath, TreeIter)> { ... }
fn visible_range(&self) -> Option<(TreePath, TreePath)> { ... }
fn visible_rect(&self) -> Rectangle { ... }
fn insert_column(&self, column: &TreeViewColumn, position: i32) -> i32 { ... }
fn insert_column_with_data_func<P: Fn(&TreeViewColumn, &CellRenderer, &TreeModel, &TreeIter) + 'static>(
&self,
position: i32,
title: &str,
cell: &impl IsA<CellRenderer>,
func: P,
) -> i32 { ... }
fn is_blank_at_pos(
&self,
x: i32,
y: i32,
) -> Option<(Option<TreePath>, Option<TreeViewColumn>, i32, i32)> { ... }
fn is_rubber_banding_active(&self) -> bool { ... }
fn map_expanded_rows<P: FnMut(&TreeView, &TreePath)>(&self, func: P) { ... }
fn move_column_after(
&self,
column: &TreeViewColumn,
base_column: Option<&TreeViewColumn>,
) { ... }
fn remove_column(&self, column: &TreeViewColumn) -> i32 { ... }
fn row_activated(&self, path: &TreePath, column: Option<&TreeViewColumn>) { ... }
fn row_expanded(&self, path: &TreePath) -> bool { ... }
fn scroll_to_cell(
&self,
path: Option<&TreePath>,
column: Option<&TreeViewColumn>,
use_align: bool,
row_align: f32,
col_align: f32,
) { ... }
fn scroll_to_point(&self, tree_x: i32, tree_y: i32) { ... }
fn set_activate_on_single_click(&self, single: bool) { ... }
fn set_column_drag_function(
&self,
func: Option<Box_<dyn Fn(&TreeView, &TreeViewColumn, &TreeViewColumn, &TreeViewColumn) -> bool + 'static>>,
) { ... }
fn set_cursor(
&self,
path: &TreePath,
focus_column: Option<&TreeViewColumn>,
start_editing: bool,
) { ... }
fn set_cursor_on_cell(
&self,
path: &TreePath,
focus_column: Option<&TreeViewColumn>,
focus_cell: Option<&impl IsA<CellRenderer>>,
start_editing: bool,
) { ... }
fn set_drag_dest_row(
&self,
path: Option<&TreePath>,
pos: TreeViewDropPosition,
) { ... }
fn set_enable_search(&self, enable_search: bool) { ... }
fn set_enable_tree_lines(&self, enabled: bool) { ... }
fn set_expander_column(&self, column: Option<&TreeViewColumn>) { ... }
fn set_fixed_height_mode(&self, enable: bool) { ... }
fn set_grid_lines(&self, grid_lines: TreeViewGridLines) { ... }
fn set_headers_clickable(&self, setting: bool) { ... }
fn set_headers_visible(&self, headers_visible: bool) { ... }
fn set_hover_expand(&self, expand: bool) { ... }
fn set_hover_selection(&self, hover: bool) { ... }
fn set_level_indentation(&self, indentation: i32) { ... }
fn set_model(&self, model: Option<&impl IsA<TreeModel>>) { ... }
fn set_reorderable(&self, reorderable: bool) { ... }
fn set_row_separator_func<P: Fn(&TreeModel, &TreeIter) -> bool + 'static>(
&self,
func: P,
) { ... }
fn set_rubber_banding(&self, enable: bool) { ... }
fn set_search_column(&self, column: i32) { ... }
fn set_search_entry(&self, entry: Option<&impl IsA<Editable>>) { ... }
fn set_search_equal_func<P: Fn(&TreeModel, i32, &str, &TreeIter) -> bool + 'static>(
&self,
search_equal_func: P,
) { ... }
fn set_show_expanders(&self, enabled: bool) { ... }
fn set_tooltip_cell(
&self,
tooltip: &Tooltip,
path: Option<&TreePath>,
column: Option<&TreeViewColumn>,
cell: Option<&impl IsA<CellRenderer>>,
) { ... }
fn set_tooltip_column(&self, column: i32) { ... }
fn set_tooltip_row(&self, tooltip: &Tooltip, path: &TreePath) { ... }
fn unset_rows_drag_dest(&self) { ... }
fn unset_rows_drag_source(&self) { ... }
fn enable_grid_lines(&self) -> TreeViewGridLines { ... }
fn set_enable_grid_lines(&self, enable_grid_lines: TreeViewGridLines) { ... }
fn connect_columns_changed<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_cursor_changed<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_expand_collapse_cursor_row<F: Fn(&Self, bool, bool, bool) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn emit_expand_collapse_cursor_row(
&self,
object: bool,
p0: bool,
p1: bool,
) -> bool { ... }
fn connect_move_cursor<F: Fn(&Self, MovementStep, i32, bool, bool) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn emit_move_cursor(
&self,
step: MovementStep,
direction: i32,
extend: bool,
modify: bool,
) -> bool { ... }
fn connect_row_activated<F: Fn(&Self, &TreePath, Option<&TreeViewColumn>) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn emit_row_activated(
&self,
path: &TreePath,
column: Option<&TreeViewColumn>,
) { ... }
fn connect_row_collapsed<F: Fn(&Self, &TreeIter, &TreePath) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_row_expanded<F: Fn(&Self, &TreeIter, &TreePath) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_select_all<F: Fn(&Self) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn emit_select_all(&self) -> bool { ... }
fn connect_select_cursor_parent<F: Fn(&Self) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn emit_select_cursor_parent(&self) -> bool { ... }
fn connect_select_cursor_row<F: Fn(&Self, bool) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn emit_select_cursor_row(&self, object: bool) -> bool { ... }
fn connect_start_interactive_search<F: Fn(&Self) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn emit_start_interactive_search(&self) -> bool { ... }
fn connect_test_collapse_row<F: Fn(&Self, &TreeIter, &TreePath) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_test_expand_row<F: Fn(&Self, &TreeIter, &TreePath) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_toggle_cursor_row<F: Fn(&Self) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn emit_toggle_cursor_row(&self) -> bool { ... }
fn connect_unselect_all<F: Fn(&Self) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn emit_unselect_all(&self) -> bool { ... }
fn connect_activate_on_single_click_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_grid_lines_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_search_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_tree_lines_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_expander_column_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_fixed_height_mode_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_headers_clickable_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_headers_visible_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_hover_expand_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_hover_selection_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_level_indentation_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_model_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_reorderable_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_rubber_banding_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_search_column_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_show_expanders_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_tooltip_column_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}Since 4.10
Provided Methodsยง
Sourcefn append_column(&self, column: &TreeViewColumn) -> i32
๐Deprecated: Since 4.10
fn append_column(&self, column: &TreeViewColumn) -> i32
Since 4.10
property set to be GTK_TREE_VIEW_COLUMN_FIXED.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงcolumn
The TreeViewColumn to add.
ยงReturns
The number of columns in @self after appending.
Sourcefn collapse_all(&self)
๐Deprecated: Since 4.10
fn collapse_all(&self)
Since 4.10
Recursively collapses all visible, expanded nodes in @self.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
Sourcefn collapse_row(&self, path: &TreePath) -> bool
๐Deprecated: Since 4.10
fn collapse_row(&self, path: &TreePath) -> bool
Since 4.10
Sourcefn columns_autosize(&self)
๐Deprecated: Since 4.10
fn columns_autosize(&self)
Since 4.10
Resizes all columns to their optimal width. Only works after the treeview has been realized.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
Sourcefn convert_bin_window_to_tree_coords(&self, bx: i32, by: i32) -> (i32, i32)
๐Deprecated: Since 4.10
fn convert_bin_window_to_tree_coords(&self, bx: i32, by: i32) -> (i32, i32)
Since 4.10
Converts bin_window coordinates to coordinates for the tree (the full scrollable area of the tree).
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงbx
X coordinate relative to bin_window
ยงby
Y coordinate relative to bin_window
ยงReturns
ยงtx
return location for tree X coordinate
ยงty
return location for tree Y coordinate
Sourcefn convert_bin_window_to_widget_coords(&self, bx: i32, by: i32) -> (i32, i32)
๐Deprecated: Since 4.10
fn convert_bin_window_to_widget_coords(&self, bx: i32, by: i32) -> (i32, i32)
Since 4.10
Sourcefn convert_tree_to_bin_window_coords(&self, tx: i32, ty: i32) -> (i32, i32)
๐Deprecated: Since 4.10
fn convert_tree_to_bin_window_coords(&self, tx: i32, ty: i32) -> (i32, i32)
Since 4.10
Converts tree coordinates (coordinates in full scrollable area of the tree) to bin_window coordinates.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงtx
tree X coordinate
ยงty
tree Y coordinate
ยงReturns
ยงbx
return location for X coordinate relative to bin_window
ยงby
return location for Y coordinate relative to bin_window
Sourcefn convert_tree_to_widget_coords(&self, tx: i32, ty: i32) -> (i32, i32)
๐Deprecated: Since 4.10
fn convert_tree_to_widget_coords(&self, tx: i32, ty: i32) -> (i32, i32)
Since 4.10
Converts tree coordinates (coordinates in full scrollable area of the tree) to widget coordinates.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงtx
X coordinate relative to the tree
ยงty
Y coordinate relative to the tree
ยงReturns
ยงwx
return location for widget X coordinate
ยงwy
return location for widget Y coordinate
Sourcefn convert_widget_to_bin_window_coords(&self, wx: i32, wy: i32) -> (i32, i32)
๐Deprecated: Since 4.10
fn convert_widget_to_bin_window_coords(&self, wx: i32, wy: i32) -> (i32, i32)
Since 4.10
Converts widget coordinates to coordinates for the bin_window.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงwx
X coordinate relative to the widget
ยงwy
Y coordinate relative to the widget
ยงReturns
ยงbx
return location for bin_window X coordinate
ยงby
return location for bin_window Y coordinate
Sourcefn convert_widget_to_tree_coords(&self, wx: i32, wy: i32) -> (i32, i32)
๐Deprecated: Since 4.10
fn convert_widget_to_tree_coords(&self, wx: i32, wy: i32) -> (i32, i32)
Since 4.10
Converts widget coordinates to coordinates for the tree (the full scrollable area of the tree).
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงwx
X coordinate relative to the widget
ยงwy
Y coordinate relative to the widget
ยงReturns
ยงtx
return location for tree X coordinate
ยงty
return location for tree Y coordinate
Sourcefn create_row_drag_icon(&self, path: &TreePath) -> Option<Paintable>
๐Deprecated: Since 4.10
fn create_row_drag_icon(&self, path: &TreePath) -> Option<Paintable>
Since 4.10
Creates a cairo::Surface representation of the row at @path.
This image is used for a drag icon.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงpath
a TreePath in @self
ยงReturns
a newly-allocated surface of the drag icon.
Sourcefn enable_model_drag_dest(&self, formats: &ContentFormats, actions: DragAction)
๐Deprecated: Since 4.10
fn enable_model_drag_dest(&self, formats: &ContentFormats, actions: DragAction)
Since 4.10
Sourcefn enable_model_drag_source(
&self,
start_button_mask: ModifierType,
formats: &ContentFormats,
actions: DragAction,
)
๐Deprecated: Since 4.10
fn enable_model_drag_source( &self, start_button_mask: ModifierType, formats: &ContentFormats, actions: DragAction, )
Since 4.10
Turns @self into a drag source for automatic DND. Calling this
method sets TreeView:reorderable to false.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงstart_button_mask
Mask of allowed buttons to start drag
ยงformats
the target formats that the drag will support
ยงactions
the bitmask of possible actions for a drag from this widget
Sourcefn expand_all(&self)
๐Deprecated: Since 4.10
fn expand_all(&self)
Since 4.10
Recursively expands all nodes in the @self.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
Sourcefn expand_row(&self, path: &TreePath, open_all: bool) -> bool
๐Deprecated: Since 4.10
fn expand_row(&self, path: &TreePath, open_all: bool) -> bool
Since 4.10
Sourcefn expand_to_path(&self, path: &TreePath)
๐Deprecated: Since 4.10
fn expand_to_path(&self, path: &TreePath)
Since 4.10
Expands the row at @path. This will also expand all parent rows of @path as necessary.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงpath
path to a row.
Sourcefn activates_on_single_click(&self) -> bool
๐Deprecated: Since 4.10
fn activates_on_single_click(&self) -> bool
Since 4.10
Gets the setting set by gtk_tree_view_set_activate_on_single_click().
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงReturns
true if row-activated will be emitted on a single click
Sourcefn background_area(
&self,
path: Option<&TreePath>,
column: Option<&TreeViewColumn>,
) -> Rectangle
๐Deprecated: Since 4.10
fn background_area( &self, path: Option<&TreePath>, column: Option<&TreeViewColumn>, ) -> Rectangle
Since 4.10
Fills the bounding rectangle in bin_window coordinates for the cell at the
row specified by @path and the column specified by @column. If @path is
None, or points to a node not found in the tree, the @y and @height fields of
the rectangle will be filled with 0. If @column is None, the @x and @width
fields will be filled with 0. The returned rectangle is equivalent to the
@background_area passed to gtk_cell_renderer_render(). These background
areas tile to cover the entire bin window. Contrast with the @cell_area,
returned by gtk_tree_view_get_cell_area(), which returns only the cell
itself, excluding surrounding borders and the tree expander area.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงpath
a TreePath for the row, or None to get only horizontal coordinates
ยงcolumn
a TreeViewColumn for the column, or None to get only vertical coordinates
ยงReturns
ยงrect
rectangle to fill with cell background rect
Sourcefn cell_area(
&self,
path: Option<&TreePath>,
column: Option<&TreeViewColumn>,
) -> Rectangle
๐Deprecated: Since 4.10
fn cell_area( &self, path: Option<&TreePath>, column: Option<&TreeViewColumn>, ) -> Rectangle
Since 4.10
Fills the bounding rectangle in bin_window coordinates for the cell at the
row specified by @path and the column specified by @column. If @path is
None, or points to a path not currently displayed, the @y and @height fields
of the rectangle will be filled with 0. If @column is None, the @x and @width
fields will be filled with 0. The sum of all cell rects does not cover the
entire tree; there are extra pixels in between rows, for example. The
returned rectangle is equivalent to the @cell_area passed to
gtk_cell_renderer_render(). This function is only valid if @self is
realized.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงpath
a TreePath for the row, or None to get only horizontal coordinates
ยงcolumn
a TreeViewColumn for the column, or None to get only vertical coordinates
ยงReturns
ยงrect
rectangle to fill with cell rect
Sourcefn column(&self, n: i32) -> Option<TreeViewColumn>
๐Deprecated: Since 4.10
fn column(&self, n: i32) -> Option<TreeViewColumn>
Since 4.10
Gets the TreeViewColumn at the given position in the #tree_view.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงn
The position of the column, counting from 0.
ยงReturns
The TreeViewColumn, or None if the
position is outside the range of columns.
Sourcefn columns(&self) -> Vec<TreeViewColumn>
๐Deprecated: Since 4.10
fn columns(&self) -> Vec<TreeViewColumn>
Since 4.10
Returns a GList of all the TreeViewColumns currently in @self.
The returned list must be freed with g_list_free ().
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงReturns
A list of TreeViewColumns
Sourcefn cursor(&self) -> (Option<TreePath>, Option<TreeViewColumn>)
๐Deprecated: Since 4.10
fn cursor(&self) -> (Option<TreePath>, Option<TreeViewColumn>)
Since 4.10
t currently set, then *@path will be None. If no column
currently has focus, then *@focus_column will be None.
The returned TreePath must be freed with gtk_tree_path_free() when
you are done with it.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงReturns
ยงpath
A pointer to be filled with the current cursor path
ยงfocus_column
A pointer to be filled with the current focus column
Sourcefn dest_row_at_pos(
&self,
drag_x: i32,
drag_y: i32,
) -> Option<(Option<TreePath>, TreeViewDropPosition)>
๐Deprecated: Since 4.10
fn dest_row_at_pos( &self, drag_x: i32, drag_y: i32, ) -> Option<(Option<TreePath>, TreeViewDropPosition)>
Since 4.10
Determines the destination row for a given position. @drag_x and
@drag_y are expected to be in widget coordinates. This function is only
meaningful if @self is realized. Therefore this function will always
return false if @self is not realized or does not have a model.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงdrag_x
the position to determine the destination row for
ยงdrag_y
the position to determine the destination row for
ยงReturns
whether there is a row at the given position, true if this
is indeed the case.
ยงpath
Return location for the path of the highlighted row
ยงpos
Return location for the drop position, or
None
Sourcefn drag_dest_row(&self) -> (Option<TreePath>, TreeViewDropPosition)
๐Deprecated: Since 4.10
fn drag_dest_row(&self) -> (Option<TreePath>, TreeViewDropPosition)
Since 4.10
Sourcefn enables_search(&self) -> bool
๐Deprecated: Since 4.10
fn enables_search(&self) -> bool
Since 4.10
Returns whether or not the tree allows to start interactive searching by typing in text.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงReturns
whether or not to let the user search interactively
Sourcefn enables_tree_lines(&self) -> bool
๐Deprecated: Since 4.10
fn enables_tree_lines(&self) -> bool
Since 4.10
Sourcefn expander_column(&self) -> Option<TreeViewColumn>
๐Deprecated: Since 4.10
fn expander_column(&self) -> Option<TreeViewColumn>
Since 4.10
Returns the column that is the current expander column,
or None if none has been set.
This column has the expander arrow drawn next to it.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงReturns
The expander column.
Sourcefn is_fixed_height_mode(&self) -> bool
๐Deprecated: Since 4.10
fn is_fixed_height_mode(&self) -> bool
Since 4.10
Returns whether fixed height mode is turned on for @self.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงReturns
true if @self is in fixed height mode
Sourcefn grid_lines(&self) -> TreeViewGridLines
๐Deprecated: Since 4.10
fn grid_lines(&self) -> TreeViewGridLines
Since 4.10
Returns which grid lines are enabled in @self.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงReturns
a TreeViewGridLines value indicating which grid lines
are enabled.
Sourcefn is_headers_clickable(&self) -> bool
๐Deprecated: Since 4.10
fn is_headers_clickable(&self) -> bool
Since 4.10
Sourcefn is_headers_visible(&self) -> bool
๐Deprecated: Since 4.10
fn is_headers_visible(&self) -> bool
Since 4.10
Returns true if the headers on the @self are visible.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงReturns
Whether the headers are visible or not.
Sourcefn hover_expands(&self) -> bool
๐Deprecated: Since 4.10
fn hover_expands(&self) -> bool
Since 4.10
Returns whether hover expansion mode is turned on for @self.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงReturns
true if @self is in hover expansion mode
Sourcefn is_hover_selection(&self) -> bool
๐Deprecated: Since 4.10
fn is_hover_selection(&self) -> bool
Since 4.10
Returns whether hover selection mode is turned on for @self.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงReturns
true if @self is in hover selection mode
Sourcefn level_indentation(&self) -> i32
๐Deprecated: Since 4.10
fn level_indentation(&self) -> i32
Since 4.10
Returns the amount, in pixels, of extra indentation for child levels in @self.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงReturns
the amount of extra indentation for child levels in @self. A return value of 0 means that this feature is disabled.
Sourcefn n_columns(&self) -> u32
๐Deprecated: Since 4.10
fn n_columns(&self) -> u32
Since 4.10
Queries the number of columns in the given @self.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงReturns
The number of columns in the @self
Sourcefn path_at_pos(
&self,
x: i32,
y: i32,
) -> Option<(Option<TreePath>, Option<TreeViewColumn>, i32, i32)>
๐Deprecated: Since 4.10
fn path_at_pos( &self, x: i32, y: i32, ) -> Option<(Option<TreePath>, Option<TreeViewColumn>, i32, i32)>
Since 4.10
Finds the path at the point (@x, @y), relative to bin_window coordinates.
That is, @x and @y are relative to an events coordinates. Widget-relative
coordinates must be converted using
gtk_tree_view_convert_widget_to_bin_window_coords(). It is primarily for
things like popup menus. If @path is non-None, then it will be filled
with the TreePath at that point. This path should be freed with
gtk_tree_path_free(). If @column is non-None, then it will be filled
with the column at that point. @cell_x and @cell_y return the coordinates
relative to the cell background (i.e. the @background_area passed to
gtk_cell_renderer_render()). This function is only meaningful if
@self is realized. Therefore this function will always return false
if @self is not realized or does not have a model.
For converting widget coordinates (eg. the ones you get from GtkWidget::query-tooltip), please see gtk_tree_view_convert_widget_to_bin_window_coords().
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงx
The x position to be identified (relative to bin_window).
ยงy
The y position to be identified (relative to bin_window).
ยงReturns
true if a row exists at that coordinate.
ยงpath
A pointer to a TreePath
pointer to be filled in
ยงcolumn
A pointer to
a TreeViewColumn pointer to be filled in
ยงcell_x
A pointer where the X coordinate relative to the cell can be placed
ยงcell_y
A pointer where the Y coordinate relative to the cell can be placed
Sourcefn is_reorderable(&self) -> bool
๐Deprecated: Since 4.10
fn is_reorderable(&self) -> bool
Since 4.10
Retrieves whether the user can reorder the tree via drag-and-drop. See gtk_tree_view_set_reorderable().
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงReturns
true if the tree can be reordered.
Sourcefn is_rubber_banding(&self) -> bool
๐Deprecated: Since 4.10
fn is_rubber_banding(&self) -> bool
Since 4.10
Returns whether rubber banding is turned on for @self. If the
selection mode is SelectionMode::Multiple, rubber banding will allow the
user to select multiple rows by dragging the mouse.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงReturns
true if rubber banding in @self is enabled.
Sourcefn search_column(&self) -> i32
๐Deprecated: Since 4.10
fn search_column(&self) -> i32
Since 4.10
Gets the column searched on by the interactive search code.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงReturns
the column the interactive search code searches in.
Sourcefn search_entry(&self) -> Option<Editable>
๐Deprecated: Since 4.10
fn search_entry(&self) -> Option<Editable>
Since 4.10
Sourcefn selection(&self) -> TreeSelection
๐Deprecated: Since 4.10
fn selection(&self) -> TreeSelection
Since 4.10
Gets the TreeSelection associated with @self.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงReturns
A TreeSelection object.
Sourcefn shows_expanders(&self) -> bool
๐Deprecated: Since 4.10
fn shows_expanders(&self) -> bool
Since 4.10
Sourcefn tooltip_column(&self) -> i32
๐Deprecated: Since 4.10
fn tooltip_column(&self) -> i32
Since 4.10
s rows.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงReturns
the index of the tooltip column that is currently being used, or -1 if this is disabled.
Sourcefn tooltip_context(
&self,
x: i32,
y: i32,
keyboard_tip: bool,
) -> Option<(Option<TreeModel>, TreePath, TreeIter)>
๐Deprecated: Since 4.10
fn tooltip_context( &self, x: i32, y: i32, keyboard_tip: bool, ) -> Option<(Option<TreeModel>, TreePath, TreeIter)>
Since 4.10
s bin_window if @keyboard_tooltip is false.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงx
the x coordinate (relative to widget coordinates)
ยงy
the y coordinate (relative to widget coordinates)
ยงkeyboard_tip
whether this is a keyboard tooltip or not
ยงReturns
whether or not the given tooltip context points to a row
ยงmodel
a pointer to
receive a TreeModel
ยงpath
a pointer to receive a TreePath
ยงiter
a pointer to receive a TreeIter
Sourcefn visible_range(&self) -> Option<(TreePath, TreePath)>
๐Deprecated: Since 4.10
fn visible_range(&self) -> Option<(TreePath, TreePath)>
Since 4.10
Sets @start_path and @end_path to be the first and last visible path. Note that there may be invisible paths in between.
The paths should be freed with gtk_tree_path_free() after use.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงReturns
true, if valid paths were placed in @start_path and @end_path.
ยงstart_path
Return location for start of region
ยงend_path
Return location for end of region
Sourcefn visible_rect(&self) -> Rectangle
๐Deprecated: Since 4.10
fn visible_rect(&self) -> Rectangle
Since 4.10
Fills @visible_rect with the currently-visible region of the buffer, in tree coordinates. Convert to bin_window coordinates with gtk_tree_view_convert_tree_to_bin_window_coords(). Tree coordinates start at 0,0 for row 0 of the tree, and cover the entire scrollable area of the tree.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงReturns
ยงvisible_rect
rectangle to fill
Sourcefn insert_column(&self, column: &TreeViewColumn, position: i32) -> i32
๐Deprecated: Since 4.10
fn insert_column(&self, column: &TreeViewColumn, position: i32) -> i32
Since 4.10
property set to be GTK_TREE_VIEW_COLUMN_FIXED.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงcolumn
The TreeViewColumn to be inserted.
ยงposition
The position to insert @column in.
ยงReturns
The number of columns in @self after insertion.
Sourcefn insert_column_with_data_func<P: Fn(&TreeViewColumn, &CellRenderer, &TreeModel, &TreeIter) + 'static>(
&self,
position: i32,
title: &str,
cell: &impl IsA<CellRenderer>,
func: P,
) -> i32
๐Deprecated: Since 4.10
fn insert_column_with_data_func<P: Fn(&TreeViewColumn, &CellRenderer, &TreeModel, &TreeIter) + 'static>( &self, position: i32, title: &str, cell: &impl IsA<CellRenderer>, func: P, ) -> i32
Since 4.10
property set to be GTK_TREE_VIEW_COLUMN_FIXED.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงposition
Position to insert, -1 for append
ยงtitle
column title
ยงcell
cell renderer for column
ยงfunc
function to set attributes of cell renderer
ยงReturns
number of columns in the tree view post-insert
Sourcefn is_blank_at_pos(
&self,
x: i32,
y: i32,
) -> Option<(Option<TreePath>, Option<TreeViewColumn>, i32, i32)>
๐Deprecated: Since 4.10
fn is_blank_at_pos( &self, x: i32, y: i32, ) -> Option<(Option<TreePath>, Option<TreeViewColumn>, i32, i32)>
Since 4.10
Determine whether the point (@x, @y) in @self is blank, that is no cell content nor an expander arrow is drawn at the location. If so, the location can be considered as the background. You might wish to take special action on clicks on the background, such as clearing a current selection, having a custom context menu or starting rubber banding.
The @x and @y coordinate that are provided must be relative to bin_window coordinates. Widget-relative coordinates must be converted using gtk_tree_view_convert_widget_to_bin_window_coords().
For converting widget coordinates (eg. the ones you get from GtkWidget::query-tooltip), please see gtk_tree_view_convert_widget_to_bin_window_coords().
The @path, @column, @cell_x and @cell_y arguments will be filled in likewise as for gtk_tree_view_get_path_at_pos(). Please see gtk_tree_view_get_path_at_pos() for more information.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงx
The x position to be identified (relative to bin_window)
ยงy
The y position to be identified (relative to bin_window)
ยงReturns
true if the area at the given coordinates is blank,
false otherwise.
ยงpath
A pointer to a TreePath pointer to
be filled in
ยงcolumn
A pointer to a
TreeViewColumn pointer to be filled in
ยงcell_x
A pointer where the X coordinate relative to the cell can be placed
ยงcell_y
A pointer where the Y coordinate relative to the cell can be placed
Sourcefn is_rubber_banding_active(&self) -> bool
๐Deprecated: Since 4.10
fn is_rubber_banding_active(&self) -> bool
Since 4.10
Returns whether a rubber banding operation is currently being done in @self.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงReturns
true if a rubber banding operation is currently being
done in @self.
Sourcefn map_expanded_rows<P: FnMut(&TreeView, &TreePath)>(&self, func: P)
๐Deprecated: Since 4.10
fn map_expanded_rows<P: FnMut(&TreeView, &TreePath)>(&self, func: P)
Since 4.10
Calls @func on all expanded rows.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงfunc
A function to be called
Sourcefn move_column_after(
&self,
column: &TreeViewColumn,
base_column: Option<&TreeViewColumn>,
)
๐Deprecated: Since 4.10
fn move_column_after( &self, column: &TreeViewColumn, base_column: Option<&TreeViewColumn>, )
Since 4.10
Moves @column to be after to @base_column. If @base_column is None, then
@column is placed in the first position.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงcolumn
The TreeViewColumn to be moved.
ยงbase_column
The TreeViewColumn to be moved relative to
Sourcefn remove_column(&self, column: &TreeViewColumn) -> i32
๐Deprecated: Since 4.10
fn remove_column(&self, column: &TreeViewColumn) -> i32
Since 4.10
Removes @column from @self.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงcolumn
The TreeViewColumn to remove.
ยงReturns
The number of columns in @self after removing.
Sourcefn row_activated(&self, path: &TreePath, column: Option<&TreeViewColumn>)
๐Deprecated: Since 4.10
fn row_activated(&self, path: &TreePath, column: Option<&TreeViewColumn>)
Since 4.10
Activates the cell determined by @path and @column.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงpath
The TreePath to be activated.
ยงcolumn
The TreeViewColumn to be activated.
Sourcefn row_expanded(&self, path: &TreePath) -> bool
๐Deprecated: Since 4.10
fn row_expanded(&self, path: &TreePath) -> bool
Since 4.10
Sourcefn scroll_to_cell(
&self,
path: Option<&TreePath>,
column: Option<&TreeViewColumn>,
use_align: bool,
row_align: f32,
col_align: f32,
)
๐Deprecated: Since 4.10
fn scroll_to_cell( &self, path: Option<&TreePath>, column: Option<&TreeViewColumn>, use_align: bool, row_align: f32, col_align: f32, )
Since 4.10
Moves the alignments of @self to the position specified by @column and
@path. If @column is None, then no horizontal scrolling occurs. Likewise,
if @path is None no vertical scrolling occurs. At a minimum, one of @column
or @path need to be non-None. @row_align determines where the row is
placed, and @col_align determines where @column is placed. Both are expected
to be between 0.0 and 1.0. 0.0 means left/top alignment, 1.0 means
right/bottom alignment, 0.5 means center.
If @use_align is false, then the alignment arguments are ignored, and the
tree does the minimum amount of work to scroll the cell onto the screen.
This means that the cell will be scrolled to the edge closest to its current
position. If the cell is currently visible on the screen, nothing is done.
This function only works if the model is set, and @path is a valid row on the model. If the model changes before the @self is realized, the centered path will be modified to reflect this change.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงpath
The path of the row to move to
ยงcolumn
The TreeViewColumn to move horizontally to
ยงuse_align
whether to use alignment arguments, or false.
ยงrow_align
The vertical alignment of the row specified by @path.
ยงcol_align
The horizontal alignment of the column specified by @column.
Sourcefn scroll_to_point(&self, tree_x: i32, tree_y: i32)
๐Deprecated: Since 4.10
fn scroll_to_point(&self, tree_x: i32, tree_y: i32)
Since 4.10
t scrolled.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงtree_x
X coordinate of new top-left pixel of visible area, or -1
ยงtree_y
Y coordinate of new top-left pixel of visible area, or -1
Sourcefn set_activate_on_single_click(&self, single: bool)
๐Deprecated: Since 4.10
fn set_activate_on_single_click(&self, single: bool)
Since 4.10
Sourcefn set_column_drag_function(
&self,
func: Option<Box_<dyn Fn(&TreeView, &TreeViewColumn, &TreeViewColumn, &TreeViewColumn) -> bool + 'static>>,
)
๐Deprecated: Since 4.10
fn set_column_drag_function( &self, func: Option<Box_<dyn Fn(&TreeView, &TreeViewColumn, &TreeViewColumn, &TreeViewColumn) -> bool + 'static>>, )
Since 4.10
Sets a user function for determining where a column may be dropped when
dragged. This function is called on every column pair in turn at the
beginning of a column drag to determine where a drop can take place. The
arguments passed to @func are: the @self, the TreeViewColumn being
dragged, the two TreeViewColumns determining the drop spot, and
@user_data. If either of the TreeViewColumn arguments for the drop spot
are None, then they indicate an edge. If @func is set to be None, then
@self reverts to the default behavior of allowing all columns to be
dropped everywhere.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงfunc
A function to determine which columns are reorderable
Sourcefn set_cursor(
&self,
path: &TreePath,
focus_column: Option<&TreeViewColumn>,
start_editing: bool,
)
๐Deprecated: Since 4.10
fn set_cursor( &self, path: &TreePath, focus_column: Option<&TreeViewColumn>, start_editing: bool, )
Since 4.10
s attention on a particular row. If
@focus_column is not None, then focus is given to the column specified by
it. Additionally, if @focus_column is specified, and @start_editing is
true, then editing should be started in the specified cell.
This function is often followed by @gtk_widget_grab_focus (@self)
in order to give keyboard focus to the widget. Please note that editing
can only happen when the widget is realized.
If @path is invalid for @model, the current cursor (if any) will be unset and the function will return without failing.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงpath
A TreePath
ยงfocus_column
ยงstart_editing
true if the specified cell should start being edited.
Sourcefn set_cursor_on_cell(
&self,
path: &TreePath,
focus_column: Option<&TreeViewColumn>,
focus_cell: Option<&impl IsA<CellRenderer>>,
start_editing: bool,
)
๐Deprecated: Since 4.10
fn set_cursor_on_cell( &self, path: &TreePath, focus_column: Option<&TreeViewColumn>, focus_cell: Option<&impl IsA<CellRenderer>>, start_editing: bool, )
Since 4.10
s attention on a particular row. If
@focus_column is not None, then focus is given to the column specified by
it. If @focus_column and @focus_cell are not None, and @focus_column
contains 2 or more editable or activatable cells, then focus is given to
the cell specified by @focus_cell. Additionally, if @focus_column is
specified, and @start_editing is true, then editing should be started in
the specified cell. This function is often followed by
@gtk_widget_grab_focus (@self) in order to give keyboard focus to the
widget. Please note that editing can only happen when the widget is
realized.
If @path is invalid for @model, the current cursor (if any) will be unset and the function will return without failing.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงpath
A TreePath
ยงfocus_column
ยงfocus_cell
ยงstart_editing
true if the specified cell should start being edited.
Sourcefn set_drag_dest_row(&self, path: Option<&TreePath>, pos: TreeViewDropPosition)
๐Deprecated: Since 4.10
fn set_drag_dest_row(&self, path: Option<&TreePath>, pos: TreeViewDropPosition)
Since 4.10
Sourcefn set_enable_search(&self, enable_search: bool)
๐Deprecated: Since 4.10
fn set_enable_search(&self, enable_search: bool)
Since 4.10
key binding.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงenable_search
true, if the user can search interactively
Sourcefn set_enable_tree_lines(&self, enabled: bool)
๐Deprecated: Since 4.10
fn set_enable_tree_lines(&self, enabled: bool)
Since 4.10
Sourcefn set_expander_column(&self, column: Option<&TreeViewColumn>)
๐Deprecated: Since 4.10
fn set_expander_column(&self, column: Option<&TreeViewColumn>)
Since 4.10
Sets the column to draw the expander arrow at. It must be in @self.
If @column is None, then the expander arrow is always at the first
visible column.
If you do not want expander arrow to appear in your tree, set the expander column to a hidden column.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงcolumn
None, or the column to draw the expander arrow at.
Sourcefn set_fixed_height_mode(&self, enable: bool)
๐Deprecated: Since 4.10
fn set_fixed_height_mode(&self, enable: bool)
Since 4.10
Enables or disables the fixed height mode of @self.
Fixed height mode speeds up TreeView by assuming that all
rows have the same height.
Only enable this option if all rows are the same height and all
columns are of type TreeViewColumnSizing::Fixed.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงenable
true to enable fixed height mode
Sourcefn set_grid_lines(&self, grid_lines: TreeViewGridLines)
๐Deprecated: Since 4.10
fn set_grid_lines(&self, grid_lines: TreeViewGridLines)
Since 4.10
Sets which grid lines to draw in @self.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงgrid_lines
a TreeViewGridLines value indicating which grid lines to
enable.
Sourcefn set_headers_clickable(&self, setting: bool)
๐Deprecated: Since 4.10
fn set_headers_clickable(&self, setting: bool)
Since 4.10
Allow the column title buttons to be clicked.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงsetting
true if the columns are clickable.
Sourcefn set_headers_visible(&self, headers_visible: bool)
๐Deprecated: Since 4.10
fn set_headers_visible(&self, headers_visible: bool)
Since 4.10
Sets the visibility state of the headers.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงheaders_visible
true if the headers are visible
Sourcefn set_hover_expand(&self, expand: bool)
๐Deprecated: Since 4.10
fn set_hover_expand(&self, expand: bool)
Since 4.10
Enables or disables the hover expansion mode of @self. Hover expansion makes rows expand or collapse if the pointer moves over them.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงexpand
true to enable hover selection mode
Sourcefn set_hover_selection(&self, hover: bool)
๐Deprecated: Since 4.10
fn set_hover_selection(&self, hover: bool)
Since 4.10
Enables or disables the hover selection mode of @self.
Hover selection makes the selected row follow the pointer.
Currently, this works only for the selection modes
SelectionMode::Single and SelectionMode::Browse.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงhover
true to enable hover selection mode
Sourcefn set_level_indentation(&self, indentation: i32)
๐Deprecated: Since 4.10
fn set_level_indentation(&self, indentation: i32)
Since 4.10
Sets the amount of extra indentation for child levels to use in @self in addition to the default indentation. The value should be specified in pixels, a value of 0 disables this feature and in this case only the default indentation will be used. This does not have any visible effects for lists.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงindentation
the amount, in pixels, of extra indentation in @self.
Sourcefn set_reorderable(&self, reorderable: bool)
๐Deprecated: Since 4.10
fn set_reorderable(&self, reorderable: bool)
Since 4.10
s GtkTreeModel::row-inserted
and GtkTreeModel::row-deleted signals. The reordering is implemented
by setting up the tree view as a drag source and destination.
Therefore, drag and drop can not be used in a reorderable view for any
other purpose.
This function does not give you any degree of control over the order โ any reordering is allowed. If more control is needed, you should probably handle drag and drop manually.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงreorderable
true, if the tree can be reordered.
Sourcefn set_row_separator_func<P: Fn(&TreeModel, &TreeIter) -> bool + 'static>(
&self,
func: P,
)
๐Deprecated: Since 4.10
fn set_row_separator_func<P: Fn(&TreeModel, &TreeIter) -> bool + 'static>( &self, func: P, )
Since 4.10
Sourcefn set_rubber_banding(&self, enable: bool)
๐Deprecated: Since 4.10
fn set_rubber_banding(&self, enable: bool)
Since 4.10
Enables or disables rubber banding in @self. If the selection mode
is SelectionMode::Multiple, rubber banding will allow the user to select
multiple rows by dragging the mouse.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงenable
true to enable rubber banding
Sourcefn set_search_column(&self, column: i32)
๐Deprecated: Since 4.10
fn set_search_column(&self, column: i32)
Since 4.10
key binding to bring up search popup. The enable-search property controls whether simply typing text will also start an interactive search.
Note that @column refers to a column of the current model. The search column is reset to -1 when the model is changed.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงcolumn
the column of the model to search in, or -1 to disable searching
Sourcefn set_search_entry(&self, entry: Option<&impl IsA<Editable>>)
๐Deprecated: Since 4.10
fn set_search_entry(&self, entry: Option<&impl IsA<Editable>>)
Since 4.10
Sets the entry which the interactive search code will use for this
@self. This is useful when you want to provide a search entry
in our interface at all time at a fixed position. Passing None for
@entry will make the interactive search code use the built-in popup
entry again.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงentry
the entry the interactive search code of @self should use
Sourcefn set_search_equal_func<P: Fn(&TreeModel, i32, &str, &TreeIter) -> bool + 'static>(
&self,
search_equal_func: P,
)
๐Deprecated: Since 4.10
fn set_search_equal_func<P: Fn(&TreeModel, i32, &str, &TreeIter) -> bool + 'static>( &self, search_equal_func: P, )
Since 4.10
Sourcefn set_show_expanders(&self, enabled: bool)
๐Deprecated: Since 4.10
fn set_show_expanders(&self, enabled: bool)
Since 4.10
Sets whether to draw and enable expanders and indent child rows in @self. When disabled there will be no expanders visible in trees and there will be no way to expand and collapse rows by default. Also note that hiding the expanders will disable the default indentation. You can set a custom indentation in this case using gtk_tree_view_set_level_indentation(). This does not have any visible effects for lists.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงenabled
Sourcefn set_tooltip_cell(
&self,
tooltip: &Tooltip,
path: Option<&TreePath>,
column: Option<&TreeViewColumn>,
cell: Option<&impl IsA<CellRenderer>>,
)
๐Deprecated: Since 4.10
fn set_tooltip_cell( &self, tooltip: &Tooltip, path: Option<&TreePath>, column: Option<&TreeViewColumn>, cell: Option<&impl IsA<CellRenderer>>, )
Since 4.10
Sets the tip area of @tooltip to the area @path, @column and @cell have
in common. For example if @path is None and @column is set, the tip
area will be set to the full area covered by @column. See also
gtk_tooltip_set_tip_area().
Note that if @path is not specified and @cell is set and part of a column containing the expander, the tooltip might not show and hide at the correct position. In such cases @path must be set to the current node under the mouse cursor for this function to operate correctly.
See also gtk_tree_view_set_tooltip_column() for a simpler alternative.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงtooltip
a Tooltip
ยงpath
a TreePath
ยงcolumn
ยงcell
Sourcefn set_tooltip_column(&self, column: i32)
๐Deprecated: Since 4.10
fn set_tooltip_column(&self, column: i32)
Since 4.10
, etc have to be escaped in the text.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
ยงcolumn
s model
Sourcefn set_tooltip_row(&self, tooltip: &Tooltip, path: &TreePath)
๐Deprecated: Since 4.10
fn set_tooltip_row(&self, tooltip: &Tooltip, path: &TreePath)
Since 4.10
Sourcefn unset_rows_drag_dest(&self)
๐Deprecated: Since 4.10
fn unset_rows_drag_dest(&self)
Since 4.10
Undoes the effect of
gtk_tree_view_enable_model_drag_dest(). Calling this method sets
TreeView:reorderable to false.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
Sourcefn unset_rows_drag_source(&self)
๐Deprecated: Since 4.10
fn unset_rows_drag_source(&self)
Since 4.10
Undoes the effect of
gtk_tree_view_enable_model_drag_source(). Calling this method sets
TreeView:reorderable to false.
ยงDeprecated since 4.10
Use ListView or ColumnView instead
fn enable_grid_lines(&self) -> TreeViewGridLines
Since 4.10
fn set_enable_grid_lines(&self, enable_grid_lines: TreeViewGridLines)
Since 4.10
Sourcefn connect_columns_changed<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_columns_changed<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
The number of columns of the treeview has changed.
Sourcefn connect_cursor_changed<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_cursor_changed<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
The position of the cursor (focused cell) has changed.
fn connect_expand_collapse_cursor_row<F: Fn(&Self, bool, bool, bool) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn emit_expand_collapse_cursor_row( &self, object: bool, p0: bool, p1: bool, ) -> bool
Since 4.10
Sourcefn connect_move_cursor<F: Fn(&Self, MovementStep, i32, bool, bool) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_move_cursor<F: Fn(&Self, MovementStep, i32, bool, bool) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
The TreeView::move-cursor signal is a [keybinding
signal]SignalAction which gets emitted when the user
presses one of the cursor keys.
Applications should not connect to it, but may emit it with
g_signal_emit_by_name() if they need to control the cursor
programmatically. In contrast to gtk_tree_view_set_cursor() and
gtk_tree_view_set_cursor_on_cell() when moving horizontally
TreeView::move-cursor does not reset the current selection.
ยงstep
the granularity of the move, as a MovementStep.
MovementStep::LogicalPositions, MovementStep::VisualPositions,
MovementStep::DisplayLines, MovementStep::Pages and
MovementStep::BufferEnds are supported.
MovementStep::LogicalPositions and MovementStep::VisualPositions
are treated identically.
ยงdirection
the direction to move: +1 to move forwards; -1 to move backwards. The resulting movement is undefined for all other values.
ยงextend
whether to extend the selection
ยงmodify
whether to modify the selection
ยงReturns
fn emit_move_cursor( &self, step: MovementStep, direction: i32, extend: bool, modify: bool, ) -> bool
Since 4.10
Sourcefn connect_row_activated<F: Fn(&Self, &TreePath, Option<&TreeViewColumn>) + 'static>(
&self,
f: F,
) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_row_activated<F: Fn(&Self, &TreePath, Option<&TreeViewColumn>) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
is pressed.
For selection handling refer to the
tree widget conceptual overview
as well as TreeSelection.
ยงpath
the TreePath for the activated row
ยงcolumn
the TreeViewColumn in which the activation occurred
fn emit_row_activated(&self, path: &TreePath, column: Option<&TreeViewColumn>)
Since 4.10
Sourcefn connect_row_collapsed<F: Fn(&Self, &TreeIter, &TreePath) + 'static>(
&self,
f: F,
) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_row_collapsed<F: Fn(&Self, &TreeIter, &TreePath) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
Sourcefn connect_row_expanded<F: Fn(&Self, &TreeIter, &TreePath) + 'static>(
&self,
f: F,
) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_row_expanded<F: Fn(&Self, &TreeIter, &TreePath) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn connect_select_all<F: Fn(&Self) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn emit_select_all(&self) -> bool
Since 4.10
fn connect_select_cursor_parent<F: Fn(&Self) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn emit_select_cursor_parent(&self) -> bool
Since 4.10
fn connect_select_cursor_row<F: Fn(&Self, bool) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn emit_select_cursor_row(&self, object: bool) -> bool
Since 4.10
fn connect_start_interactive_search<F: Fn(&Self) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn emit_start_interactive_search(&self) -> bool
Since 4.10
Sourcefn connect_test_collapse_row<F: Fn(&Self, &TreeIter, &TreePath) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_test_collapse_row<F: Fn(&Self, &TreeIter, &TreePath) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
Sourcefn connect_test_expand_row<F: Fn(&Self, &TreeIter, &TreePath) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_test_expand_row<F: Fn(&Self, &TreeIter, &TreePath) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn connect_toggle_cursor_row<F: Fn(&Self) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn emit_toggle_cursor_row(&self) -> bool
Since 4.10
fn connect_unselect_all<F: Fn(&Self) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn emit_unselect_all(&self) -> bool
Since 4.10
fn connect_activate_on_single_click_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn connect_enable_grid_lines_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn connect_enable_search_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn connect_enable_tree_lines_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn connect_expander_column_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn connect_fixed_height_mode_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn connect_headers_clickable_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn connect_headers_visible_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn connect_hover_expand_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn connect_hover_selection_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn connect_level_indentation_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn connect_model_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Since 4.10
fn connect_reorderable_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn connect_rubber_banding_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn connect_search_column_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn connect_show_expanders_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
fn connect_tooltip_column_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
Dyn Compatibilityยง
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".