diff options
author | lecoanet | 2003-05-16 14:10:39 +0000 |
---|---|---|
committer | lecoanet | 2003-05-16 14:10:39 +0000 |
commit | e6ee07856c84664c487273137bb6d127b68716f5 (patch) | |
tree | 4bbc04e2ed33991c6e7f8238593ff335199a1669 /generic/Color.h | |
parent | 8516442be4b957b4b3b03da857a6a1ea16263236 (diff) | |
download | tkzinc-e6ee07856c84664c487273137bb6d127b68716f5.zip tkzinc-e6ee07856c84664c487273137bb6d127b68716f5.tar.gz tkzinc-e6ee07856c84664c487273137bb6d127b68716f5.tar.bz2 tkzinc-e6ee07856c84664c487273137bb6d127b68716f5.tar.xz |
Added support for vector style specification of gradient
Diffstat (limited to 'generic/Color.h')
-rw-r--r-- | generic/Color.h | 9 |
1 files changed, 6 insertions, 3 deletions
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; |