Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.TreeSelection

Class TreeSelection

dui.ObjectG.ObjectG
        dui.TreeSelection.TreeSelection

Implemented interfaces:


public class

TreeSelection



A representation of a tree selection

Constructor Summary
package (GObject* gObject)
          

Methods Summary
static GType getType()
          Gets this class type
public void setMode(SelectionMode type)
          Set the selection mode
SelectionMode getMode()
          Gest the selection mode
gpointer getUserData()
          Gets the user data
TreeView getTreeView()
          Gets the tree view
bit getSelected(TreeModel model, TreeIter iter)
          /* Only meaningful if GTK_SELECTION_SINGLE or GTK_SELECTION_BROWSE is set /* Use selected_foreach or get_selected_rows for GTK_SELECTION_MULTIPLE Checks if the iter is selected ???
TreePath getSelectedRows(TreeModel model)
          Gets a list with the selected rows
gint countSelectedRows()
          Gets the number of selected rows
void selectPath(TreePath path)
          Selects a path
void unselectPath(TreePath path)
          Unselects a path
void selectIter(TreeIter iter)
          Selects the iteractor branch (leave) ???
void unselectIter(TreeIter iter)
          Unselects the iteractor branch (leave) ???
bit pathIsSelected(TreePath path)
          Cheks if the path is selected
bit iterIsSelected(TreeIter iter)
          Checks if the iteractor is selected
void selectAll()
          Selects the entire tree.
void unselectedAll()
          Unselect the entire tree
void selectedRange(TreePath startPath, TreePath endPath)
          Select a range of the tree
void unselectRange(TreePath startPath, TreePath endPath)
          Unselec a rnage of the tree


getType

static GType getType()
Gets this class type

Returns:
this class type



package ctor(TreeSelection)(GObject* gObject)

setMode

public void setMode(SelectionMode type)
Set the selection mode

Parameters:
type - the new selection mode

getMode

SelectionMode getMode()
Gest the selection mode

Returns:
the selection mode

getUserData

gpointer getUserData()
Gets the user data

Returns:
the user data

getTreeView

TreeView getTreeView()
Gets the tree view

Returns:
the tree view

getSelected

bit getSelected(TreeModel model, TreeIter iter)
/* Only meaningful if GTK_SELECTION_SINGLE or GTK_SELECTION_BROWSE is set /* Use selected_foreach or get_selected_rows for GTK_SELECTION_MULTIPLE Checks if the iter is selected ???

Parameters:
model - the tree model
iter - the tree iter

Returns:
true if the iter is selected

getSelectedRows

TreePath getSelectedRows(TreeModel model)
Gets a list with the selected rows

Parameters:
model - the tree model

Returns:
a list with the selected rows

countSelectedRows

gint countSelectedRows()
Gets the number of selected rows

Returns:
the number of selected rows

selectPath

void selectPath(TreePath path)
Selects a path

Parameters:
path - the path

unselectPath

void unselectPath(TreePath path)
Unselects a path

Parameters:
path - the path

selectIter

void selectIter(TreeIter iter)
Selects the iteractor branch (leave) ???

Parameters:
iter - the iteractor to select

unselectIter

void unselectIter(TreeIter iter)
Unselects the iteractor branch (leave) ???

Parameters:
iter - the iteractor to unselect

pathIsSelected

bit pathIsSelected(TreePath path)
Cheks if the path is selected

Parameters:
path - the path to test

Returns:
true if the path is selected

iterIsSelected

bit iterIsSelected(TreeIter iter)
Checks if the iteractor is selected

Parameters:
iter - the iteractor to test

Returns:
true if the iteractor is selected

selectAll

void selectAll()
Selects the entire tree.

unselectedAll

void unselectedAll()
Unselect the entire tree

selectedRange

void selectedRange(TreePath startPath, TreePath endPath)
Select a range of the tree

Parameters:
startPath -
endPath -

unselectRange

void unselectRange(TreePath startPath, TreePath endPath)
Unselec a rnage of the tree

Parameters:
startPath -
endPath -