a very simple list widget that supports word-wrapping entries
More...
#include <list.hpp>
a very simple list widget that supports word-wrapping entries
- Note
- if the width or height of the list changes, you must call adjustSize() method
void Gui::MWList::addItem |
( |
const std::string & |
name | ) |
|
void Gui::MWList::addSeparator |
( |
| ) |
|
add a seperator between the current and the next item.
void Gui::MWList::adjustSize |
( |
| ) |
|
Call after the size of the list changed, or items were inserted/removed
void Gui::MWList::clear |
( |
| ) |
|
unsigned int Gui::MWList::getItemCount |
( |
| ) |
|
std::string Gui::MWList::getItemNameAt |
( |
unsigned int |
at | ) |
|
- Attention
- if there are separators, this method will return "" at the place where the separator is
MyGUI::Button * Gui::MWList::getItemWidget |
( |
const std::string & |
name | ) |
|
get widget for an item name, useful to set up tooltip
void Gui::MWList::initialiseOverride |
( |
| ) |
|
|
protected |
void Gui::MWList::onItemSelected |
( |
MyGUI::Widget * |
_sender | ) |
|
|
protected |
void Gui::MWList::onMouseWheelMoved |
( |
MyGUI::Widget * |
_sender, |
|
|
int |
_rel |
|
) |
| |
|
protected |
void Gui::MWList::redraw |
( |
bool |
scrollbarShown = false | ) |
|
|
protected |
void Gui::MWList::removeItem |
( |
const std::string & |
name | ) |
|
void Gui::MWList::scrollToTop |
( |
| ) |
|
void Gui::MWList::setPropertyOverride |
( |
const std::string & |
_key, |
|
|
const std::string & |
_value |
|
) |
| |
|
virtual |
Event: Item selected with the mouse. signature: void method(std::string itemName, int index)
Event: Item selected with the mouse. signature: void method(MyGUI::Widget* sender)
MyGUI::Widget* Gui::MWList::mClient |
|
private |
int Gui::MWList::mItemHeight |
|
private |
std::vector<std::string> Gui::MWList::mItems |
|
private |
std::string Gui::MWList::mListItemSkin |
|
private |
MyGUI::ScrollView* Gui::MWList::mScrollView |
|
private |
The documentation for this class was generated from the following files:
- /home/travis/build/OpenMW/openmw/components/widgets/list.hpp
- /home/travis/build/OpenMW/openmw/components/widgets/list.cpp