GObject.Object
Gtk.TreeSelection
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-2.0.gir |
C documentation: | GtkTreeSelection |
Class : | TreeSelection |
Extends: | GObject.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
destroy : [object Object]
read only
|
Gtk.TreeSelection | |
parent : GObject.Object
read only
|
Gtk.TreeSelection | |
tree_view : Gtk.TreeView
read only
|
Gtk.TreeSelection | |
type : Gtk.SelectionMode
read only
|
Gtk.TreeSelection | |
user_data : void*
read only
|
Gtk.TreeSelection | |
user_func : [object Object]
read only
|
Gtk.TreeSelection |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.TreeSelection
(Object properties)
Create a new Gtk.TreeSelection
Create a new Gtk.TreeSelection
|
||
count_selected_rows
()
:
Number
Returns the number of rows that have been selected in tree.
Returns the number of rows that have been selected in tree.
|
Gtk.TreeSelection | |
get_mode
()
:
Gtk.SelectionMode
Gets the selection mode for selection.
Gets the selection mode for selection. See gtk_tree_selection_set_mode().
|
Gtk.TreeSelection | |
get_select_function
()
:
[object Object]
Returns the current selection function.
Returns the current selection function.
|
Gtk.TreeSelection | |
Sets iter to the currently selected node if selection is set to GTK_SELECTION_SINGLE or GTK_SELECTION_BROWSE.
Sets iter to the currently selected node if selection is set to GTK_SELECTION_SINGLE or GTK_SELECTION_BROWSE. iter may be NULL if you just want to test if selection has any selected nodes. model is filled with the current model as a convenience. This function will not work if you use selection is GTK_SELECTION_MULTIPLE.
|
Gtk.TreeSelection | |
Creates a list of path of all selected rows.
Creates a list of path of all selected rows. Additionally, if you are planning on modifying the model after calling this function, you may want to convert the returned list into a list of GtkTreeRowReferences. To do this, you can use gtk_tree_row_reference_new(). To free the return value, use: |[ g_list_foreach (list, (GFunc) gtk_tree_path_free, NULL); g_list_free (list); ]|
|
Gtk.TreeSelection | |
get_tree_view
()
:
Gtk.TreeView
Returns the tree view associated with selection.
Returns the tree view associated with selection.
|
Gtk.TreeSelection | |
get_user_data
()
:
void*
Returns the user data for the selection function.
Returns the user data for the selection function.
|
Gtk.TreeSelection | |
Returns TRUE if the row at iter is currently selected.
Returns TRUE if the row at iter is currently selected.
|
Gtk.TreeSelection | |
Returns TRUE if the row pointed to by path is currently selected.
Returns TRUE if the row pointed to by path is currently selected. If path does not point to a valid location, FALSE is returned
|
Gtk.TreeSelection | |
select_all
()
:
none
Selects all the nodes.
Selects all the nodes. selection must be set to GTK_SELECTION_MULTIPLE mode.
|
Gtk.TreeSelection | |
select_iter
(TreeIter iter)
:
none
Selects the specified iterator.
Selects the specified iterator.
|
Gtk.TreeSelection | |
select_path
(TreePath path)
:
none
Select the row at path.
Select the row at path.
|
Gtk.TreeSelection | |
Selects a range of nodes, determined by start_path and end_path inclusive.
Selects a range of nodes, determined by start_path and end_path inclusive.
|
Gtk.TreeSelection | |
Calls a function for each selected node.
Calls a function for each selected node. Note that you cannot modify the tree or selection from within this function. As a result, gtk_tree_selection_get_selected_rows() might be more useful.
|
Gtk.TreeSelection | |
set_mode
(SelectionMode type)
:
none
Sets the selection mode of the selection.
Sets the selection mode of the selection. If the previous type was GTK_SELECTION_MULTIPLE, then the anchor is kept selected, if it was previously selected.
|
Gtk.TreeSelection | |
Sets the selection function.
Sets the selection function. If set, this function is called before any node is selected or unselected, giving some control over which nodes are selected. The select function should return TRUE if the state of the node may be toggled, and FALSE if the state of the node should be left unchanged.
|
Gtk.TreeSelection | |
unselect_all
()
:
none
Unselects all the nodes.
Unselects all the nodes.
|
Gtk.TreeSelection | |
unselect_iter
(TreeIter iter)
:
none
Unselects the specified iterator.
Unselects the specified iterator.
|
Gtk.TreeSelection | |
unselect_path
(TreePath path)
:
none
Unselects the row at path.
Unselects the row at path.
|
Gtk.TreeSelection | |
Unselects a range of nodes, determined by start_path and end_path inclusive.
Unselects a range of nodes, determined by start_path and end_path inclusive.
|
Gtk.TreeSelection |
Event | Defined By | |
---|---|---|
changed (TreeSelection self)
:
none
|
Gtk.TreeSelection |
Class / Namespace | Method / Signal / Properties |
---|---|
Gtk.TreeView
Method |
get_selection
()
:
Gtk.TreeSelection
Gets the GtkTreeSelection associated with tree_view.
|