gtk.TreeSelection.TreeSelection Class Reference

Inheritance diagram for gtk.TreeSelection.TreeSelection:

gobject.ObjectG.ObjectG List of all members.

Public Member Functions

GtkTreeSelectiongetTreeSelectionStruct ()
 this (GtkTreeSelection *gtkTreeSelection)
 Sets our main struct and passes it to the parent class.
int getSelected (TreeModel model, TreeIter iter)
 Sets iter to the currently selected node if selection is set to GTK_SELECTION_SINGLE or GTK_SELECTION_BROWSE.
TreePath[] getSelectedRows (TreeModel model)
 Creates a list of path of all selected rows.
void delegate (TreeSelection)[] onChangedListeners
void addOnChanged (void delegate(TreeSelection) dlg)
 extern (C) static void callBackChanged(GtkTreeSelection *treeselectionStruct

Public Attributes

int[char[]] connectedSignals

Protected Member Functions

void * getStruct ()
 the main Gtk struct as a void*

Protected Attributes

GtkTreeSelectiongtkTreeSelection
 the main Gtk struct

Constructor & Destructor Documentation

gtk.TreeSelection.TreeSelection.this ( GtkTreeSelection gtkTreeSelection  ) 

Sets our main struct and passes it to the parent class.


Member Function Documentation

void gtk.TreeSelection.TreeSelection.addOnChanged ( void delegate(TreeSelection dlg  ) 

void gtk.TreeSelection.TreeSelection.delegate ( TreeSelection   ) 

gtk.TreeSelection.TreeSelection.extern (  ) 

Reimplemented from gobject.ObjectG.ObjectG.

int gtk.TreeSelection.TreeSelection.getSelected ( TreeModel  model,
TreeIter  iter 
)

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. selection: A GtkTreeSelection. model: A pointer to set to the GtkTreeModel, or NULL. iter: The GtkTreeIter, or NULL. Returns: TRUE, if there is a selected node.

TreePath [] gtk.TreeSelection.TreeSelection.getSelectedRows ( TreeModel  model  ) 

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, gtk_tree_path_free, NULL); g_list_free (list); selection: A GtkTreeSelection. model: A pointer to set to the GtkTreeModel, or NULL. Returns: A GList containing a GtkTreePath for each selected row. Since 2.2

void* gtk.TreeSelection.TreeSelection.getStruct (  )  [protected]

the main Gtk struct as a void*

Reimplemented from gobject.ObjectG.ObjectG.

GtkTreeSelection* gtk.TreeSelection.TreeSelection.getTreeSelectionStruct (  ) 


Member Data Documentation

int [char[]] gtk.TreeSelection.TreeSelection.connectedSignals

Reimplemented from gobject.ObjectG.ObjectG.

GtkTreeSelection* gtk.TreeSelection.TreeSelection.gtkTreeSelection [protected]

the main Gtk struct


SourceForge.net Logo DSource.org Logo digitalmars.com Logo