summaryrefslogtreecommitdiff
path: root/plugingui/label.h
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-04-17 12:48:41 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2017-04-17 12:54:16 +0200
commit7cfbb8bfb1c4689dc78115931bab96d657be88be (patch)
tree2ddb893809114920bbc3f15f6592493bdd86d7cd /plugingui/label.h
parentf0e8f4c95349bbc658bd73f885908b7c324dbb46 (diff)
Add version number to GUI.
Diffstat (limited to 'plugingui/label.h')
-rw-r--r--plugingui/label.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugingui/label.h b/plugingui/label.h
index f76a598..837f6c0 100644
--- a/plugingui/label.h
+++ b/plugingui/label.h
@@ -31,6 +31,7 @@
#include "font.h"
#include <string>
+#include <memory>
namespace GUI {
@@ -46,9 +47,9 @@ public:
virtual ~Label() = default;
void setText(const std::string& text);
-
void setAlignment(TextAlignment alignment);
-
+ void setColour(Colour colour);
+ void resetColour();
void resizeToText();
protected:
@@ -60,6 +61,9 @@ private:
Font font{":fontemboss.png"};
TextAlignment alignment{TextAlignment::left};
int border{0};
+
+ // optional colour
+ std::unique_ptr<Colour> colour;
};
} // GUI::