Graphviz
2.41.20171026.1811
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "arith.h"
#include "color.h"
#include "colorprocs.h"
#include "colortbl.h"
#include "memory.h"
Go to the source code of this file.
Macros | |
#define | DFLT_SCHEME "X11/" /* Must have final '/' */ |
#define | DFLT_SCHEME_LEN ((sizeof(DFLT_SCHEME)-1)/sizeof(char)) |
#define | ISNONDFLT(s) ((s) && *(s) && strncasecmp(DFLT_SCHEME, s, DFLT_SCHEME_LEN-1)) |
Functions | |
char * | canontoken (char *str) |
int | colorxlate (char *str, gvcolor_t *color, color_type_t target_type) |
int | colorCvt (gvcolor_t *ocolor, gvcolor_t *ncolor) |
void | setColorScheme (char *s) |
#define DFLT_SCHEME "X11/" /* Must have final '/' */ |
Definition at line 221 of file colxlate.c.
#define DFLT_SCHEME_LEN ((sizeof(DFLT_SCHEME)-1)/sizeof(char)) |
Definition at line 222 of file colxlate.c.
#define ISNONDFLT | ( | s | ) | ((s) && *(s) && strncasecmp(DFLT_SCHEME, s, DFLT_SCHEME_LEN-1)) |
Definition at line 223 of file colxlate.c.
char* canontoken | ( | char * | str | ) |
Definition at line 145 of file colxlate.c.
References grealloc(), and NULL.
Definition at line 509 of file colxlate.c.
References CMYK_BYTE, COLOR_INDEX, COLOR_OK, COLOR_STRING, COLOR_UNKNOWN, colorxlate(), color_s::HSVA, HSVA_DOUBLE, color_s::RGBA, color_s::rgba, RGBA_BYTE, RGBA_DOUBLE, RGBA_WORD, color_s::rrggbbaa, color_s::string, color_s::type, and color_s::u.
int colorxlate | ( | char * | str, |
gvcolor_t * | color, | ||
color_type_t | target_type | ||
) |
Definition at line 254 of file colxlate.c.
References hsvrgbacolor_t::a, hsvrgbacolor_t::b, C, color_s::cmyk, CMYK_BYTE, COLOR_INDEX, COLOR_MALLOC_FAIL, COLOR_OK, COLOR_STRING, COLOR_UNKNOWN, hsvrgbacolor_t::g, grealloc(), hsvrgbacolor_t::h, color_s::HSVA, HSVA_DOUBLE, int, MAX, MIN, hsvrgbacolor_t::name, NULL, hsvrgbacolor_t::r, color_s::RGBA, color_s::rgba, RGBA_BYTE, RGBA_DOUBLE, RGBA_WORD, color_s::rrggbbaa, hsvrgbacolor_t::s, color_s::type, color_s::u, and hsvrgbacolor_t::v.
Referenced by colorCvt(), and Import_coord_clusters_from_dot().
void setColorScheme | ( | char * | s | ) |
Definition at line 561 of file colxlate.c.
Referenced by emit_clusters().