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

BMenu Class Reference

#include <BMenu.h>

Inheritance diagram for BMenu:

Inheritance graph
[legend]
Collaboration diagram for BMenu:

Collaboration graph
[legend]
List of all members.

Detailed Description

A dialog displaying a list of options.


Public Member Functions

 BMenu (BScreen *screen, const BSize &size)
 ~BMenu ()
void addEntry (const std::string &title, u16 color=RGB15(0, 0, 0)|BIT(15), int tag=0)
const BListbox::EntryselectedEntry ()
void setEntrySpacing (int spacing)
int entrySpacing ()
void onEntryDoubleClick (BListbox *box, BListbox::Entry &entry)
void onEntryClick (BListbox *box, BListbox::Entry &entry)
void setRotation (BWidget::Rotation rot)
void handleEvent (const BEvent &event)
 Handle the given event. Override if necessary.

bool cancelled ()
virtual void run ()
 Run the dialog (starts a new run loop).


Constructor & Destructor Documentation

BMenu::BMenu BScreen   screen,
const BSize   size
 

BMenu::~BMenu  
 


Member Function Documentation

void BMenu::addEntry const std::string &    title,
u16    color = RGB15(0, 0, 0)|BIT(15),
int    tag = 0
 

bool BMenu::cancelled   [inline]
 

int BMenu::entrySpacing   [inline]
 

void BMenu::handleEvent const BEvent   event [virtual]
 

Handle the given event. Override if necessary.

Reimplemented from BWidget.

void BMenu::onEntryClick BListbox   box,
BListbox::Entry   entry
 

void BMenu::onEntryDoubleClick BListbox   box,
BListbox::Entry   entry
 

virtual void BMenu::run   [virtual]
 

Run the dialog (starts a new run loop).

Reimplemented from BDialog.

const BListbox::Entry& BMenu::selectedEntry  
 

void BMenu::setEntrySpacing int    spacing [inline]
 

void BMenu::setRotation BWidget::Rotation    rot
 


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