summaryrefslogtreecommitdiff
path: root/src/interface/Label.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-02-11 16:08:59 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-02-11 16:08:59 (GMT)
commit9f7b06ff47e12076a261b6a209b27c558741eb8a (patch)
treed0b4c8f53d976b1e2c1d771da47d7a9e4517db4d /src/interface/Label.h
parent54741c79ef6169eda47745ea4f13e4e1d9982497 (diff)
downloadpowder-9f7b06ff47e12076a261b6a209b27c558741eb8a.zip
powder-9f7b06ff47e12076a261b6a209b27c558741eb8a.tar.gz
Comments on save preview and some minor changes for vote bars
Diffstat (limited to 'src/interface/Label.h')
-rw-r--r--src/interface/Label.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interface/Label.h b/src/interface/Label.h
index b925140..4f7ce7f 100644
--- a/src/interface/Label.h
+++ b/src/interface/Label.h
@@ -11,6 +11,7 @@ namespace ui
{
class Label : public Component
{
+ protected:
std::string text;
ui::Point textPosition;
HorizontalAlignment textHAlign;
@@ -23,8 +24,8 @@ namespace ui
//Label(std::string labelText);
virtual ~Label();
- void TextPosition();
- void SetText(std::string text);
+ virtual void TextPosition();
+ virtual void SetText(std::string text);
HorizontalAlignment GetHAlignment() { return textHAlign; }
VerticalAlignment GetVAlignment() { return textVAlign; }
void SetAlignment(HorizontalAlignment hAlign, VerticalAlignment vAlign) { textHAlign = hAlign; textVAlign = vAlign; TextPosition(); }