Mana
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ListBox Class Reference

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

#include <listbox.h>

Inheritance diagram for ListBox:
AvatarListBox QuestsListBox ServersListBox ShopListBox SkillListBox

Public Member Functions

 ListBox (gcn::ListModel *listModel)
 
void draw (gcn::Graphics *graphics) override
 Draws the list box.
 
void drawFrame (gcn::Graphics *graphics) override
 
void keyPressed (gcn::KeyEvent &keyEvent) override
 
void mousePressed (gcn::MouseEvent &mouseEvent) override
 
void mouseWheelMovedUp (gcn::MouseEvent &mouseEvent) override
 
void mouseWheelMovedDown (gcn::MouseEvent &mouseEvent) override
 
void mouseDragged (gcn::MouseEvent &event) override
 

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 35 of file listbox.h.

Constructor & Destructor Documentation

◆ ListBox()

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

Definition at line 34 of file listbox.cpp.

Member Function Documentation

◆ draw()

void ListBox::draw ( gcn::Graphics *  graphics)
override

Draws the list box.

Definition at line 39 of file listbox.cpp.

◆ drawFrame()

void ListBox::drawFrame ( gcn::Graphics *  graphics)
inlineoverride

Definition at line 46 of file listbox.h.

◆ keyPressed()

void ListBox::keyPressed ( gcn::KeyEvent &  keyEvent)
override

Definition at line 71 of file listbox.cpp.

◆ mouseDragged()

void ListBox::mouseDragged ( gcn::MouseEvent &  event)
override

Definition at line 136 of file listbox.cpp.

◆ mousePressed()

void ListBox::mousePressed ( gcn::MouseEvent &  mouseEvent)
override

Definition at line 109 of file listbox.cpp.

◆ mouseWheelMovedDown()

void ListBox::mouseWheelMovedDown ( gcn::MouseEvent &  mouseEvent)
override

Definition at line 131 of file listbox.cpp.

◆ mouseWheelMovedUp()

void ListBox::mouseWheelMovedUp ( gcn::MouseEvent &  mouseEvent)
override

Definition at line 126 of file listbox.cpp.


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