ManaPlus
Public Member Functions
ListModel Class Referenceabstract

#include <listmodel.h>

Inheritance diagram for ListModel:
AvatarListModel ColorListModel ColorModel ExtendedListModel FontSizeChoiceListModel IconsModel IgnoreChoicesListModel ItemsModal KeyListModel MagicSchoolModel ModeListModel NamesModel OpenGLListModel PlayerRelationListModel ServersListModel ShopItems SkillModel SortListModelBuy SortListModelInv TargetTypeModel TypeListModel UpdateListModel UpdateTypeModel UserPalette WorldListModel

Public Member Functions

 ListModel ()
 
virtual ~ListModel ()
 
virtual int getNumberOfElements ()=0
 
virtual std::string getElementAt (int i)=0
 

Detailed Description

An interface for a model that represents a list. It is used in certain widgets, like the ListBox, to handle a lists with string elements. If you want to use widgets like ListBox, make a derived class from this class that represents your list.

Definition at line 79 of file listmodel.h.

Constructor & Destructor Documentation

◆ ListModel()

ListModel::ListModel ( )
inline

Definition at line 82 of file listmodel.h.

83  { }

◆ ~ListModel()

virtual ListModel::~ListModel ( )
inlinevirtual

Destructor.

Definition at line 90 of file listmodel.h.

91  { }

Member Function Documentation

◆ getElementAt()

virtual std::string ListModel::getElementAt ( int  i)
pure virtual

◆ getNumberOfElements()

virtual int ListModel::getNumberOfElements ( )
pure virtual

The documentation for this class was generated from the following file: