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

CLabel Class Reference

Label widget - Like a button, but cant be pushed. Container for text. More...

#include <CUI.h>

Inheritance diagram for CLabel::

CWidget List of all members.

Public Methods

 CLabel (int x, int y, string caption, int styles=TS_NOSTYLE, int fixed_size=-1)
 Constructor - (x,y), caption, styles (TS_*), fixed size in characters. More...

 ~CLabel ()
 Destructor. More...

virtual int update (CInputEvent *e)
 Standard update method. More...

virtual void draw (CGfxScreen *s)
 Standard draw method. More...

void setCaption (string s)
 Sets the caption of the label. More...

void setStyles (int styles)
 Sets the styles of the label. More...

string getCaption ()
 Returns the caption of the label. More...

int getStyles ()
 Returns the styles of the label. More...


Public Attributes

string m_caption
 Text in the label. More...


Detailed Description

Label widget - Like a button, but cant be pushed. Container for text.


Constructor & Destructor Documentation

CLabel::CLabel int    x,
int    y,
string    caption,
int    styles = TS_NOSTYLE,
int    fixed_size = -1
 

Constructor - (x,y), caption, styles (TS_*), fixed size in characters.

CLabel::~CLabel  
 

Destructor.


Member Function Documentation

void CLabel::draw CGfxScreen   s [virtual]
 

Standard draw method.

Reimplemented from CWidget.

string CLabel::getCaption  
 

Returns the caption of the label.

int CLabel::getStyles  
 

Returns the styles of the label.

void CLabel::setCaption string    s
 

Sets the caption of the label.

void CLabel::setStyles int    styles
 

Sets the styles of the label.

int CLabel::update CInputEvent   e [virtual]
 

Standard update method.

Reimplemented from CWidget.


Member Data Documentation

string CLabel::m_caption
 

Text in the label.


The documentation for this class was generated from the following files:
Generated on Thu Dec 6 00:14:54 2001 for Dijinni by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001