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

BText Class Reference

#include <BText.h>

Inheritance diagram for BText:

Inheritance graph
[legend]
Collaboration diagram for BText:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BText (BWidget *parent, const BRect &frame)
 ~BText ()
void setFirstLineColor (uint16 color)
void resetFirstLineColor ()
void setTextDirection (BWidget::TextDirection dir)
 BText doesn't support setTextDirection().

void setText (const std::string &text)
bool full ()
int indexOfLastCharacterOnScreen ()
void setStripSingleNewlines (bool stripSingleNL)
bool stripSingleNewlines ()
virtual void setFont (BFont *font)
virtual void draw (BImage &img)
 Draw the widget onto the given image.

void clear ()
void setSlaveText (BText *slave)
BText * slaveText ()
virtual void updateScroller (BScroller *scroller)
virtual void scrollToPosition (BScroller *scroller, unsigned int position)

Protected Member Functions

void rewrap (unsigned int index, unsigned int length)

Protected Attributes

std::string _text
bool _full
uint16 _firstlinecolor
bool _firstlinecolorset
bool _stripSingleNL
std::vector< Line * > _lines
int _firstline
BText * _slave

Constructor & Destructor Documentation

BText::BText BWidget   parent,
const BRect   frame
 

BText::~BText  
 


Member Function Documentation

void BText::clear  
 

virtual void BText::draw BImage   img [virtual]
 

Draw the widget onto the given image.

Reimplemented from BWidget.

bool BText::full   [inline]
 

int BText::indexOfLastCharacterOnScreen  
 

void BText::resetFirstLineColor   [inline]
 

void BText::rewrap unsigned int    index,
unsigned int    length
[protected]
 

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

Implements BScrollable.

void BText::setFirstLineColor uint16    color [inline]
 

virtual void BText::setFont BFont   font [virtual]
 

Reimplemented from BWidget.

void BText::setSlaveText BText *    slave
 

void BText::setStripSingleNewlines bool    stripSingleNL
 

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

void BText::setTextDirection BWidget::TextDirection    dir [inline]
 

BText doesn't support setTextDirection().

BText* BText::slaveText   [inline]
 

bool BText::stripSingleNewlines   [inline]
 

virtual void BText::updateScroller BScroller   scroller [virtual]
 

Implements BScrollable.


Member Data Documentation

int BText::_firstline [protected]
 

uint16 BText::_firstlinecolor [protected]
 

bool BText::_firstlinecolorset [protected]
 

bool BText::_full [protected]
 

std::vector<Line*> BText::_lines [protected]
 

BText* BText::_slave [protected]
 

bool BText::_stripSingleNL [protected]
 

std::string BText::_text [protected]
 


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