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

Public Member Functions | List of all members
StringListModel Class Reference

#include <widgets.h>

Inheritance diagram for StringListModel:
gcn::ListModel

Public Member Functions

 StringListModel (std::vector< std::string > l)
 
virtual int getNumberOfElements ()
 
virtual std::string getElementAt (int i)
 
- Public Member Functions inherited from gcn::ListModel
virtual ~ListModel ()
 

Constructor & Destructor Documentation

◆ StringListModel()

StringListModel::StringListModel ( std::vector< std::string >  l)
inline

Member Function Documentation

◆ getElementAt()

virtual std::string StringListModel::getElementAt ( int  i)
inlinevirtual

Gets an element at a certain index in the list.

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

Implements gcn::ListModel.

◆ getNumberOfElements()

virtual int StringListModel::getNumberOfElements ( )
inlinevirtual

Gets the number of elements in the ListModel.

Returns
the number of elements in the ListModel

Implements gcn::ListModel.


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.