ListBox Class Reference
[Core GUI related classes (widgets)]

#include <listbox.h>

Inheritance diagram for ListBox:

GuildListBox ShopListBox

List of all members.


Detailed Description

A list box, meant to be used inside a scroll area.

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

Constructor & Destructor Documentation

ListBox::ListBox ( gcn::ListModel *  listModel  ) 

Constructor.

Definition at line 36 of file listbox.cpp.


Member Function Documentation

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.


Member Data Documentation

float ListBox::mAlpha = 1.0 [static, private]

Reimplemented in ShopListBox.

Definition at line 62 of file listbox.h.


The documentation for this class was generated from the following files:

Generated on Sun Apr 26 17:30:43 2009 for The Mana World by  doxygen 1.5.5