Back to Seed Clases

Gtk


Classes

Interfaces

Structs

Unions

Enums

Struct Gtk.TreePath

Import line: Gtk = imports.gi.Gtk;
GIR File: Gtk-2.0.gir
C documentation: GtkTreePath
Struct : TreePath
  Show / Hide Inherited methods, properties and signals
Properties
None
Methods / Constructors
Method / Constructor Defined By
 
new Gtk.TreePath.c_new () : Gtk.TreePath
Create a new Gtk.TreePath
Create a new Gtk.TreePath
Returns:
Gtk.TreePath
 
 
new Gtk.TreePath.first () : Gtk.TreePath
Create a new Gtk.TreePath
Create a new Gtk.TreePath
Returns:
Gtk.TreePath
 
Events
None
Used by These Methods / Signals / Properties
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
Gtk.tree_row_reference_deleted (Object proxy, TreePath path) : none
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
Gtk.tree_row_reference_inserted (Object proxy, TreePath path) : none
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
Gtk.tree_row_reference_reordered (Object proxy, TreePath path, TreeIter iter) : Number
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
get_size_of_row (TreePath path, Requisition requisition) : Boolean
Sets requisition to the size needed by cell_view to display the model row pointed to by path.
Gtk.IconView
Signal
item_activated (IconView self, TreePath path) : none
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
get_path_at_pos (Number x, Number y) : Gtk.TreePath
Finds the path at the point (x, y), relative to bin_window coordinates.
Gtk.IconView
Method
get_item_at_pos (Number x, Number y, TreePath path, CellRenderer cell) : Boolean
Finds the path at the point (x, y), relative to bin_window coordinates.
Gtk.IconView
Method
get_visible_range (TreePath start_path, TreePath end_path) : Boolean
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
path_is_selected (TreePath path) : Boolean
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
set_cursor (TreePath path, CellRenderer cell, Boolean start_editing) : none
Sets the current keyboard focus to be at path, and selects it.
Gtk.IconView
Method
get_cursor (TreePath path, CellRenderer cell) : Boolean
Fills in path and cell with the current cursor path and cell.
Gtk.IconView
Method
scroll_to_path (TreePath path, Boolean use_align, Number row_align, Number col_align) : none
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
set_tooltip_item (Tooltip tooltip, TreePath path) : none
Sets the tip area of tooltip to be the area covered by the item at path.
Gtk.IconView
Method
set_tooltip_cell (Tooltip tooltip, TreePath path, CellRenderer cell) : none
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
drag_data_received (TreePath dest, SelectionData selection_data) : Boolean
Asks the GtkTreeDragDest to insert a row before the path dest, deriving the contents of the row from selection_data.
Gtk.TreeDragDest
Method
row_drop_possible (TreePath dest_path, SelectionData selection_data) : Boolean
Determines whether a drop is possible before the given dest_path, at the same depth as dest_path.
Gtk.TreeDragSource
Method
row_draggable (TreePath path) : Boolean
Asks the GtkTreeDragSource whether a particular row can be used as the source of a DND operation.
Gtk.TreeDragSource
Method
drag_data_delete (TreePath path) : Boolean
Asks the GtkTreeDragSource to delete the row at path, because it was moved somewhere else via drag-and-drop.
Gtk.TreeDragSource
Method
drag_data_get (TreePath path, SelectionData selection_data) : Boolean
Asks the GtkTreeDragSource to fill in selection_data with a representation of the row at path.
Gtk.TreeModel
Signal
row_changed (TreeModel self, TreePath path, TreeIter iter) : none
This signal is emitted when a row in the model has changed.
Gtk.TreeModel
Signal
row_deleted (TreeModel self, TreePath path) : none
This signal is emitted when a row has been deleted.
Gtk.TreeModel
Signal
row_has_child_toggled (TreeModel self, TreePath path, TreeIter iter) : none
This signal is emitted when a row has gotten the first child row or lost its last child row.
Gtk.TreeModel
Signal
row_inserted (TreeModel self, TreePath path, TreeIter iter) : none
This signal is emitted when a new row has been inserted in the model.
Gtk.TreeModel
Signal
rows_reordered (TreeModel self, TreePath path, TreeIter iter, void* new_order) : none
This signal is emitted when the children of a node in the GtkTreeModel have been reordered.
Gtk.TreeModel
Method
get_iter (TreeIter iter, TreePath path) : Boolean
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
row_changed (TreePath path, TreeIter iter) : none
Emits the "row-changed" signal on tree_model.
Gtk.TreeModel
Method
row_inserted (TreePath path, TreeIter iter) : none
Emits the "row-inserted" signal on tree_model
Gtk.TreeModel
Method
row_has_child_toggled (TreePath path, TreeIter iter) : none
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
rows_reordered (TreePath path, TreeIter iter) : Number
Emits the "rows-reordered" signal on tree_model.
Gtk.TreeModelFilter
Property
virtual_root : Gtk.TreePath
Gtk.TreeModelFilter
Method
new Gtk.TreeModelFilter.c_new (TreeModel child_model, TreePath root) : Gtk.TreeModelFilter
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
new Gtk.TreeRowReference.c_new (TreeModel model, TreePath path) : Gtk.TreeRowReference
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
path_is_selected (TreePath path) : Boolean
Returns TRUE if the row pointed to by path is currently selected.
Gtk.TreeSelection
Method
select_range (TreePath start_path, TreePath end_path) : none
Selects a range of nodes, determined by start_path and end_path inclusive.
Gtk.TreeSelection
Method
unselect_range (TreePath start_path, TreePath end_path) : none
Unselects a range of nodes, determined by start_path and end_path inclusive.
Gtk.TreeView
Signal
row_activated (TreeView self, TreePath path, TreeViewColumn column) : none
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
row_collapsed (TreeView self, TreeIter iter, TreePath path) : none
The given row has been collapsed (child nodes are hidden).
Gtk.TreeView
Signal
row_expanded (TreeView self, TreeIter iter, TreePath path) : none
The given row has been expanded (child nodes are shown).
Gtk.TreeView
Signal
test_collapse_row (TreeView self, TreeIter iter, TreePath path) : Boolean
The given row is about to be collapsed (hide its children nodes).
Gtk.TreeView
Signal
test_expand_row (TreeView self, TreeIter iter, TreePath path) : Boolean
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
expand_row (TreePath path, Boolean open_all) : Boolean
Opens the row so its children are visible.
Gtk.TreeView
Method
collapse_row (TreePath path) : Boolean
Collapses a row (hides its child rows, if they exist).
Gtk.TreeView
Method
row_expanded (TreePath path) : Boolean
Returns TRUE if the node pointed to by path is expanded in tree_view.
Gtk.TreeView
Method
set_cursor (TreePath path, TreeViewColumn focus_column, Boolean start_editing) : none
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
get_cell_area (TreePath path, TreeViewColumn column, Rectangle rect) : none
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_background_area (TreePath path, TreeViewColumn column, Rectangle rect) : none
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_visible_range (TreePath start_path, TreePath end_path) : Boolean
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
set_tooltip_row (Tooltip tooltip, TreePath path) : none
Sets the tip area of tooltip to be the area covered by the row at path.
Gtk.TreeView
Method
set_tooltip_cell (Tooltip tooltip, TreePath path, TreeViewColumn column, CellRenderer cell) : none
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.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Tue Jun 22 2010 16:34:41 GMT+0800 (HKT)