Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-2.0.gir |
C documentation: | GtkTreePath |
Struct : | TreePath |
Show / Hide Inherited methods, properties and signals |
None |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.TreePath.c_new
()
:
Gtk.TreePath
Create a new Gtk.TreePath
Create a new Gtk.TreePath
|
||
new Gtk.TreePath.first
()
:
Gtk.TreePath
Create a new Gtk.TreePath
Create a new Gtk.TreePath
|
||
Create a new Gtk.TreePath
Create a new Gtk.TreePath
|
||
append_index
(Number index_)
:
none
Appends a new index to a path.
Appends a new index to a path. As a result, the depth of the path is increased.
|
Gtk.TreePath | |
Compares two paths.
Compares two paths. If a appears before b in a tree, then -1 is returned. If b appears before a, then 1 is returned. If the two nodes are equal, then 0 is returned.
|
Gtk.TreePath | |
copy
()
:
Gtk.TreePath
Creates a new GtkTreePath as a copy of path.
Creates a new GtkTreePath as a copy of path.
|
Gtk.TreePath | |
down
()
:
none
Moves path to point to the first child of the current path.
Moves path to point to the first child of the current path.
|
Gtk.TreePath | |
free
()
:
none
Frees path.
Frees path.
|
Gtk.TreePath | |
get_depth
()
:
Number
Returns the current depth of path.
Returns the current depth of path.
|
Gtk.TreePath | |
get_indices
()
:
Number
Returns the current indices of path.
Returns the current indices of path. This is an array of integers, each representing a node in a tree. This value should not be freed.
|
Gtk.TreePath | |
Returns TRUE if descendant is a descendant of path.
Returns TRUE if descendant is a descendant of path.
|
Gtk.TreePath | |
Returns TRUE if path is a descendant of ancestor.
Returns TRUE if path is a descendant of ancestor.
|
Gtk.TreePath | |
next
()
:
none
Moves the path to point to the next node at the current depth.
Moves the path to point to the next node at the current depth.
|
Gtk.TreePath | |
prepend_index
(Number index_)
:
none
Prepends a new index to a path.
Prepends a new index to a path. As a result, the depth of the path is increased.
|
Gtk.TreePath | |
prev
()
:
Boolean
Moves the path to point to the previous node at the current depth, if it exists.
Moves the path to point to the previous node at the current depth, if it exists.
|
Gtk.TreePath | |
to_string
()
:
String
Generates a string representation of the path.
Generates a string representation of the path. This string is a ':' separated list of numbers. For example, "4:10:0:3" would be an acceptable return value for this string.
|
Gtk.TreePath | |
up
()
:
Boolean
Moves the path to point to its parent node, if it has a parent.
Moves the path to point to its parent node, if it has a parent.
|
Gtk.TreePath |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gtk
Method |
Gtk.tree_get_row_drag_data
(SelectionData selection_data, TreeModel tree_model, TreePath path)
:
Boolean
Obtains a tree_model and path from selection data of target type GTK_TREE_MODEL_ROW.
|
Gtk
Method |
Lets a set of row reference created by gtk_tree_row_reference_new_proxy() know that the model emitted the "row_deleted" signal.
|
Gtk
Method |
Lets a set of row reference created by gtk_tree_row_reference_new_proxy() know that the model emitted the "row_inserted" signal.
|
Gtk
Method |
Lets a set of row reference created by gtk_tree_row_reference_new_proxy() know that the model emitted the "rows_reordered" signal.
|
Gtk
Method |
Gtk.tree_set_row_drag_data
(SelectionData selection_data, TreeModel tree_model, TreePath path)
:
Boolean
Sets selection data of target type GTK_TREE_MODEL_ROW.
|
Gtk.CellView
Method |
set_displayed_row
(TreePath path)
:
none
Sets the row of the model that is currently displayed by the GtkCellView.
|
Gtk.CellView
Method |
get_displayed_row
()
:
Gtk.TreePath
Returns a GtkTreePath referring to the currently displayed row.
|
Gtk.CellView
Method |
Sets requisition to the size needed by cell_view to display the model row pointed to by path.
|
Gtk.IconView
Signal |
The ::item-activated signal is emitted when the method gtk_icon_view_item_activated() is called or the user double clicks an item.
|
Gtk.IconView
Method |
Finds the path at the point (x, y), relative to bin_window coordinates.
|
Gtk.IconView
Method |
Finds the path at the point (x, y), relative to bin_window coordinates.
|
Gtk.IconView
Method |
Sets start_path and end_path to be the first and last visible path.
|
Gtk.IconView
Method |
select_path
(TreePath path)
:
none
Selects the row at path.
|
Gtk.IconView
Method |
unselect_path
(TreePath path)
:
none
Unselects the row at path.
|
Gtk.IconView
Method |
Returns TRUE if the icon pointed to by path is currently selected.
|
Gtk.IconView
Method |
item_activated
(TreePath path)
:
none
Activates the item determined by path.
|
Gtk.IconView
Method |
Sets the current keyboard focus to be at path, and selects it.
|
Gtk.IconView
Method |
Fills in path and cell with the current cursor path and cell.
|
Gtk.IconView
Method |
Moves the alignments of icon_view to the position specified by path.
|
Gtk.IconView
Method |
set_drag_dest_item
(TreePath path, IconViewDropPosition pos)
:
none
Sets the item that is highlighted for feedback.
|
Gtk.IconView
Method |
get_drag_dest_item
(TreePath path, IconViewDropPosition pos)
:
none
Gets information about the item that is highlighted for feedback.
|
Gtk.IconView
Method |
get_dest_item_at_pos
(Number drag_x, Number drag_y, TreePath path, IconViewDropPosition pos)
:
Boolean
Determines the destination item for a given position.
|
Gtk.IconView
Method |
create_drag_icon
(TreePath path)
:
Gdk.Pixmap
Creates a GdkPixmap representation of the item at path.
|
Gtk.IconView
Method |
Sets the tip area of tooltip to be the area covered by the item at path.
|
Gtk.IconView
Method |
Sets the tip area of tooltip to the area which cell occupies in the item pointed to by path.
|
Gtk.IconView
Method |
get_tooltip_context
(Object out_values, Number y, Boolean keyboard_tip, TreeModel model, TreePath path, TreeIter iter)
:
Boolean
This function is supposed to be used in a GtkWidget::query-tooltip signal handler for GtkIconView.
|
Gtk.TreeDragDest
Method |
Asks the GtkTreeDragDest to insert a row before the path dest, deriving the contents of the row from selection_data.
|
Gtk.TreeDragDest
Method |
Determines whether a drop is possible before the given dest_path, at the same depth as dest_path.
|
Gtk.TreeDragSource
Method |
Asks the GtkTreeDragSource whether a particular row can be used as the source of a DND operation.
|
Gtk.TreeDragSource
Method |
Asks the GtkTreeDragSource to delete the row at path, because it was moved somewhere else via drag-and-drop.
|
Gtk.TreeDragSource
Method |
Asks the GtkTreeDragSource to fill in selection_data with a representation of the row at path.
|
Gtk.TreeModel
Signal |
This signal is emitted when a row in the model has changed.
|
Gtk.TreeModel
Signal |
This signal is emitted when a row has been deleted.
|
Gtk.TreeModel
Signal |
This signal is emitted when a row has gotten the first child row or lost its last child row.
|
Gtk.TreeModel
Signal |
This signal is emitted when a new row has been inserted in the model.
|
Gtk.TreeModel
Signal |
This signal is emitted when the children of a node in the GtkTreeModel have been reordered.
|
Gtk.TreeModel
Method |
Sets iter to a valid iterator pointing to path.
|
Gtk.TreeModel
Method |
get_path
(TreeIter iter)
:
Gtk.TreePath
Returns a newly-created GtkTreePath referenced by iter.
|
Gtk.TreeModel
Method |
Emits the "row-changed" signal on tree_model.
|
Gtk.TreeModel
Method |
Emits the "row-inserted" signal on tree_model
|
Gtk.TreeModel
Method |
Emits the "row-has-child-toggled" signal on tree_model.
|
Gtk.TreeModel
Method |
row_deleted
(TreePath path)
:
none
Emits the "row-deleted" signal on tree_model.
|
Gtk.TreeModel
Method |
Emits the "rows-reordered" signal on tree_model.
|
Gtk.TreeModelFilter
Property |
virtual_root : Gtk.TreePath
|
Gtk.TreeModelFilter
Method |
Create a new Gtk.TreeModelFilter
|
Gtk.TreeModelFilter
Method |
convert_child_path_to_path
(TreePath child_path)
:
Gtk.TreePath
Converts child_path to a path relative to filter.
|
Gtk.TreeModelFilter
Method |
convert_path_to_child_path
(TreePath filter_path)
:
Gtk.TreePath
Converts filter_path to a path on the child model of filter.
|
Gtk.TreeModelSort
Method |
convert_child_path_to_path
(TreePath child_path)
:
Gtk.TreePath
Converts child_path to a path relative to tree_model_sort.
|
Gtk.TreeModelSort
Method |
convert_path_to_child_path
(TreePath sorted_path)
:
Gtk.TreePath
Converts sorted_path to a path on the child model of tree_model_sort.
|
Gtk.TreeRowReference
Method |
Create a new Gtk.TreeRowReference
|
Gtk.TreeRowReference
Method |
new Gtk.TreeRowReference.proxy
(Object proxy, TreeModel model, TreePath path)
:
Gtk.TreeRowReference
Create a new Gtk.TreeRowReference
|
Gtk.TreeRowReference
Method |
get_path
()
:
Gtk.TreePath
Returns a path that the row reference currently points to, or NULL if the path pointed to is no longer valid.
|
Gtk.TreeSelection
Method |
select_path
(TreePath path)
:
none
Select the row at path.
|
Gtk.TreeSelection
Method |
unselect_path
(TreePath path)
:
none
Unselects the row at path.
|
Gtk.TreeSelection
Method |
Returns TRUE if the row pointed to by path is currently selected.
|
Gtk.TreeSelection
Method |
Selects a range of nodes, determined by start_path and end_path inclusive.
|
Gtk.TreeSelection
Method |
Unselects a range of nodes, determined by start_path and end_path inclusive.
|
Gtk.TreeView
Signal |
The "row-activated" signal is emitted when the method gtk_tree_view_row_activated() is called or the user double clicks a treeview row.
|
Gtk.TreeView
Signal |
The given row has been collapsed (child nodes are hidden).
|
Gtk.TreeView
Signal |
The given row has been expanded (child nodes are shown).
|
Gtk.TreeView
Signal |
The given row is about to be collapsed (hide its children nodes).
|
Gtk.TreeView
Signal |
The given row is about to be expanded (show its children nodes).
|
Gtk.TreeView
Method |
scroll_to_cell
(TreePath path, TreeViewColumn column, Boolean use_align, Number row_align, Number col_align)
:
none
Moves the alignments of tree_view to the position specified by column and if path is NULL no vertical scrolling occurs.
|
Gtk.TreeView
Method |
row_activated
(TreePath path, TreeViewColumn column)
:
none
Activates the cell determined by path and column.
|
Gtk.TreeView
Method |
expand_to_path
(TreePath path)
:
none
Expands the row at path.
|
Gtk.TreeView
Method |
Opens the row so its children are visible.
|
Gtk.TreeView
Method |
Collapses a row (hides its child rows, if they exist).
|
Gtk.TreeView
Method |
Returns TRUE if the node pointed to by path is expanded in tree_view.
|
Gtk.TreeView
Method |
Sets the current keyboard focus to be at path, and selects it.
|
Gtk.TreeView
Method |
set_cursor_on_cell
(TreePath path, TreeViewColumn focus_column, CellRenderer focus_cell, Boolean start_editing)
:
none
Sets the current keyboard focus to be at path, and selects it.
|
Gtk.TreeView
Method |
get_cursor
()
:
Object
Fills in path and focus_column with the current path and focus column.
|
Gtk.TreeView
Method |
Fills the bounding rectangle in bin_window coordinates for the cell at the row specified by path and the column specified by column.
|
Gtk.TreeView
Method |
Fills the bounding rectangle in bin_window coordinates for the cell at the row specified by path and the column specified by column.
|
Gtk.TreeView
Method |
Sets start_path and end_path to be the first and last visible path.
|
Gtk.TreeView
Method |
set_drag_dest_row
(TreePath path, TreeViewDropPosition pos)
:
none
Sets the row that is highlighted for feedback.
|
Gtk.TreeView
Method |
get_drag_dest_row
()
:
Object
Gets information about the row that is highlighted for feedback.
|
Gtk.TreeView
Method |
create_row_drag_icon
(TreePath path)
:
Gdk.Pixmap
Creates a GdkPixmap representation of the row at path.
|
Gtk.TreeView
Method |
Sets the tip area of tooltip to be the area covered by the row at path.
|
Gtk.TreeView
Method |
Sets the tip area of tooltip to the area path, column and cell have in common.
|
Gtk.TreeView
Method |
get_tooltip_context
(Object out_values, Number y, Boolean keyboard_tip, TreeModel model, TreePath path, TreeIter iter)
:
Boolean
This function is supposed to be used in a GtkWidget::query-tooltip signal handler for GtkTreeView.
|