#include <listbox.h>

Same as the Guichan list box except this one doesn't have a background, instead completely relying on the scroll area. It also adds selection listener functionality.
Definition at line 36 of file listbox.h.
Public Member Functions | |
| ListBox (gcn::ListModel *listModel) | |
| Constructor. | |
| void | draw (gcn::Graphics *graphics) |
| Draws the list box. | |
| void | keyPressed (gcn::KeyEvent &keyEvent) |
| void | mouseWheelMovedUp (gcn::MouseEvent &mouseEvent) |
| void | mouseWheelMovedDown (gcn::MouseEvent &mouseEvent) |
| void | mouseDragged (gcn::MouseEvent &event) |
Static Private Attributes | |
| static float | mAlpha = 1.0 |
| ListBox::ListBox | ( | gcn::ListModel * | listModel | ) |
| void ListBox::draw | ( | gcn::Graphics * | graphics | ) |
Draws the list box.
Reimplemented in GuildListBox, and ShopListBox.
Definition at line 41 of file listbox.cpp.
| void ListBox::keyPressed | ( | gcn::KeyEvent & | keyEvent | ) |
Definition at line 70 of file listbox.cpp.
| void ListBox::mouseWheelMovedUp | ( | gcn::MouseEvent & | mouseEvent | ) |
Definition at line 108 of file listbox.cpp.
| void ListBox::mouseWheelMovedDown | ( | gcn::MouseEvent & | mouseEvent | ) |
Definition at line 121 of file listbox.cpp.
| void ListBox::mouseDragged | ( | gcn::MouseEvent & | event | ) |
Definition at line 135 of file listbox.cpp.
float ListBox::mAlpha = 1.0 [static, private] |
1.5.5