Graphviz 13.0.0~dev.20241220.2304
|
Go to the source code of this file.
Macros | |
#define | COLORPROCS_API /* nothing */ |
Functions | |
COLORPROCS_API char * | setColorScheme (const char *s) |
COLORPROCS_API int | colorxlate (const char *str, gvcolor_t *color, color_type_t target_type) |
#define COLORPROCS_API /* nothing */ |
Definition at line 32 of file colorprocs.h.
COLORPROCS_API int colorxlate | ( | const char * | str, |
gvcolor_t * | color, | ||
color_type_t | target_type | ||
) |
Definition at line 203 of file colxlate.c.
References hsvrgbacolor_t::a, A, agxbfree(), agxbputc(), agxbuse(), hsvrgbacolor_t::b, B, canon(), color(), COLOR_INDEX, color_lib, COLOR_MALLOC_FAIL, COLOR_OK, COLOR_STRING, COLOR_UNKNOWN, colorcmpf(), free(), hsvrgbacolor_t::g, G, gv_isdigit(), hsvrgbacolor_t::h, hsv2rgb(), HSVA_DOUBLE, NULL, hsvrgbacolor_t::r, resolveColor(), rgb2hsv(), RGBA_BYTE, RGBA_DOUBLE, RGBA_WORD, hsvrgbacolor_t::s, S, str, UNREACHABLE, hsvrgbacolor_t::v, and V.
COLORPROCS_API char * setColorScheme | ( | const char * | s | ) |
set current color scheme for resolving names
Callers should eventually free the returned pointer from this function.
s | Color scheme to set |
Definition at line 395 of file colxlate.c.
References colorscheme, gv_strdup(), and NULL.
Referenced by emit_begin_node(), emit_clusters(), emit_edge_graphics(), emit_end_node(), emit_page(), and object_color().