summaryrefslogtreecommitdiff
path: root/plugingui/label.h
diff options
context:
space:
mode:
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::