EZ
Up Prev Next Contents


3.2.2 Interaction Routines

To attach a tree to a ListTree widget, use

void EZ_SetListTreeWidgetTree(EZ_Widget *listTree,

EZ_TreeNode *tree)

This function attaches a tree of items to a listTree.

To get the current item-tree associated to a listTree widget, use

EZ_TreeNode *EZ_GetListTreeWidgetTree(EZ_Widget *listTree)

To get the currently selected item on a listTree, use

EZ_TreeNode *EZ_GetListTreeWidgetSelection(EZ_Widget *listTree)

EZ_TreeNode *EZ_ListTreeWidgetSelectNode(EZ_Widget *listTree,

EZ_TreeNode *node, int *location)

This function sets the selection of a listTree widget externally. If the argument location is not NULL, node will be displayed exactly at the point specified by location. The coordinate is measured relative to the upper-left corner of the widget window of listTree.

If node is NULL, it removes the current selection.

EZ_TreeNode *EZ_ListTreeWidgetSelectNodeUsingItem(EZ_Widget *listTree,

EZ_Item *item, int *location)

This function behaves the same as EZ_ListTreeWidgetSelectNode. It searches the item-tree managed by listTree for item. If found, the selection is set at the corresponding tree node.

If item is NULL, it removes the current selection.


HTML Documentation Maintainance:Arturo Espinosa <arturo@nuclecu.unam.mx>