Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

BListbox Class Reference

#include <BListbox.h>

Inheritance diagram for BListbox:

Inheritance graph
[legend]
Collaboration diagram for BListbox:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BListbox (BWidget *parent, const BRect &frame)
void setDelegate (Delegate *deleg)
Delegatedelegate ()
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 EntryselectedEntry ()
void selectEntry (const std::string &name)
void selectEntry (int index)
void selectEntryWithTag (int tag)
bool drawsSelection ()
void setDrawsSelection (bool draws)

Constructor & Destructor Documentation

BListbox::BListbox BWidget   parent,
const BRect   frame
 


Member Function Documentation

void BListbox::addEntry const std::string &    title,
u16    color = 0,
int    tag = 0
[inline]
 

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.

void BListbox::addEntry const Entry   entry
 

void BListbox::clear  
 

Delegate* BListbox::delegate   [inline]
 

virtual void BListbox::draw BImage   img [virtual]
 

Draw the widget onto the given image.

Reimplemented from BWidget.

bool BListbox::drawsSelection   [inline]
 

virtual int BListbox::entrySpacing   [virtual]
 

void BListbox::handleEvent const BEvent   event [virtual]
 

Handle the given event. Override if necessary.

Reimplemented from BWidget.

virtual void BListbox::scrollToPosition BScroller   scroller,
unsigned int    position
[virtual]
 

Implements BScrollable.

const Entry& BListbox::selectedEntry  
 

void BListbox::selectEntry int    index
 

void BListbox::selectEntry const std::string &    name
 

void BListbox::selectEntryWithTag int    tag
 

void BListbox::setDelegate Delegate   deleg
 

void BListbox::setDrawsSelection bool    draws [inline]
 

virtual void BListbox::setEntrySpacing int    spacing [virtual]
 

virtual void BListbox::updateScroller BScroller   scroller [virtual]
 

Implements BScrollable.


The documentation for this class was generated from the following file:
Generated on Sat Dec 29 10:00:34 2007 for DSGUI by doxygen1.3-rc3