ClanSoft logo
ClanSoft logo
Entire Class Index Main Class Index Cross Index Global Index

Class CL_Label

Label component
Contained in: global
Derived from: CL_Component
Derived by: none
Group: GUI (Controls)

#include <ClanLib/gui.h>


public function member index:

Construction:

CL_Label(CL_Component* parent, CL_StyleManager* style = NULL);
CL_Label(const std::string& text, CL_Component* parent, CL_StyleManager* style = NULL);
CL_Label(const CL_Point& pos, const std::string& text, CL_Component* parent, CL_StyleManager* style = NULL);
CL_Label(const CL_Rect& pos, const std::string& text, CL_Component* parent, CL_StyleManager* style = NULL);
virtual ~CL_Label();

Attributes:

const std::string& get_text() const;
int get_alignment() const;

Operations:

void set_text(const std::string& text);
void set_text(int number);
void set_text(double number);
void clear();
void set_alignment(int alignment);
 

private function member index:

Implementation:

void init(const std::string& text);
CL_Label(const CL_Label& copy);
 

Description:


Function Member Descriptions:

CL_Label::CL_Label - Label Constructor
CL_Label(CL_Component* parent, CL_StyleManager* style = NULL);


CL_Label::CL_Label - Label Constructor
CL_Label(const std::string& text, CL_Component* parent, CL_StyleManager* style = NULL);


CL_Label::CL_Label - Label Constructor
CL_Label(const CL_Point& pos, const std::string& text, CL_Component* parent, CL_StyleManager* style = NULL);


CL_Label::CL_Label - Label Constructor
CL_Label(const CL_Rect& pos, const std::string& text, CL_Component* parent, CL_StyleManager* style = NULL);


CL_Label::clear - Clears any label contents. Equivalent with setText("").
void clear();


CL_Label::get_alignment - Returns the alignment setting.
See set_alignment() for more info.
int get_alignment() const;


CL_Label::get_text - Returns the labeltext.
const std::string& get_text() const;


CL_Label::set_alignment - Sets the alignment of the label contents
void set_alignment(int alignment);


CL_Label::set_text - Sets the labeltext.
void set_text(const std::string& text);


CL_Label::set_text - Sets the label contents to a plain text containing the printed value of num.
void set_text(int number);


CL_Label::set_text - Sets the label contents to a plain text containing the printed value of num.
void set_text(double number);


CL_Label::~CL_Label - Label Destructor
virtual ~CL_Label();



Variable Member Descriptions: