2017-05-15 16:46:33 -04:00
|
|
|
#ifndef ROFI_INCLUDE_CSS_COLORS_H
|
|
|
|
#define ROFI_INCLUDE_CSS_COLORS_H
|
|
|
|
|
2021-08-17 19:16:45 -04:00
|
|
|
#include <stdint.h>
|
2018-06-12 05:28:31 -04:00
|
|
|
/**
|
|
|
|
* @defgroup CSSCOLORS CssColors
|
|
|
|
* @ingroup HELPERS
|
|
|
|
*
|
|
|
|
* Lookup table for CSS 4.0 named colors. Like `Navo`.
|
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Structure of colors.
|
|
|
|
*/
|
2021-08-17 19:16:45 -04:00
|
|
|
typedef struct CSSColor {
|
|
|
|
/** CSS name of the color. */
|
|
|
|
char *name;
|
|
|
|
/** BGRA 8 bit color components. */
|
|
|
|
uint8_t b, g, r, a;
|
|
|
|
} CSSColor;
|
2017-05-15 16:46:33 -04:00
|
|
|
|
2018-06-12 05:28:31 -04:00
|
|
|
/**
|
2021-08-17 19:16:45 -04:00
|
|
|
* Array with all the named colors. Of type #CSSColor, there are #num_CSSColors
|
|
|
|
* items in this array.
|
2018-06-12 05:28:31 -04:00
|
|
|
*/
|
2018-08-08 09:55:13 -04:00
|
|
|
extern const CSSColor CSSColors[];
|
2018-06-12 05:28:31 -04:00
|
|
|
/**
|
|
|
|
* Number of named colors.
|
|
|
|
*/
|
2017-05-15 16:46:33 -04:00
|
|
|
extern const unsigned int num_CSSColors;
|
2020-10-12 15:39:36 -04:00
|
|
|
/** @} */
|
2017-05-15 16:46:33 -04:00
|
|
|
#endif // ROFI_INCLUDE_CSS_COLORS_H
|