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

LuaListModel Class Reference

#include <widgets.h>

Inheritance diagram for LuaListModel:

gcn::ListModel

List of all members.


Public Member Functions

 LuaListModel ()
virtual int getNumberOfElements ()
virtual std::string getElementAt (int i)
widgets.cpp - The stratagus ui widgets.
void setList (lua_State *lua, lua_Object *lo)

Constructor & Destructor Documentation

LuaListModel::LuaListModel (  )  [inline]


Member Function Documentation

void LuaListModel::setList ( lua_State *  lua,
lua_Object lo 
)

Set the list

virtual int LuaListModel::getNumberOfElements (  )  [inline, virtual]

Gets the number of elements in the ListModel.

Returns:
the number of elements in the ListModel

Implements gcn::ListModel.

virtual std::string LuaListModel::getElementAt ( int  i  )  [inline, virtual]

Gets an element at a certain index in the list.

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

Implements gcn::ListModel.


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