summaryrefslogtreecommitdiff
path: root/src/interface/Label.h
diff options
context:
space:
mode:
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);
};