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

gcn::ListModel Class Reference

#include <listmodel.h>

Inheritance diagram for gcn::ListModel:

LuaListModel

List of all members.


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 (  )  [inline, virtual]


Member Function Documentation

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.

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

Gets an element at a certain index in the list.

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

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.