Dillo v3.1.1-119-g140d9ebd
|
Go to the source code of this file.
Macros | |
#define | EXTENDED_COLOR |
#define | NCOLORS (sizeof(color_keyword) / sizeof(color_keyword[0])) |
Functions | |
static int32_t | Color_parse_hex (const char *s, int32_t default_color, int *err) |
Parse a color in hex (RRGGBB) or (RGB). | |
int32_t | a_Color_parse (const char *str, int32_t default_color, int *err) |
Parse a color string. | |
static int | Color_distance2 (long c1, long c2) |
static int | Color_distance3 (long c1, long c2) |
int32_t | a_Color_vc (int32_t candidate, int32_t C_txt, int32_t C_lnk, int32_t C_bg) |
Return a suitable "visited link" color. | |
Variables | |
static const struct key | color_keyword [] |
#define NCOLORS (sizeof(color_keyword) / sizeof(color_keyword[0])) |
int32_t a_Color_parse | ( | const char * | str, |
int32_t | default_color, | ||
int * | err | ||
) |
Parse a color string.
"err" argument:
Definition at line 258 of file colors.c.
References _MSG, color_keyword, Color_parse_hex(), dIsspace, dStrAsciiCasecmp(), and NCOLORS.
Referenced by a_Html_color_parse(), parseOption(), CssParser::parseValue(), and CssParser::tokenMatchesProperty().
int32_t a_Color_vc | ( | int32_t | candidate, |
int32_t | C_txt, | ||
int32_t | C_lnk, | ||
int32_t | C_bg | ||
) |
Return a suitable "visited link" color.
Definition at line 344 of file colors.c.
References _MSG, Color_distance2(), and Color_distance3().
Referenced by Html_tag_open_body().
|
static |
Definition at line 321 of file colors.c.
Referenced by a_Color_vc().
|
static |
Definition at line 331 of file colors.c.
Referenced by a_Color_vc().
|
static |
Parse a color in hex (RRGGBB) or (RGB).
Definition at line 220 of file colors.c.
Referenced by a_Color_parse().
|
static |
Referenced by a_Color_parse().