Struct gtk::TreeView
[−]
pub struct TreeView(_, _);
Methods
impl TreeView
[src]
fn new() -> TreeView
fn new_with_model<P: IsA<TreeModel>>(model: &P) -> TreeView
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<Surface>
fn expand_all(&self)
fn expand_row(&self, path: &TreePath, open_all: bool) -> bool
fn expand_to_path(&self, path: &TreePath)
fn get_background_area<'a, 'b, P: Into<Option<&'a TreePath>>, Q: Into<Option<&'b TreeViewColumn>>>(
&self,
path: P,
column: Q
) -> Rectangle
&self,
path: P,
column: Q
) -> Rectangle
fn get_bin_window(&self) -> Option<Window>
fn get_cell_area<'a, 'b, P: Into<Option<&'a TreePath>>, Q: Into<Option<&'b TreeViewColumn>>>(
&self,
path: P,
column: Q
) -> Rectangle
&self,
path: P,
column: Q
) -> Rectangle
fn get_column(&self, n: i32) -> Option<TreeViewColumn>
fn get_columns(&self) -> Vec<TreeViewColumn>
fn get_cursor(&self) -> (Option<TreePath>, Option<TreeViewColumn>)
fn get_dest_row_at_pos(
&self,
drag_x: i32,
drag_y: i32
) -> Option<(Option<TreePath>, TreeViewDropPosition)>
&self,
drag_x: i32,
drag_y: i32
) -> Option<(Option<TreePath>, TreeViewDropPosition)>
fn get_drag_dest_row(&self) -> (Option<TreePath>, TreeViewDropPosition)
fn get_enable_search(&self) -> bool
fn get_enable_tree_lines(&self) -> bool
fn get_expander_column(&self) -> Option<TreeViewColumn>
fn get_fixed_height_mode(&self) -> bool
fn get_grid_lines(&self) -> TreeViewGridLines
fn get_headers_clickable(&self) -> bool
fn get_headers_visible(&self) -> bool
fn get_hover_expand(&self) -> bool
fn get_hover_selection(&self) -> bool
fn get_level_indentation(&self) -> i32
fn get_model(&self) -> Option<TreeModel>
fn get_n_columns(&self) -> u32
fn get_path_at_pos(
&self,
x: i32,
y: i32
) -> Option<(Option<TreePath>, Option<TreeViewColumn>, i32, i32)>
&self,
x: i32,
y: i32
) -> Option<(Option<TreePath>, Option<TreeViewColumn>, i32, i32)>
fn get_reorderable(&self) -> bool
fn get_rubber_banding(&self) -> bool
fn get_rules_hint(&self) -> bool
fn get_search_column(&self) -> i32
fn get_search_entry(&self) -> Option<Entry>
fn get_selection(&self) -> TreeSelection
fn get_show_expanders(&self) -> bool
fn get_tooltip_column(&self) -> i32
fn get_tooltip_context(
&self,
x: &mut i32,
y: &mut i32,
keyboard_tip: bool
) -> Option<(Option<TreeModel>, TreePath, TreeIter)>
&self,
x: &mut i32,
y: &mut i32,
keyboard_tip: bool
) -> Option<(Option<TreeModel>, TreePath, TreeIter)>
fn get_visible_range(&self) -> Option<(TreePath, TreePath)>
fn get_visible_rect(&self) -> Rectangle
fn insert_column(&self, column: &TreeViewColumn, position: i32) -> i32
fn is_blank_at_pos(
&self,
x: i32,
y: i32
) -> Option<(TreePath, TreeViewColumn, i32, i32)>
&self,
x: i32,
y: i32
) -> Option<(TreePath, TreeViewColumn, i32, i32)>
fn is_rubber_banding_active(&self) -> bool
fn move_column_after<'a, P: Into<Option<&'a TreeViewColumn>>>(
&self,
column: &TreeViewColumn,
base_column: P
)
&self,
column: &TreeViewColumn,
base_column: P
)
fn remove_column(&self, column: &TreeViewColumn) -> i32
fn row_activated(&self, path: &TreePath, column: &TreeViewColumn)
fn row_expanded(&self, path: &TreePath) -> bool
fn scroll_to_cell<'a, 'b, P: Into<Option<&'a TreePath>>, Q: Into<Option<&'b TreeViewColumn>>>(
&self,
path: P,
column: Q,
use_align: bool,
row_align: f32,
col_align: f32
)
&self,
path: P,
column: Q,
use_align: bool,
row_align: f32,
col_align: f32
)
fn scroll_to_point(&self, tree_x: i32, tree_y: i32)
fn set_cursor<'a, P: Into<Option<&'a TreeViewColumn>>>(
&self,
path: &TreePath,
focus_column: P,
start_editing: bool
)
&self,
path: &TreePath,
focus_column: P,
start_editing: bool
)
fn set_cursor_on_cell<'a, 'b, P: Into<Option<&'a TreeViewColumn>>, Q: IsA<CellRenderer> + 'b, R: Into<Option<&'b Q>>>(
&self,
path: &TreePath,
focus_column: P,
focus_cell: R,
start_editing: bool
)
&self,
path: &TreePath,
focus_column: P,
focus_cell: R,
start_editing: bool
)
fn set_drag_dest_row<'a, P: Into<Option<&'a TreePath>>>(
&self,
path: P,
pos: TreeViewDropPosition
)
&self,
path: P,
pos: TreeViewDropPosition
)
fn set_enable_search(&self, enable_search: bool)
fn set_enable_tree_lines(&self, enabled: bool)
fn set_expander_column(&self, column: &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<'a, P: IsA<TreeModel> + 'a, Q: Into<Option<&'a P>>>(
&self,
model: Q
)
&self,
model: Q
)
fn set_reorderable(&self, reorderable: bool)
fn set_rubber_banding(&self, enable: bool)
fn set_rules_hint(&self, setting: bool)
fn set_search_column(&self, column: i32)
fn set_search_entry<'a, P: IsA<Entry> + 'a, Q: Into<Option<&'a P>>>(
&self,
entry: Q
)
&self,
entry: Q
)
fn set_show_expanders(&self, enabled: bool)
fn set_tooltip_cell<'a, 'b, 'c, P: Into<Option<&'a TreePath>>, Q: Into<Option<&'b TreeViewColumn>>, R: IsA<CellRenderer> + 'c, S: Into<Option<&'c R>>>(
&self,
tooltip: &Tooltip,
path: P,
column: Q,
cell: S
)
&self,
tooltip: &Tooltip,
path: P,
column: Q,
cell: S
)
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 get_property_enable_grid_lines(&self) -> TreeViewGridLines
fn set_property_enable_grid_lines(&self, enable_grid_lines: TreeViewGridLines)
fn set_property_ubuntu_almost_fixed_height_mode(
&self,
ubuntu_almost_fixed_height_mode: bool
)
&self,
ubuntu_almost_fixed_height_mode: bool
)
fn connect_columns_changed<F: Fn(&TreeView) + 'static>(&self, f: F) -> u64
fn connect_cursor_changed<F: Fn(&TreeView) + 'static>(&self, f: F) -> u64
fn connect_expand_collapse_cursor_row<F: Fn(&TreeView, bool, bool, bool) -> bool + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_move_cursor<F: Fn(&TreeView, MovementStep, i32) -> bool + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_row_activated<F: Fn(&TreeView, &TreePath, &TreeViewColumn) + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_row_collapsed<F: Fn(&TreeView, &TreeIter, &TreePath) + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_row_expanded<F: Fn(&TreeView, &TreeIter, &TreePath) + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_select_all<F: Fn(&TreeView) -> bool + 'static>(&self, f: F) -> u64
fn connect_select_cursor_parent<F: Fn(&TreeView) -> bool + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_select_cursor_row<F: Fn(&TreeView, bool) -> bool + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_start_interactive_search<F: Fn(&TreeView) -> bool + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_test_collapse_row<F: Fn(&TreeView, &TreeIter, &TreePath) -> Inhibit + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_test_expand_row<F: Fn(&TreeView, &TreeIter, &TreePath) -> Inhibit + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_toggle_cursor_row<F: Fn(&TreeView) -> bool + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_unselect_all<F: Fn(&TreeView) -> bool + 'static>(&self, f: F) -> u64
Trait Implementations
impl Clone for TreeView
fn clone(&self) -> TreeView
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for TreeView
impl Hash for TreeView
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl StaticType for TreeView
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for TreeView
fn eq(&self, other: &T) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.