TreeWidget

Tree widget with items which can have icons and labels

Constructors

this
this()

empty parameter list constructor - for usage by factory

this
this(string ID, ScrollBarMode hscrollbarMode, ScrollBarMode vscrollbarMode)

create with ID parameter

Inherited Members

From TreeWidgetBase

_tree
TreeItems _tree;
Undocumented in source.
items
TreeItems items [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
selectionChange
Signal!OnTreeSelectionChangeListener selectionChange;
Undocumented in source.
expandedChange
Signal!OnTreeExpandedStateListener expandedChange;
Undocumented in source.
popupMenu
Listener!OnTreePopupMenuListener popupMenu;

allows to provide individual popup menu for items

_needUpdateWidgets
bool _needUpdateWidgets;
Undocumented in source.
_needUpdateWidgetStates
bool _needUpdateWidgetStates;
Undocumented in source.
_noCollapseForSingleTopLevelItem
bool _noCollapseForSingleTopLevelItem;
Undocumented in source.
noCollapseForSingleTopLevelItem
bool noCollapseForSingleTopLevelItem [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
noCollapseForSingleTopLevelItem
bool noCollapseForSingleTopLevelItem [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
onTreeItemPopupMenu
MenuItem onTreeItemPopupMenu(TreeItems source, TreeItem selectedItem)
Undocumented in source. Be warned that the author may not have intended to support it.
~this
~this()
Undocumented in source.
createItemWidget
Widget createItemWidget(TreeItem item)

Override to use custom tree item widgets.

findItemById
TreeItem findItemById(string id)

returns item by id, null if not found

onKey
bool onKey(Widget source, KeyEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
addWidgets
void addWidgets(TreeItem item)
Undocumented in source. Be warned that the author may not have intended to support it.
updateWidgets
void updateWidgets()
Undocumented in source. Be warned that the author may not have intended to support it.
clearAllItems
void clearAllItems()
Undocumented in source. Be warned that the author may not have intended to support it.
updateWidgetStates
void updateWidgetStates()
Undocumented in source. Be warned that the author may not have intended to support it.
layout
void layout(Rect rc)

Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout).

minimumVisibleContentSize
Point minimumVisibleContentSize()
Undocumented in source. Be warned that the author may not have intended to support it.
fullContentSize
Point fullContentSize()

calculate full content size in pixels

measure
void measure(int parentWidth, int parentHeight)

Measure widget according to desired width and height constraints. (Step 1 of two phase layout).

onTreeContentChange
void onTreeContentChange(TreeItems source)

listener

onTreeStateChange
void onTreeStateChange(TreeItems source)
Undocumented in source. Be warned that the author may not have intended to support it.
onTreeExpandedStateChange
void onTreeExpandedStateChange(TreeItems source, TreeItem item)
Undocumented in source. Be warned that the author may not have intended to support it.
findItemWidget
TreeItemWidget findItemWidget(TreeItem item)
Undocumented in source. Be warned that the author may not have intended to support it.
onTreeItemSelected
void onTreeItemSelected(TreeItems source, TreeItem selectedItem, bool activated)
Undocumented in source. Be warned that the author may not have intended to support it.
makeItemVisible
void makeItemVisible(TreeItem item)
Undocumented in source. Be warned that the author may not have intended to support it.
clearSelection
void clearSelection()
Undocumented in source. Be warned that the author may not have intended to support it.
selectItem
void selectItem(TreeItem item, bool makeVisible)
Undocumented in source. Be warned that the author may not have intended to support it.
selectItem
void selectItem(string itemId, bool makeVisible)
Undocumented in source. Be warned that the author may not have intended to support it.
handleAction
bool handleAction(Action a)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta