Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/ceguilua/ceguilua-0.5.0/package/elements/Listbox.pkg @ 2608

Last change on this file since 2608 was 2608, checked in by rgrieder, 15 years ago

Large cleanup in CEGUILua:

  • Removed the heavy 1.7MB bind files and added the small pkg files from the CEGUI source instead
  • Those pkg files get copied version incrementally (starting with 0.5.0) to the binary dir. That saves a lot of files when having 4 different versions.
  • Added support for CEGUI 0.6.0 and 0.6.2
  • Added library info files
  • CEGUILua 0.5.0 finally supports Lua 5.1 too That means all version support both Lua 5.0 and 5.1
  • Added unified diffs with the changes to the CEGUILua source
  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1/***********************************************************************
2        Listbox
3***********************************************************************/
4class Listbox : public Window
5{
6        unsigned long getItemCount() const;
7        unsigned long getSelectedCount() const;
8        ListboxItem* getFirstSelectedItem() const;
9        ListboxItem* getNextSelected(const ListboxItem* start_item) const;
10        ListboxItem* getListboxItemFromIndex(unsigned long index) const;
11        unsigned long getItemIndex(const ListboxItem* item) const;
12        ListboxItem* findItemWithText(string text, const ListboxItem* start_item);
13        bool isSortEnabled() const;
14        bool isMultiselectEnabled() const;
15        bool isItemSelected(unsigned long index) const;
16        bool isListboxItemInList(const ListboxItem* item) const;
17        bool isVertScrollbarAlwaysShown() const;
18        bool isHorzScrollbarAlwaysShown() const;
19
20        void resetList(void);
21        void addItem(ListboxItem* item);
22        void insertItem(ListboxItem* item, const ListboxItem* position);
23        void removeItem(const ListboxItem* item);
24        void clearAllSelections(void);
25        void setSortingEnabled(bool setting);
26        void setMultiselectEnabled(bool setting);
27        void setShowVertScrollbar(bool setting);
28        void setShowHorzScrollbar(bool setting);
29        void setItemSelectState(ListboxItem* item, bool state);
30        void setItemSelectState(unsigned long item_index, bool state);
31        void handleUpdatedItemData(void);
32        void ensureItemIsVisible(unsigned long item_index);
33        void ensureItemIsVisible(const ListboxItem* item);
34       
35        Rect getListRenderArea() const;
36        Scrollbar* getVertScrollbar() const;
37        Scrollbar* getHorzScrollbar() const;
38        float getWidestItemWidth() const;
39        float getTotalItemsHeight() const;
40};
Note: See TracBrowser for help on using the repository browser.