_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <listmodel.h>
Public Member Functions | |
virtual int | getNumberOfElements ()=0 |
virtual std::string | getElementAt (int i)=0 |
virtual | ~ListModel () |
Represents a list. It is used in certain Widgets, like the ListBox, to handle a list with string elements. If you want to use Widgets like ListBox, you should inherit from this calss and implement it's functions.
|
inlinevirtual |
|
pure virtual |
Gets an element at a certain index in the list.
i | an index in the list. |
Implemented in LuaListModel, and StringListModel.
|
pure virtual |
Gets the number of elements in the ListModel.
Implemented in LuaListModel, and StringListModel.