Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-3.0.gir |
C documentation: | GtkTreePath |
Struct : | TreePath |
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
(gint32 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
()
:
gint32
Returns the current depth of path.
Returns the current depth of path.
|
Gtk.TreePath | |
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
(gint32 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
()
:
gboolean
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. the move was made
|
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. Must be freed with g_free().
|
Gtk.TreePath | |
up
()
:
gboolean
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 |
Lets a set of row reference created by
gtk_tree_row_reference_new_proxy() know that the model emitted the GtkTreeModel::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 GtkTreeModel::row-inserted signal. |
Gtk
Method |
Gtk.tree_set_row_drag_data
(SelectionData selection_data, TreeModel tree_model, TreePath path)
:
gboolean
Sets selection data of target type GTK_TREE_MODEL_ROW.
|
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.CellView
Method |
set_displayed_row
(TreePath path)
:
none
Sets the row of the model that is currently displayed
by the GtkCellView. |
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 |
create_drag_icon
(TreePath path)
:
cairo.Surface
Creates a cairo_surface_t representation of the item at path.
|
Gtk.IconView
Method |
get_drag_dest_item
()
:
Object
Gets information about the item that is highlighted for feedback.
|
Gtk.IconView
Method |
Gets the column in which the item path is currently
displayed. |
Gtk.IconView
Method |
Gets the row in which the item path is currently
displayed. |
Gtk.IconView
Method |
Finds the path at the point (x, y), relative to bin_window coordinates.
|
Gtk.IconView
Method |
item_activated
(TreePath path)
:
none
Activates the item determined by path.
|
Gtk.IconView
Method |
Returns TRUE if the icon pointed to by path is currently
selected. |
Gtk.IconView
Method |
Moves the alignments of icon_view to the position specified by path.
|
Gtk.IconView
Method |
select_path
(TreePath path)
:
none
Selects the row at path.
|
Gtk.IconView
Method |
Sets the current keyboard focus to be at path, and selects it.
|
Gtk.IconView
Method |
set_drag_dest_item
(TreePath path, IconViewDropPosition pos)
:
none
Sets the item that is highlighted for feedback.
|
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 |
Sets the tip area of tooltip to be the area covered by the item at path.
|
Gtk.IconView
Method |
unselect_path
(TreePath path)
:
none
Unselects the row at path.
|
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 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.TreeDragSource
Method |
Asks the GtkTreeDragSource whether a particular row can be used as
the source of a DND operation. |
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
Method |
filter_new
(TreePath root)
:
Gtk.TreeModel
Creates a new GtkTreeModel, with child_model as the child_model
and root as the virtual root. |
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 GtkTreeModel::row-changed signal on tree_model.
|
Gtk.TreeModel
Method |
row_deleted
(TreePath path)
:
none
Emits the GtkTreeModel::row-deleted signal on tree_model.
|
Gtk.TreeModel
Method |
Emits the GtkTreeModel::row-has-child-toggled signal on
state of a node changes. |
Gtk.TreeModel
Method |
Emits the GtkTreeModel::row-inserted signal on tree_model.
|
Gtk.TreeModelFilter
Property |
virtual_root : Gtk.TreePath
|
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 |
Returns TRUE if the row pointed to by path is currently selected.
|
Gtk.TreeSelection
Method |
select_path
(TreePath path)
:
none
Select the row at path.
|
Gtk.TreeSelection
Method |
Selects a range of nodes, determined by start_path and end_path inclusive.
|
Gtk.TreeSelection
Method |
unselect_path
(TreePath path)
:
none
Unselects the row at path.
|
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 |
Collapses a row (hides its child rows, if they exist).
|
Gtk.TreeView
Method |
create_row_drag_icon
(TreePath path)
:
cairo.Surface
Creates a cairo_surface_t representation of the row at path.
|
Gtk.TreeView
Method |
Opens the row so its children are visible.
|
Gtk.TreeView
Method |
expand_to_path
(TreePath path)
:
none
Expands the row at path.
|
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 |
get_cursor
()
:
Object
Fills in path and focus_column with the current path and focus column.
|
Gtk.TreeView
Method |
get_drag_dest_row
()
:
Object
Gets information about the row that is highlighted for feedback.
|
Gtk.TreeView
Method |
row_activated
(TreePath path, TreeViewColumn column)
:
none
Activates the cell determined by path and column.
|
Gtk.TreeView
Method |
Returns TRUE if the node pointed to by path is expanded in tree_view.
|
Gtk.TreeView
Method |
scroll_to_cell
(TreePath path, TreeViewColumn column, gboolean use_align, gfloat row_align, gfloat 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 |
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, gboolean start_editing)
:
none
Sets the current keyboard focus to be at path, and selects it.
|
Gtk.TreeView
Method |
set_drag_dest_row
(TreePath path, TreeViewDropPosition pos)
:
none
Sets the row that is highlighted for feedback.
|
Gtk.TreeView
Method |
Sets the tip area of tooltip to the area path, column and cell have
in common. |
Gtk.TreeView
Method |
Sets the tip area of tooltip to be the area covered by the row at path.
|