proc TreeItem(treeCtrl: wTreeCtrl; handle: HTREEITEM): wTreeItem {...}{.inline, raises: [],
tags: [].}
-
Default constructor.
proc `==`(a, b: wTreeItem): bool {...}{.inline, raises: [], tags: [].}
-
Checks for equality between two wTreeItem.
proc isOk(self: wTreeItem): bool {...}{.inline, raises: [], tags: [].}
-
Returns true if this instance is referencing a valid tree item.
proc unset(self: var wTreeItem) {...}{.inline, raises: [], tags: [].}
-
Unset the tree item.
proc len(self: wTreeItem): int {...}{.raises: [NilAccessError], tags: [].}
-
Gets the number of children in this item.
proc set(self: wTreeItem; text = ""; image = wTreeIgnore; selImage = wTreeIgnore; state = 0;
flag = true) {...}{.raises: [NilAccessError], tags: [].}
-
Sets the item attributes.
proc select(self: wTreeItem) {...}{.raises: [NilAccessError], tags: [].}
-
Select, focus, and ensure visible of the item, also unselect others.
proc scrollTo(self: wTreeItem) {...}{.raises: [NilAccessError], tags: [].}
-
Scrolls the specified item into view.
proc unselect(self: wTreeItem) {...}{.inline, raises: [NilAccessError], tags: [].}
-
Unselects this item. Notice: this will broken single selection states, don't use this if possible.
proc expand(self: wTreeItem) {...}{.raises: [NilAccessError], tags: [].}
-
Expands the item.
proc collapse(self: wTreeItem) {...}{.raises: [NilAccessError], tags: [].}
-
Collapses the item.
proc collapseAndReset(self: wTreeItem) {...}{.raises: [NilAccessError], tags: [].}
-
Collapses the given item and removes all children.
proc toggle(self: wTreeItem) {...}{.raises: [NilAccessError], tags: [].}
-
Toggles the item between collapsed and expanded states.
proc isBold(self: wTreeItem): bool {...}{.raises: [NilAccessError], tags: [].}
-
Returns true if the item is in bold state.
proc isCut(self: wTreeItem): bool {...}{.raises: [NilAccessError], tags: [].}
-
Returns true if the item is in cut-and-paste operation state.
proc isDropHighlight(self: wTreeItem): bool {...}{.raises: [NilAccessError], tags: [].}
-
Returns true if the item is in drop hightlight state.
proc isSelected(self: wTreeItem): bool {...}{.raises: [NilAccessError], tags: [].}
-
Returns true if the item is in selected state.
proc isExpanded(self: wTreeItem): bool {...}{.raises: [NilAccessError], tags: [].}
-
Returns true if the item is expanded.
proc isFocused(self: wTreeItem): bool {...}{.raises: [NilAccessError], tags: [].}
-
Returns true if the item is focused.
proc hasChildren(self: wTreeItem): bool {...}{.raises: [NilAccessError], tags: [].}
-
Returns true if the item is in having children state. Notice this only gets the state that can be set by setHasChildren().
proc expandAllChildren(self: wTreeItem) {...}{.raises: [NilAccessError], tags: [].}
-
Expands the item and all its children recursively.
proc collapseAllChildren(self: wTreeItem) {...}{.raises: [NilAccessError], tags: [].}
-
Collapses this item and all of its children, recursively.
proc isVisible(self: wTreeItem): bool {...}{.raises: [NilAccessError, Exception],
tags: [RootEffect].}
-
Returns true if the item is visible on the screen.
proc ensureVisible(self: wTreeItem) {...}{.raises: [NilAccessError], tags: [].}
-
Scrolls and/or expands items to ensure that the item is visible.
proc delete(self: wTreeItem) {...}{.raises: [NilAccessError], tags: [].}
-
Deletes the specified item.
proc deleteChildren(self: wTreeItem) {...}{.raises: [NilAccessError], tags: [].}
-
Deletes all children of the given item (but not the item itself).
proc toggleSelection(self: wTreeItem) {...}{.raises: [NilAccessError], tags: [].}
-
Toggles the item between selected and unselected states.
proc selectChildren(self: wTreeItem) {...}{.raises: [NilAccessError], tags: [].}
-
Select all the immediate children of the given parent.
proc sortChildren(self: wTreeItem; recursively = false) {...}{.raises: [NilAccessError],
tags: [].}
-
Sorts the children of the item by text (alphabetically).
proc sortChildren(self: wTreeItem; callback: wTreeCtrl_Compare; data: int = 0;
recursively = false) {...}{.raises: [NilAccessError], tags: [].}
-
Sorts the children of the item. The value passed into callback function is the data associated with the item
proc setFocused(self: wTreeItem) {...}{.raises: [NilAccessError], tags: [].}
-
Sets the currently focused item. Use select() instead of this if possible.