List of all members.
Detailed Description
A Basic ListBox.
The list box is used to select an item in a list.
Member Typedef Documentation
Constructor & Destructor Documentation
| ListBox::ListBox |
( |
const std::string & |
name, |
|
|
Uint |
width, |
|
|
Uint |
height, |
|
|
ListBoxType |
type = LIST_SINGLE | |
|
) |
| | |
| ListBox::~ListBox |
( |
|
) |
[inline] |
Member Function Documentation
| void ListBox::addItem |
( |
ListItem * |
item |
) |
|
| void ListBox::addItem |
( |
const StringList & |
strList |
) |
|
Adds a set of text-only items based on a string list.
- Parameters:
-
| strList | A reference to a StringList. |
| void ListBox::areaChanged |
( |
|
) |
[private, virtual] |
Clears the ListBox of all items.
- Warning:
- Clearing the ListBox also invalidates any pointers or references to any of the stored ListItem objects.
| void ListBox::clearSelection |
( |
|
) |
|
Clears the current selection.
| void ListBox::drawList |
( |
|
) |
[private] |
| void ListBox::drawPlain |
( |
|
) |
[private, virtual] |
| void ListBox::drawSkin |
( |
|
) |
[private, virtual] |
Render this control.
Reimplemented from ScrollArea.
Returns a list of all items in the ListBox.
Gets a list of the currently selected items.
| Uint ListBox::getSelectionIndex |
( |
|
) |
const [inline] |
| void ListBox::onClick |
( |
Event * |
event |
) |
[private, virtual] |
| void ListBox::onKeyDown |
( |
Event * |
event |
) |
[private, virtual] |
Called whenever an EVENT_KEYDOWN event is fired.
Reimplemented from Control.
| void ListBox::onKeyUp |
( |
Event * |
event |
) |
[private, virtual] |
Called whenever an EVENT_KEYUP event is fired.
Reimplemented from Control.
| void ListBox::scrollAreaInit |
( |
|
) |
[private, virtual] |
Ensure that we're automatically setting our height/width parameters.
Reimplemented from ScrollArea.
| void ListBox::setSelection |
( |
const std::string & |
ref |
) |
|
Sets the selection using a std::string reference.
- Parameters:
-
| ref | A reference to a std::string. |
Member Data Documentation
Current line based on scrollbar's position.
Index of the currently selected item.
Position of the Insertion Cursor.
Previous line based on scrollbar's position.
The documentation for this class was generated from the following files:
- C:/Development/LoM/client/src/Gui/Controls/ListBox.h
- C:/Development/LoM/client/src/Gui/Controls/ListBox.cpp