You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
657 B

13 years ago
#ifndef UILABEL_H
#define UILABEL_H
#include <global.h>
13 years ago
#include <ui/uielement.h>
#include <graphics/font.h>
13 years ago
class UILabel : public UIElement
{
public:
UILabel() :
13 years ago
UIElement(UI::Label),
13 years ago
m_align(AlignLeftCenter) { }
void setText(const std::string& text);
13 years ago
std::string getText() const { return m_text; }
13 years ago
void setAlign(AlignmentFlag align) { m_align = align; }
AlignmentFlag getAlign() const { return m_align; }
13 years ago
13 years ago
virtual const char *getScriptObjectType() const { return "UILabel"; }
13 years ago
private:
std::string m_text;
13 years ago
AlignmentFlag m_align;
13 years ago
};
13 years ago
typedef boost::shared_ptr<UILabel> UILabelPtr;
13 years ago
#endif // UILABEL_H