diff options
author | Paul "LeoNerd" Evans <leonerd@leonerd.org.uk> | 2020-05-15 16:54:49 +0100 |
---|---|---|
committer | Paul "LeoNerd" Evans <leonerd@leonerd.org.uk> | 2020-05-15 16:54:49 +0100 |
commit | 21bf7695f069085b562051a8ac465b2b90ccdef6 (patch) | |
tree | 4a89d26b90a274201fbffb93805ed351784eb87c /include | |
parent | 9393b38e3cb45d2c191855953d5acb24beacb469 (diff) |
Accept colour desc strings to tickit_pen_new_attrs()
Diffstat (limited to 'include')
-rw-r--r-- | include/tickit.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/tickit.h b/include/tickit.h index 1c3da2e..76ffe6d 100644 --- a/include/tickit.h +++ b/include/tickit.h @@ -112,6 +112,13 @@ typedef enum { TICKIT_N_PEN_ATTRS } TickitPenAttr; +/* additional attribute types recognised by tickit_pen_new_attrs */ +enum { + /* We're unlikely to ever have 256 attributes, so adding 0x100 should be safe */ + TICKIT_PEN_FG_DESC = 0x100 + TICKIT_PEN_FG, + TICKIT_PEN_BG_DESC = 0x100 + TICKIT_PEN_BG, +}; + typedef enum { TICKIT_PEN_UNDER_NONE, TICKIT_PEN_UNDER_SINGLE, |