From e6ee07856c84664c487273137bb6d127b68716f5 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Fri, 16 May 2003 14:10:39 +0000 Subject: Added support for vector style specification of gradient --- generic/Color.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'generic/Color.h') diff --git a/generic/Color.h b/generic/Color.h index a3fe2ce..f0f2369 100644 --- a/generic/Color.h +++ b/generic/Color.h @@ -56,12 +56,15 @@ typedef struct _ZnGradientColor { typedef struct _ZnGradient { int ref_count; Tcl_HashEntry *hash; - char type; /* Either ZN_AXIAL_GRADIENT (lines) or - * ZN_RADIAL_GRADIENT (circles). */ + char type; /* Either ZN_AXIAL_GRADIENT, ZN_RADIAL_GRADIENT or + * ZN_PATH_GRADIENT. */ + ZnBool simple; /* Angle is used for axial gradients, end is not + * specified for paths/radials. */ union { int angle; /* Angle spec for an axial gradient (Degrees). */ - ZnPoint p; /* Center for a radial gradiant. */ + ZnPoint p; /* Start for an axial/radial/path gradiant. */ } g; + ZnPoint e; /* End of the gradiant. */ unsigned int num_colors; /* Number of colors in gradient spec. */ ZnGradientColor colors[1]; } ZnGradient; -- cgit v1.1