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

BButton Class Reference

#include <BButton.h>

Inheritance diagram for BButton:

Inheritance graph
[legend]
Collaboration diagram for BButton:

Collaboration graph
[legend]
List of all members.

Detailed Description

Push- or Radio-Button class.


Public Types

enum  ButtonType { BT_TRIGGER, BT_TOGGLE }

Public Member Functions

 BButton (BWidget *parent, const BRect &frame, ButtonType type=BT_TRIGGER)
void setDelegate (Delegate *deleg)
Delegatedelegate ()
virtual void setType (ButtonType type)
virtual ButtonType type () const
virtual bool value () const
virtual void setValue (bool value)
virtual void draw (BImage &img)
 Draw the widget onto the given image.

virtual void handleEvent (const BEvent &event)
 Handle the given event. Override if necessary.


Member Enumeration Documentation

enum BButton::ButtonType
 

Enumeration values:
BT_TRIGGER 
BT_TOGGLE  Toggle button.


Constructor & Destructor Documentation

BButton::BButton BWidget   parent,
const BRect   frame,
ButtonType    type = BT_TRIGGER
 


Member Function Documentation

Delegate* BButton::delegate   [inline]
 

virtual void BButton::draw BImage   img [virtual]
 

Draw the widget onto the given image.

Reimplemented from BLabel.

virtual void BButton::handleEvent const BEvent   event [virtual]
 

Handle the given event. Override if necessary.

Reimplemented from BLabel.

void BButton::setDelegate Delegate   deleg
 

virtual void BButton::setType ButtonType    type [virtual]
 

virtual void BButton::setValue bool    value [virtual]
 

virtual ButtonType BButton::type   const [inline, virtual]
 

virtual bool BButton::value   const [inline, virtual]
 


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