_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
gcn::ListModel Class Referenceabstract

#include <listmodel.h>

Inheritance diagram for gcn::ListModel:
LuaListModel

Public Member Functions

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

Detailed Description

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.

Constructor & Destructor Documentation

virtual gcn::ListModel::~ListModel ( )
inlinevirtual

Member Function Documentation

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

Gets an element at a certain index in the list.

Parameters
ian index in the list.
Returns
an element as a string.

Implemented in LuaListModel.

virtual int gcn::ListModel::getNumberOfElements ( )
pure virtual

Gets the number of elements in the ListModel.

Returns
the number of elements in the ListModel

Implemented in LuaListModel.


The documentation for this class was generated from the following file:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.