# File rdoc-sources/FXListBox.rb, line 99 def appendItem(text, icon=nil, ptr=nil); # Prepend an item to the list def prependItem(text, icon=nil, ptr=nil); end # # Move item from _oldIndex_ to _newIndex_ and return the new # index of the item. # Raises IndexError if either _oldIndex_ or _newIndex_ is out of bounds. # def moveItem(newIndex, oldIndex); end # # Extract item from list and return a reference to the item. # Raises IndexError if _index_ is out of bounds. # def extractItem(index); end # # Remove this item from the list. # Raises IndexError if _index_ is out of bounds. # def removeItem(index); end # Remove all items from the list def clearItems(); end # # Search items by _text_, beginning from item _start_. If the start # item is -1 the search will start at the first 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 text. # Return -1 if no matching item is found. # def findItem(text, start=-1, flags=SEARCH_FORWARD|SEARCH_WRAP); end # # Search items by associated user _data_, beginning from item _start_. If the # start item is -1 the search will start at the first 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. # def findItemByData(data, start=-1, flags=SEARCH_FORWARD|SEARCH_WRAP); end # # Set text for specified item to _text_. # Raises IndexError if _index_ is out of bounds. # def setItemText(index, text); end # # Return text for specified item. # Raises IndexError if _index_ is out of bounds. # def getItemText(index); end # # Set icon for specified item to _icon_. # Raises IndexError if _index_ is out of bounds. # def setItemIcon(index, icon, owned=false); end # # Return icon for specified item. # Raises IndexError if _index_ is out of bounds. # def getItemIcon(index); end # # Set user data object for specified item to _ptr_. # Raises IndexError if _index_ is out of bounds. # def setItemData(index, ptr); end # # Return user data object for specified item. # Raises IndexError if _index_ is out of bounds. # def getItemData(index); end # Return +true+ if the pane is shown. def paneShown?; end # Sort items using current sort function def sortItems; end alias appendItem << end