FlexiLabel Class Reference

Label for text output. More...

#include <FlexiLabel.h>

Inheritance diagram for FlexiLabel:

Inheritance graph
[legend]
Collaboration diagram for FlexiLabel:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 FlexiLabel (const FlexiPosition &p, const FlexiSize &s, const char *caption, int align, FlexiFont *font, int size, int flags, FlexiWidget *prnt)
virtual ~FlexiLabel ()
void resize (const FlexiPosition &p, const FlexiSize &s)
virtual void paint ()
void setCaption (std::string &caption)
std::string & getCaption ()
void setFont (FlexiFont *font)
void setFontSize (int size)
void setAlignment (int align)
void setShadow (bool shadowed)


Detailed Description

Label for text output.

Author:
Alessandro Rasulo (mailto: alex9978@gmail.com)

Constructor & Destructor Documentation

FlexiLabel::FlexiLabel ( const FlexiPosition p,
const FlexiSize s,
const char *  caption,
int  align,
FlexiFont *  font,
int  size,
int  flags,
FlexiWidget prnt 
)

Constructor

FlexiLabel::~FlexiLabel (  )  [virtual]

Destructor


Member Function Documentation

void FlexiLabel::resize ( const FlexiPosition p,
const FlexiSize s 
) [virtual]

Resize the widget

Parameters:
p the new position
s the new size

Todo:
resize all children

Reimplemented from FlexiWidget.

void FlexiLabel::paint (  )  [virtual]

Paint the widget

Reimplemented from FlexiWidget.

void FlexiLabel::setCaption ( std::string &  caption  ) 

Sets the caption of the label

Parameters:
caption The string to set

std::string & FlexiLabel::getCaption (  ) 

Gets the caption of the label

Returns:
The caption

void FlexiLabel::setFont ( FlexiFont *  font  ) 

Sets the font of the label

Parameters:
font A loaded font

void FlexiLabel::setFontSize ( int  size  ) 

Sets the font size

Parameters:
size The size of the font

void FlexiLabel::setAlignment ( int  align  ) 

Sets the alignment of the label

Parameters:
Label alignment
See also:
FLX_ALIGN

void FlexiLabel::setShadow ( bool  shadowed  ) 

Sets the shadow visibility

Parameters:
shadowed as boolean


The documentation for this class was generated from the following files:

Generated on Sat Nov 15 01:34:31 2008 for FlexiSense by  doxygen 1.5.6