virtualintAddItem(vgui::Panel*panel,void*userData);///< Adds an item to the end of the listbox. UserData is assumed to be a pointer that can be freed by the listbox if non-NULL.
classIBuyPresetListBoxUserData
{
protected:
friendBuyPresetListBox;
virtual~IBuyPresetListBoxUserData(){};
};
virtualintAddItem(vgui::Panel*panel,IBuyPresetListBoxUserData*userData);///< Adds an item to the end of the listbox. UserData is assumed to be a pointer that will be deleted by the listbox if non-NULL.
virtualintGetItemCount(void)const;///< Returns the number of items in the listbox
virtualintGetItemCount(void)const;///< Returns the number of items in the listbox
voidSwapItems(intindex1,intindex2);///< Exchanges two items in the listbox
voidSwapItems(intindex1,intindex2);///< Exchanges two items in the listbox
voidMakeItemVisible(intindex);///< Try to ensure that the given index is visible
voidMakeItemVisible(intindex);///< Try to ensure that the given index is visible
vgui::Panel*GetItemPanel(intindex)const;///< Returns the panel in the given index, or NULL
vgui::Panel*GetItemPanel(intindex)const;///< Returns the panel in the given index, or NULL
void*GetItemUserData(intindex);///< Returns the userData in the given index, or NULL
IBuyPresetListBoxUserData*GetItemUserData(intindex);///< Returns the userData in the given index, or NULL
voidSetItemUserData(intindex,void*userData);///< Sets the userData in the given index
voidSetItemUserData(intindex,IBuyPresetListBoxUserData*userData);///< Sets the userData in the given index
virtualvoidRemoveItem(intindex);///< Removes an item from the table (changing the indices of all following items), deleting the panel and userData
virtualvoidRemoveItem(intindex);///< Removes an item from the table (changing the indices of all following items), deleting the panel and userData
virtualvoidDeleteAllItems();///< clears the listbox, deleting all panels and userData
virtualvoidDeleteAllItems();///< clears the listbox, deleting all panels and userData