summaryrefslogtreecommitdiffstats
path: root/include/css-colors.h
blob: d57fbb4ad78213d133e6d8f20ff9a01ca2b50e02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef ROFI_INCLUDE_CSS_COLORS_H
#define ROFI_INCLUDE_CSS_COLORS_H

/**
 * @defgroup CSSCOLORS CssColors
 * @ingroup HELPERS
 *
 * Lookup table for CSS 4.0 named colors. Like `Navo`.
 *
 * @{
 */

/**
 * Structure of colors.
 */
typedef struct CSSColor
{
    /** CSS name of the color. */
    char    *name;
    /** BGRA 8 bit color components. */
    uint8_t b, g, r, a;
}CSSColor;

/**
 * Array with all the named colors. Of type #CSSColor, there are #num_CSSColors items in this array.
 */
extern const CSSColor CSSColors[];
/**
 * Number of named colors.
 */
extern const unsigned int num_CSSColors;
/* @} */
#endif // ROFI_INCLUDE_CSS_COLORS_H