aboutsummaryrefslogtreecommitdiff
path: root/generic/Color.h
diff options
context:
space:
mode:
Diffstat (limited to 'generic/Color.h')
-rw-r--r--generic/Color.h9
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;