/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/lib/common/colxlate.c File Reference

#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"

Include dependency graph for colxlate.c:

Go to the source code of this file.

Defines

#define DFLT_SCHEME   "X11/"
#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)
void setColorScheme (char *s)


Define Documentation

#define DFLT_SCHEME   "X11/"

Definition at line 222 of file colxlate.c.

#define DFLT_SCHEME_LEN   ((sizeof(DFLT_SCHEME)-1)/sizeof(char))

Definition at line 223 of file colxlate.c.

#define ISNONDFLT (  )     ((s) && *(s) && strncasecmp(DFLT_SCHEME, s, DFLT_SCHEME_LEN-1))

Definition at line 224 of file colxlate.c.


Function Documentation

char* canontoken ( char *  str  ) 

Definition at line 148 of file colxlate.c.

References grealloc(), and NULL.

int colorxlate ( char *  str,
gvcolor_t color,
color_type_t  target_type 
)

Definition at line 253 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, 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.

void setColorScheme ( char *  s  ) 

Definition at line 485 of file colxlate.c.

Referenced by emit_clusters().


Generated on Mon Mar 31 19:04:23 2008 for Graphviz by  doxygen 1.5.1