Class | Fox::FXTreeItem |
In: |
rdoc-sources/FXTreeList.rb
|
Parent: | FXObject |
Each item in an FXTreeList is an instance of FXTreeItem.
A tree item can contain zero or more child items, and those items are arranged as a linked list. The FXTreeItem#first method returns the a reference to the first child item, if any, and the FXTreeItem#last method returns a reference to the last child item.
Return a new FXTreeItem instance, initialized with the specified text, open-state icon, closed-state icon and user data.
Return a reference to the closed-state icon (an FXIcon instance) for this tree item, or nil if none was specified.
Return a reference to the first child item for this tree item, or nil if this tree item has no child items.
Return a reference to the last child item for this tree item, or nil if this tree item has no child items.
Return a reference to the opened-state icon (an FXIcon instance) for this tree item, or nil if none was specified.
Return a reference to the parent item for this tree item, or nil if this is a root-level item.
Set the closed-state icon (an FXIcon instance) for this tree item, or nil if no icon should be used.
Set the opened-state icon (an FXIcon instance) for this tree item, or nil if no icon should be used.