- Main Page
- Classes
- Files

- File List

# listdataitem.h

    00001 #ifndef _LIST_DATA_ITEM_H_
    00002 #define _LIST_DATA_ITEM_H_
    00003
    00004 #include <nds.h>
    00005 #include "woopsistring.h"
    00006
    00007 namespace WoopsiUI {
    00008
    00013         class ListDataItem {
    00014         public:
    00015
    00021                 ListDataItem(const WoopsiString& text, const u32 value);
    00022
    00026                 virtual ~ListDataItem();
    00027
    00032                 inline const WoopsiString& getText() const { return _text; };
    00033
    00038                 inline const u32 getValue() const { return _value; };
    00039
    00044                 inline const bool isSelected() const { return _isSelected; };
    00045
    00050                 inline void setSelected(bool selected) { _isSelected = selected; };
    00051
    00062                 virtual s8 compareTo(const ListDataItem* item) const;
    00063
    00064         private:
    00065                 WoopsiString _text;
    00066                 u32 _value;
    00067                 bool _isSelected;
    00068         };
    00069 }
    00070
    00071 #endif