Added Window::getTextFlags()

This commit is contained in:
Bertrand Songis
2021-01-21 17:09:52 +01:00
parent 407656b065
commit 09e47a35cb
2 changed files with 7 additions and 1 deletions
+2 -1
View File
@@ -81,7 +81,8 @@
#define ARGB(a, r, g, b) (uint16_t)((((a) & 0xF0) << 8) + (((r) & 0xF0) << 4) + (((g) & 0xF0) << 0) + (((b) & 0xF0) >> 4))
#define COLOR(index) LcdFlags(unsigned(index) << 16u)
#define COLOR_IDX(att) uint8_t((att) >> 16u)
#define COLOR_IDX(flags) uint8_t((flags) >> 16u)
#define COLOR_MASK(flags) ((flags) & 0xFFFF0000u)
#define DEFAULT_COLOR COLOR(DEFAULT_COLOR_INDEX)
#define DEFAULT_BGCOLOR COLOR(DEFAULT_BGCOLOR_INDEX)
+5
View File
@@ -122,6 +122,11 @@ class Window
windowFlags = flags;
}
LcdFlags getTextFlags() const
{
return textFlags;
}
void setTextFlags(LcdFlags flags)
{
textFlags = flags;