Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.Tree

Class Tree

dui.ObjectG.ObjectG
        dui.DUIObject.DUIObject
                dui.Widget.Widget
                        dui.Container.Container
                                dui.Tree.Tree

Implemented interfaces:


public class

Tree



A container that display a tree.
This seems to be a tree implementation independent of the TreeView. Use the TreeView instead???

Constructor Summary
protected (GtkWidget* gtkWidget)
          
public ()
          Creates a new Tree

Methods Summary
static GType getType()
          Gets this class type
void append(TreeItem item)
          Appends an item to the tree
void prepend(TreeItem item)
          Prepends an item to the tree
void insert(TreeItem item, gint position)
          Insert an item a any position
void removeItems(ListG items)
          Remove a list of items from the tree
void clearItems(gint start, gint end)
          Clear a set of item from a range ???
void selectItem(gint item)
          Select and item by it's position
void unselectItem(gint item)
          Unselect an item by it's position
void selectChild(TreeItem item)
          Selects an item on the tree
void unselectChild(TreeItem item)
          Unselects an item
gint childPosition(Widget child)
          
void selectionMode(GtkSelectionMode mode)
          Sets the selection mode \todo where are the selection modes?
void viewMode(GtkTreeViewMode mode)
          Sets the view mode
void viewLines(bit flag)
          Sets if the separator lines should be visible


getType

static GType getType()
Gets this class type

Returns:
this class type



protected ctor(Tree)(GtkWidget* gtkWidget)



public ctor(Tree)()
Creates a new Tree

append

void append(TreeItem item)
Appends an item to the tree

Parameters:
item - the item to add

prepend

void prepend(TreeItem item)
Prepends an item to the tree

Parameters:
item - the item to add

insert

void insert(TreeItem item, gint position)
Insert an item a any position

Parameters:
item - the item to add
position - the postion of the item

removeItems

void removeItems(ListG items)
Remove a list of items from the tree

Parameters:
items - the list of items

clearItems

void clearItems(gint start, gint end)
Clear a set of item from a range ???

Parameters:
start -
end -

selectItem

void selectItem(gint item)
Select and item by it's position

Parameters:
item - the item position

unselectItem

void unselectItem(gint item)
Unselect an item by it's position

Parameters:
item - the item position

selectChild

void selectChild(TreeItem item)
Selects an item on the tree

Parameters:
item - the item to select

unselectChild

void unselectChild(TreeItem item)
Unselects an item

Parameters:
item - the item to unselect

childPosition

gint childPosition(Widget child)

selectionMode

void selectionMode(GtkSelectionMode mode)
Sets the selection mode \todo where are the selection modes?

Parameters:
mode - the new selection mode

viewMode

void viewMode(GtkTreeViewMode mode)
Sets the view mode

Parameters:
mode - the new view mode

viewLines

void viewLines(bit flag)
Sets if the separator lines should be visible

Parameters:
flag - it true lines will be visible