Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
colorprocs.h File Reference
#include "config.h"
#include "color.h"
Include dependency graph for colorprocs.h:
This graph shows which files directly or indirectly include this file:

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)
 

Macro Definition Documentation

◆ COLORPROCS_API

#define COLORPROCS_API   /* nothing */

Definition at line 32 of file colorprocs.h.

Function Documentation

◆ colorxlate()

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.

Here is the call graph for this function:

◆ setColorScheme()

COLORPROCS_API char * setColorScheme ( const char *  s)

set current color scheme for resolving names

Callers should eventually free the returned pointer from this function.

Parameters
sColor scheme to set
Returns
Previous color scheme

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().

Here is the call graph for this function:
Here is the caller graph for this function: