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.

30 lines
566 B

13 years ago
#ifndef UILABEL_H
#define UILABEL_H
#include "uiwidget.h"
13 years ago
class UILabel : public UIWidget
13 years ago
{
public:
UILabel();
static UILabelPtr create();
virtual void onStyleApply(const OTMLNodePtr& styleNode);
virtual void render();
void resizeToText();
void setText(const std::string& text) { m_text = text; }
13 years ago
void setAlign(AlignmentFlag align) { m_align = align; }
13 years ago
std::string getText() const { return m_text; }
AlignmentFlag getAlign() const { return m_align; }
13 years ago
private:
std::string m_text;
13 years ago
AlignmentFlag m_align;
13 years ago
};
#endif