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

BLabel Class Reference

#include <BLabel.h>

Inheritance diagram for BLabel:

Inheritance graph
[legend]
Collaboration diagram for BLabel:

Collaboration graph
[legend]
List of all members.

Detailed Description

Single-line text field.


Public Member Functions

 BLabel (BWidget *parent, const BRect &frame)
virtual void draw (BImage &img)
 Draw the widget onto the given image.

const std::string & text () const
void setText (const std::string &text)
bool drawsCursor ()
void setDrawsCursor (bool dc)
void setEditable (bool editable)
bool editable ()
void handleEvent (const BEvent &event)
 Handle the given event. Override if necessary.


Protected Member Functions

virtual void drawText (BImage &img)


Constructor & Destructor Documentation

BLabel::BLabel BWidget   parent,
const BRect   frame
 


Member Function Documentation

virtual void BLabel::draw BImage   img [virtual]
 

Draw the widget onto the given image.

Reimplemented from BWidget.

Reimplemented in BButton.

bool BLabel::drawsCursor   [inline]
 

virtual void BLabel::drawText BImage   img [protected, virtual]
 

bool BLabel::editable   [inline]
 

void BLabel::handleEvent const BEvent   event [virtual]
 

Handle the given event. Override if necessary.

Reimplemented from BWidget.

Reimplemented in BButton.

void BLabel::setDrawsCursor bool    dc [inline]
 

void BLabel::setEditable bool    editable
 

void BLabel::setText const std::string &    text
 

const std::string& BLabel::text   const [inline]
 


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