____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       A futuristic real-time strategy game.
          This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project. Distributed under the "GNU General Public License"

LuaListModel Class Reference

#include <widgets.h>

Inheritance diagram for LuaListModel:

gcn::ListModel

List of all members.

Public Member Functions

 LuaListModel ()
void setList (lua_State *lua, lua_Object *lo)
virtual int getNumberOfElements ()
virtual std::string getElementAt (int i)


Detailed Description

Definition at line 244 of file widgets.h.


Constructor & Destructor Documentation

LuaListModel::LuaListModel (  )  [inline]

Definition at line 248 of file widgets.h.


Member Function Documentation

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

Set the list

Definition at line 1219 of file widgets.cpp.

References LuaToString().

Referenced by ListBoxWidget::setList().

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.

Definition at line 251 of file widgets.h.

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.

Definition at line 252 of file widgets.h.


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

Generated on Sat Feb 21 00:28:25 2009 for Bos Wars by  doxygen 1.5.6