summaryrefslogtreecommitdiff
path: root/src/interface/Label.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-01-29 14:44:36 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-01-29 14:44:36 (GMT)
commit680a36549adaed0c3ce7e8906fadbdf190b0b3b0 (patch)
tree21ca16411c1687bb212369a59c5f3de2a0cf023b /src/interface/Label.h
parent7c53ca7799832920066c23cfad2f1d7fa82233c7 (diff)
downloadpowder-680a36549adaed0c3ce7e8906fadbdf190b0b3b0.zip
powder-680a36549adaed0c3ce7e8906fadbdf190b0b3b0.tar.gz
Background retrieval of save info and save list.
Diffstat (limited to 'src/interface/Label.h')
-rw-r--r--src/interface/Label.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/interface/Label.h b/src/interface/Label.h
index 9b5a454..b925140 100644
--- a/src/interface/Label.h
+++ b/src/interface/Label.h
@@ -5,6 +5,7 @@
#include "Component.h"
#include "Misc.h"
+#include "Colour.h"
namespace ui
{
@@ -14,10 +15,12 @@ namespace ui
ui::Point textPosition;
HorizontalAlignment textHAlign;
VerticalAlignment textVAlign;
+
+ Colour textColour;
public:
- Label(Window* parent_state, std::string labelText);
+ //Label(Window* parent_state, std::string labelText);
Label(Point position, Point size, std::string labelText);
- Label(std::string labelText);
+ //Label(std::string labelText);
virtual ~Label();
void TextPosition();
@@ -26,6 +29,8 @@ namespace ui
VerticalAlignment GetVAlignment() { return textVAlign; }
void SetAlignment(HorizontalAlignment hAlign, VerticalAlignment vAlign) { textHAlign = hAlign; textVAlign = vAlign; TextPosition(); }
+ void SetTextColour(Colour textColour) { this->textColour = textColour; }
+
virtual void Draw(const Point& screenPos);
};