Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/external/ceguilua/ceguilua-0.5.0/package/elements/ItemListBase.pkg @ 7915

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

Reverted trunk again. We might want to find a way to delete these revisions again (x3n's changes are still available as diff in the commit mails).

  • 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.