$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
#include <widgets.h>
widgets.cpp - The stratagus ui widgets. | |
ListBoxWidget (unsigned int width, unsigned int height) | |
void | setList (lua_State *lua, lua_Object *lo) |
void | setSelected (int i) |
int | getSelected () const |
virtual void | setBackgroundColor (const gcn::Color &color) |
virtual void | setFont (gcn::Font *font) |
virtual void | addActionListener (gcn::ActionListener *actionListener) |
ListBoxWidget::ListBoxWidget | ( | unsigned int | width, | |
unsigned int | height | |||
) |
void ListBoxWidget::setList | ( | lua_State * | lua, | |
lua_Object * | lo | |||
) |
Set the list
void ListBoxWidget::setSelected | ( | int | selected | ) |
Sets the ListModel index of the selected element.
selected | The ListModel index of the selected element. |
int ListBoxWidget::getSelected | ( | ) | const |
Gets the ListModel index of the selected element.
void ListBoxWidget::setBackgroundColor | ( | const gcn::Color & | color | ) | [virtual] |
Set background color of the ListBoxWidget.
color | Color to set. |
Reimplemented from gcn::Widget.
void ListBoxWidget::setFont | ( | gcn::Font * | font | ) | [virtual] |
void ListBoxWidget::addActionListener | ( | gcn::ActionListener * | actionListener | ) | [virtual] |
Add an action listener
Reimplemented from gcn::Widget.