Note that this widget is obsolete. Consider using Gtk.Ctree instead.
This widget displays a tree with expandable nodes. A tree is used to display hierarchically-organized data. It is a vertical container for arbitrary widgets of type Gtk_Tree_Item. The difference with a Gtk_Clist is that Gtk_Tree widgets can be nested within other Gtk_Tree widgets.
See also Gtk_Ctree for a columned tree which is also more efficient.
Widget Hierarchy |
---|
Gtk_Object (see section Package Gtk.Object) \___ Gtk_Widget (see section Package Gtk.Widget) \___ Gtk_Container (see section Package Gtk.Container) \___ Gtk_Tree (see section Package Gtk.Tree) |
Subprograms |
---|
Creation, insertion, deletion | ||
Elements inside a Gtk_Tree are not ordered from the top to the bottom | ||
procedure Gtk_New (Widget : out Gtk_Tree); | ||
Create an empty tree.
| ||
function Get_Type return Gtk.Gtk_Type; | ||
Return the internal value associated with a Gtk_Tree.
| ||
procedure Append (Tree : access Gtk_Tree_Record; Tree_Item : access Gtk.Widget.Gtk_Widget_Record'Class); | ||
Append a tree item to a Tree. | ||
function Child_Position (Tree : access Gtk_Tree_Record; Child : access Gtk.Widget.Gtk_Widget_Record'Class) return Gint; | ||
Return the position in the tree of Child. | ||
procedure Clear_Items (Tree : access Gtk_Tree_Record; Start : in Gint; The_End : in Gint); | ||
Remove the items from position Start to position The_End from the tree. | ||
function Get_Children (Widget : access Gtk.Tree.Gtk_Tree_Record) return Widget_List.Glist; | ||
Get the child items of the tree node.
| ||
function Get_Selection (Widget : access Gtk.Tree.Gtk_Tree_Record) return Widget_List.Glist; | ||
Get the current selection of items in the tree.
| ||
procedure Insert (Tree : access Gtk_Tree_Record; Tree_Item : access Gtk.Widget.Gtk_Widget_Record'Class; Position : in Gint); | ||
Insert a tree item into a tree at the given position.
| ||
procedure Prepend (Tree : access Gtk_Tree_Record; Tree_Item : access Gtk.Widget.Gtk_Widget_Record'Class); | ||
Prepend a tree item to a tree.
| ||
procedure Remove_Items (Tree : access Gtk_Tree_Record; Items : in Widget_List.Glist); | ||
Remove a list of items (in the form of a Glist) from the tree. | ||
procedure Select_Child (Tree : access Gtk_Tree_Record; Tree_Item : access Gtk.Widget.Gtk_Widget_Record'Class); | ||
Emit the select_item signal for the child Tree_Item, thus selecting it.
| ||
procedure Select_Item (Tree : access Gtk_Tree_Record; Item : in Gint); | ||
Emit the select_item signal for the child at position Item. | ||
procedure Set_Selection_Mode (Tree : access Gtk_Tree_Record; Mode : in Gtk_Selection_Mode); | ||
Set the selection mode. | ||
procedure Set_View_Lines (Tree : access Gtk_Tree_Record; Flag : in Boolean); | ||
If Flag is True then connecting lines between tree items are drawn, | ||
procedure Set_View_Mode (Tree : access Gtk_Tree_Record; Mode : in Gtk_Tree_View_Mode); | ||
Set the "view mode". | ||
procedure Unselect_Child (Tree : access Gtk_Tree_Record; Tree_Item : access Gtk.Widget.Gtk_Widget_Record'Class); | ||
Emit the unselect_item signal for the child Tree_Item. | ||
procedure Unselect_Item (Tree : access Gtk_Tree_Record; Item : in Gint); | ||
Emit the "unselect_item" signal for the child at position Item. |