Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/ceguilua/ceguilua-0.5.0/package/elements/ItemListBase.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.0 KB
Line 
1/***********************************************************************
2        ItemListBase
3***********************************************************************/
4class ItemListBase : public Window
5{
6    enum SortMode
7    {
8        Ascending,
9        Descending,
10        UserSort
11    };
12
13        unsigned int getItemCount() const;
14        ItemEntry* getItemFromIndex(unsigned int index) const;
15        unsigned int getItemIndex(const ItemEntry* item) const;
16        ItemEntry* findItemWithText(string text, const ItemEntry* start_item);
17        bool isItemInList(const ItemEntry* item) const;
18        bool isAutoResizeEnabled() const;
19        bool isSortEnabled() const;
20        SortMode getSortMode() const;
21        Rect getItemRenderArea() const;
22    Window* getContentPane() const;
23
24        void resetList();
25        void addItem(ItemEntry* item);
26        void insertItem(ItemEntry* item, const ItemEntry* position);
27        void removeItem(ItemEntry* item);
28        void handleUpdatedItemData();
29        void setAutoResizeEnabled(bool setting);
30        void sizeToContent();
31    void setSortEnabled(bool setting);
32    void setSortMode(SortMode mode);
33    void sortList();
34};
Note: See TracBrowser for help on using the repository browser.