# File rdoc-sources/FXTreeList.rb, line 334 def removeItem(item, notify=false); # Remove items in range [_fromItem_, _toItem_] inclusively. # If _notify_ is +true+, a +SEL_DELETED+ message is sent to the list's message # target before each item is removed. def removeItems(fromItem, toItem, notify=false); end # Remove all items from the list. # If _notify_ is +true+, a +SEL_DELETED+ message is sent to the list's message # target before each item is removed. def clearItems(notify=false); end # Return item width def getItemWidth(item); end # Return item height def getItemHeight(item); end # Return a reference to the tree item at (_x_, _y_), if any. def getItemAt(x, y); end # # Search items by _text_, beginning from item _start_ (an FXTreeItem instance). # If the start item is +nil+, the search will start at the first, top-most # item in the list. # Flags may be +SEARCH_FORWARD+ or +SEARCH_BACKWARD+ to control the search # direction; this can be combined with +SEARCH_NOWRAP+ or +SEARCH_WRAP+ # to control whether the search wraps at the start or end of the list. # The option +SEARCH_IGNORECASE+ causes a case-insensitive match. Finally, # passing +SEARCH_PREFIX+ causes searching for a prefix of the item name. # Return +nil+ if no matching item is found. # def findItem(text, start=nil, flags=SEARCH_FORWARD|SEARCH_WRAP); end # # Search items by associated user _data_, beginning from item _start_ # (an FXTreeItem instance). # If the start item is +nil+ the search will start at the first, top-most item # in the list. # Flags may be +SEARCH_FORWARD+ or +SEARCH_BACKWARD+ to control the search # direction; this can be combined with +SEARCH_NOWRAP+ or +SEARCH_WRAP+ # to control whether the search wraps at the start or end of the list. # Return +nil+ if no matching item is found. # def findItemByData(data, start=nil, flags=SEARCH_FORWARD|SEARCH_WRAP); end # Scroll the list to make _item_ visible def makeItemVisible(item); end # Change item's text def setItemText(item, text); end # Return item's text def getItemText(item); end # Change item's open icon, deleting the old icon if it's owned def setItemOpenIcon(item, openIcon, owned=false); end # Return item's open icon def getItemOpenIcon(item); end # Change item's closed icon, deleting the old icon if it's owned def setItemClosedIcon(item, closedIcon, owned=false); end # Return item's closed icon def getItemClosedIcon(item); end # Change item's user data def setItemData(item, data); end # Return item's user data def getItemData(item); end # Return +true+ if item is selected def itemSelected?(item); end # Return +true+ if item is current def itemCurrent?(item); end # Return +true+ if item is visible def itemVisible?(item); end # Return +true+ if item opened def itemOpened?(item); end # Return +true+ if item expanded def itemExpanded?(item); end # Return +true+ if item is a leaf-item, i.e. has no children def itemLeaf?(item); end # Return +true+ if item is enabled def itemEnabled?(item); end # Return item hit code: 0 outside, 1 icon, 2 text, 3 box def hitItem(item, x, y); end # Repaint item def updateItem(item); end # Enable item def enableItem(item); end # Disable item def disableItem(item); end # Select item. # If _notify_ is +true+, a +SEL_SELECTED+ message is sent to the list's # message target after the item is selected. def selectItem(item, notify=false); end # Deselect item. # If _notify_ is +true+, a +SEL_DESELECTED+ message is sent to the list's # message target after the item is deselected. def deselectItem(item, notify=false); end # Toggle item selection. # If _notify_ is +true+, a +SEL_SELECTED+ or +SEL_DESELECTED+ message is # sent to the list's message target to indicate the change. def toggleItem(item, notify=false); end # # Set this item's state to opened. The primary result of this change is # that the item's icon will change to its "open" icon. # This is different from the #expandTree method, which actually # collapses part of the tree list, making some items invisible. # If _notify_ is +true+, a +SEL_OPENED+ message is sent to the list's # message target after the item is opened. # def openItem(item, notify=false); end # # Set this item's state to closed. The primary result of this change is # that the item's icon will change to its "closed" icon. # This is different from the #collapseTree method, which actually # collapses part of the tree list, making some items invisible. # If _notify_ is +true+, a +SEL_CLOSED+ message is sent to the list's # message target after the item is closed. # def closeItem(item, notify=false); end # Collapse sub-tree rooted at _tree_. # If _notify_ is +true+, a +SEL_COLLAPSED+ message is sent to the list's # message target after the sub-tree is collapsed. def collapseTree(tree, notify=false); end # Expand sub-tree rooted at _tree_. # If _notify_ is +true+, a +SEL_EXPANDED+ message is sent to the list's # message target after the sub-tree is expanded. def expandTree(tree, notify=false); end # # Change current item. If there is already a current item, that item # is first closed. After _item_ is set as the tree list's current item, # it is opened and selected. # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the list's # message target after the current item changes. # def setCurrentItem(item, notify=false); end # Extend selection from anchor item to _item_. # If _notify_ is +true+, a series of +SEL_SELECTED+ and +SEL_DESELECTED+ # messages may be sent to the list's message target, indicating the changes. def extendSelection(item, notify=false); end # Deselect all items. # If _notify_ is +true+, +SEL_DESELECTED+ messages will be sent to the list's # message target indicating the affected items. def killSelection(notify=false); end # Sort root items. def sortRootItems(); end # Sort all items recursively. def sortItems(); end # Sort children of _item_ def sortChildItems(item); end end