-I$(top_srcdir)/lib/graph \
-I$(top_srcdir)/lib/cdt @GD_INCLUDES@ @EXPAT_INCLUDES@ @Z_INCLUDES@
-pkginclude_HEADERS = logic.h arith.h geom.h geomprocs.h color.h colortbl.h \
+pkginclude_HEADERS = logic.h arith.h geom.h geomprocs.h \
+ color.h colorprocs.h colortbl.h \
const.h macros.h types.h globals.h utils.h memory.h \
htmllex.h htmltable.h pointset.h render.h
noinst_LTLIBRARIES = libcommon.la
AWKDIR = $(ROOT)/awk
INST_HDRS = const.h globals.h macros.h render.h \
- types.h utils.h geom.h geomprocs.h logic.h color.h arith.h memory.h
+ types.h utils.h geom.h geomprocs.h logic.h \
+ color.h colorprocs.h arith.h memory.h
NOINST_HDRS = colortbl.h ps.h htmltable.h htmlparse.h htmllex.h
#define COLOR_UNKNOWN 1
#define COLOR_OK 0
-extern int colorxlate(char *str, color_t * color, color_type_t target_type);
-extern char *canontoken(char *str);
-
#ifdef __cplusplus
}
#endif
--- /dev/null
+/* $Id$ $Revision$ */
+/* vim:set shiftwidth=4 ts=8: */
+
+/**********************************************************
+* This software is part of the graphviz package *
+* http://www.graphviz.org/ *
+* *
+* Copyright (c) 1994-2004 AT&T Corp. *
+* and is licensed under the *
+* Common Public License, Version 1.0 *
+* by AT&T Corp. *
+* *
+* Information and Software Systems Research *
+* AT&T Research, Florham Park NJ *
+**********************************************************/
+
+#ifndef GV_COLORPROCS_H
+#define GV_COLORPROCS_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern int colorxlate(char *str, color_t * color, color_type_t target_type);
+extern char *canontoken(char *str);
+
+#ifdef __cplusplus
+}
+#endif
+#endif
#include <ctype.h>
#include "color.h"
+#include "colorprocs.h"
#include "colortbl.h"
static void hsv2rgb(double h, double s, double v,
color = late_nnstring(e, E_activefillcolor, DEFAULT_ACTIVEFILLCOLOR);
gvrender_set_fillcolor(job, color);
}
+ else if (ED_deleted(e)) {
+ color = late_nnstring(e, E_deletedpencolor, DEFAULT_DELETEDPENCOLOR);
+ gvrender_set_pencolor(job, color);
+ color = late_nnstring(e, E_deletedfillcolor, DEFAULT_DELETEDFILLCOLOR);
+ gvrender_set_fillcolor(job, color);
+ }
+ else if (ED_visited(e)) {
+ color = late_nnstring(e, E_visitedpencolor, DEFAULT_VISITEDPENCOLOR);
+ gvrender_set_pencolor(job, color);
+ color = late_nnstring(e, E_visitedfillcolor, DEFAULT_VISITEDFILLCOLOR);
+ gvrender_set_fillcolor(job, color);
+ }
/* if more than one color - then generate parallel beziers, one per color */
if (numc) {
/* calculate and save offset vector spline and initialize first offset spline */
color = late_nnstring(sg, G_activefillcolor, DEFAULT_ACTIVEFILLCOLOR);
gvrender_set_fillcolor(job, color);
}
+ else if (GD_deleted(sg)) {
+ color = late_nnstring(sg, G_deletedpencolor, DEFAULT_DELETEDPENCOLOR);
+ gvrender_set_pencolor(job, color);
+ color = late_nnstring(sg, G_deletedfillcolor, DEFAULT_DELETEDFILLCOLOR);
+ gvrender_set_fillcolor(job, color);
+ }
+ else if (GD_visited(sg)) {
+ color = late_nnstring(sg, G_visitedpencolor, DEFAULT_VISITEDPENCOLOR);
+ gvrender_set_pencolor(job, color);
+ color = late_nnstring(sg, G_visitedfillcolor, DEFAULT_VISITEDFILLCOLOR);
+ gvrender_set_fillcolor(job, color);
+ }
else {
if (((color = agget(sg, "pencolor")) != 0) && color[0])
gvrender_set_pencolor(job, color);
#include "types.h"
#include "globals.h"
#include "memory.h"
+#include "colorprocs.h" /* must collow color.h (in types.h) */
#include "geomprocs.h" /* must follow geom.h (in types.h) */
#include "graph.h" /* must follow types.h */
#include "utils.h" /* must follow types.h */
void (*modify) (GVJ_t * job, char *name, char *value);
} gvdevice_callbacks_t;
- typedef int (*gvevent_key_callback_t) (GVJ_t * job);
-
- typedef struct gvevent_key_binding_s {
- char *keystring;
- gvevent_key_callback_t callback;
- } gvevent_key_binding_t;
-
struct GVJ_s {
GVC_t *gvc; /* parent gvc */
GVJ_t *next; /* linked list of jobs */
unsigned int width; /* device width in device units */
unsigned int height; /* device height in device units */
- box boundingBox; /* drawable region in device units */
int dpi; /* device resolution device-units-per-inch */
-
- boxf bb; /* bb in graph units */
double zoom; /* viewport zoom factor */
int rotation; /* viewport rotation 0=portrait, 1=landscape */
pointf focus; /* viewport focus in graph units */
+ box boundingBox; /* drawable region in device units */
boxf clip; /* clip region in graph units */
boxf pageBoxClip; /* intersection of clip and pageBox */
/* e.g. "color" "red" "style" "filled" */
void *window; /* display-specific data for gvrender plugin */
-
- /* keybindings for keyboard events */
- gvevent_key_binding_t *keybindings;
- int numkeys;
- void *keycodes;
};
+ typedef int (*gvevent_key_callback_t) (GVJ_t * job);
+
+ typedef struct gvevent_key_binding_s {
+ char *keystring;
+ gvevent_key_callback_t callback;
+ } gvevent_key_binding_t;
+
#ifdef __cplusplus
}
#endif
GVC_t *gvc = job->gvc;
gvrender_engine_t *gvre = job->render.engine;
- job->bb = gvc->bb;
if (gvre) {
if (gvre->begin_job)
gvre->begin_job(job);