Lysa.ui  0.0
Lysa 3D Engine
TreeView Class Referenceabstract

Detailed Description

A hierarchical list widget that displays items in an expandable/collapsible tree structure.

Inherits from: Widget

Lua full name: lysa.ui.TreeView

Public Member Functions

nil set_resources (resBox: string, resScroll: string, resHandle: string)
 Reloads the visual style: resBox = row style, resScroll = scroll bar style, resHandle = expand/collapse handle style. More...
 
nil remove_all_items ()
 Removes and destroys all items from the tree. More...
 
TreeViewItem add_item (parent_or_widget: TreeViewItem|Widget, widget: Widget|nil)
 Adds an item to the tree. Pass only a widget to add a root-level item; pass a TreeViewItem and a widget to add a child under that item. More...
 
nil expand (item: Widget)
 Programmatically expands the tree item associated with the given content widget. More...
 

Member Function Documentation

nil set_resources ( string  resBox,
string  resScroll,
string  resHandle)

Reloads the visual style: resBox = row style, resScroll = scroll bar style, resHandle = expand/collapse handle style.

Parameters
resBoxstring
resScrollstring
resHandlestring
nil remove_all_items ( )

Removes and destroys all items from the tree.

TreeViewItem add_item ( TreeViewItem|Widget  parent_or_widget,
Widget|nil  widget)

Adds an item to the tree. Pass only a widget to add a root-level item; pass a TreeViewItem and a widget to add a child under that item.

Parameters
parent_or_widgetTreeViewItem|Widget
widgetWidget|nil
Returns
TreeViewItem
nil expand ( Widget  item)

Programmatically expands the tree item associated with the given content widget.

Parameters
itemWidget