summaryrefslogtreecommitdiff
path: root/plugingui/colour.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-06-09 09:45:03 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-06-09 09:45:03 +0200
commit21554166b294470ac593a1a90c82d1b4fe75c61e (patch)
tree4fe4c5782a0bbcef3e3309633e0c2ee7e71c4e2a /plugingui/colour.h
parent108a94eaefc1e9ccfe316d4ce9a30e3bd532af5a (diff)
Add ctor for creating colours from four unsigned char values.
Diffstat (limited to 'plugingui/colour.h')
-rw-r--r--plugingui/colour.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugingui/colour.h b/plugingui/colour.h
index 0e85bc6..26f424c 100644
--- a/plugingui/colour.h
+++ b/plugingui/colour.h
@@ -26,13 +26,17 @@
*/
#pragma once
-namespace GUI {
+#include <cstdint>
+
+namespace GUI
+{
class Colour {
public:
Colour();
Colour(float grey, float alpha = 1.0f);
Colour(float red, float green, float blue, float alpha = 1.0f);
+ Colour(std::uint8_t r, std::uint8_t g, std::uint8_t b, std::uint8_t a);
Colour(Colour&& other);
Colour(const Colour& other);
~Colour();