DropDownList.pkg 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. $#include "DropDownList.h"
  2. class DropDownList : public Menu
  3. {
  4. DropDownList(Context* context);
  5. ~DropDownList();
  6. void AddItem(UIElement* item);
  7. void InsertItem(unsigned index, UIElement* item);
  8. void RemoveItem(UIElement* item);
  9. void RemoveItem(unsigned index);
  10. void RemoveAllItems();
  11. void SetSelection(unsigned index);
  12. void SetPlaceholderText(const String& text);
  13. void SetPlaceholderText(const const char* text);
  14. void SetResizePopup(bool enable);
  15. unsigned GetNumItems() const;
  16. UIElement* GetItem(unsigned index) const;
  17. unsigned GetSelection() const;
  18. UIElement* GetSelectedItem() const;
  19. ListView* GetListView() const;
  20. UIElement* GetPlaceholder() const;
  21. const String& GetPlaceholderText() const;
  22. bool GetResizePopup() const;
  23. void SetSelectionAttr(unsigned index);
  24. tolua_readonly tolua_property__get_set unsigned numItems;
  25. tolua_property__get_set unsigned selection;
  26. tolua_readonly tolua_property__get_set UIElement* selectedItem;
  27. tolua_readonly tolua_property__get_set ListView* listView;
  28. tolua_readonly tolua_property__get_set UIElement* placeholder;
  29. tolua_property__get_set String& placeholderText;
  30. tolua_property__get_set bool resizePopup;
  31. };