You may return to the Cvo Object Documenation Index from this document. This document contains the following sections describing the Cvo_Tree object:
Cvo_Tree
Cvo_Window
The Cvo_Tree object is used as a container for Cvo objects which should be displayed in a tree format. Each node of the tree is represented by a Cvo_TreeNode object. The tree is a strictly expanding tree. Each node has exactly one parent (except the root node of a tree which has no parent node). There may be multiple root nodes in a single Cvo_Tree object (each spawning a new tree).
The Cvo_Tree object has a gravity associated with it, which determines from which direction the tree(s) will grow. The default is to grow from the left (West) side of the object.
The Cvo_Tree object should not be created directly. Rather, the Cvo_TreeViewPort object should be used. The Cvo_Tree object is optimized for this purpose.
This object defines the following member functions in addition to those defined by its parent and ancestor objects.
SetGravity (
CARD16 direction )
Deterimine where the root nodes should appear. Legal valued for direction are:
Cvo_NORTH
Cvo_SOUTH
Cvo_EAST
Cvo_WEST
CARD16 Gravity (
)
Return the gravity of the tree.
This object uses the following X resources in addition to those used by its parent and ancestor objects.
horizontalSpace
(class:
Space
) (default value:
10
)
verticalSpace
(class:
Space
) (default value:
10
)
siblingSeparator
(class:
Separator
) (default value:
5
)
treeSeparator
(class:
Separator
) (default value:
10
)
childSeparator
(class:
Separator
) (default value:
20
)
gravity
(class:
Gravity
) (default value:
West
)
lineColor
(class:
Color
) (default value:
Black
)
See the example source code for an example of how to use this object.
See the legend for information about the conventions used in this documentation.