#include <BListbox.h>
Inheritance diagram for BListbox:


Public Member Functions | |
| BListbox (BWidget *parent, const BRect &frame) | |
| void | setDelegate (Delegate *deleg) |
| Delegate * | delegate () |
| void | addEntry (const Entry &entry) |
| void | addEntry (const std::string &title, u16 color=0, int tag=0) |
| Add entry with given title, color, and tag. | |
| void | clear () |
| virtual void | setEntrySpacing (int spacing) |
| virtual int | entrySpacing () |
| virtual void | draw (BImage &img) |
| Draw the widget onto the given image. | |
| virtual void | updateScroller (BScroller *scroller) |
| virtual void | scrollToPosition (BScroller *scroller, unsigned int position) |
| void | handleEvent (const BEvent &event) |
| Handle the given event. Override if necessary. | |
| const Entry & | selectedEntry () |
| void | selectEntry (const std::string &name) |
| void | selectEntry (int index) |
| void | selectEntryWithTag (int tag) |
| bool | drawsSelection () |
| void | setDrawsSelection (bool draws) |
|
||||||||||||
|
|
|
||||||||||||||||
|
Add entry with given title, color, and tag. Use the special color value 0 to make the given entry use the widget's textcolor value. |
|
|
|
|
|
|
|
|
|
|
|
Draw the widget onto the given image.
Reimplemented from BWidget. |
|
|
|
|
|
|
|
|
Handle the given event. Override if necessary.
Reimplemented from BWidget. |
|
||||||||||||
|
Implements BScrollable. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Implements BScrollable. |
1.3-rc3