diff options
Diffstat (limited to 'generic')
-rw-r--r-- | generic/Types.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/generic/Types.h b/generic/Types.h index fa6ca0f..27d6a1a 100644 --- a/generic/Types.h +++ b/generic/Types.h @@ -73,6 +73,8 @@ typedef struct { /* * contour1/hole1 can be used to store a single contour * without having to alloc the holes & contours arrays. + * The first three fields must be in sync with the gpc_polygon + * struct when using gpc. */ typedef struct { int num_contours; @@ -83,6 +85,26 @@ typedef struct { ZnContour contour1; ZnBool cw1; } ZnPoly; + +typedef struct { + int num_points; + ZnPoint *points; +} ZnStrip; + +/* + * The first two fields must be kept in sync with gpc_tristrip + * when using gpc. + */ +typedef struct { + int num_strips; + ZnStrip *strips; + ZnStrip strip1; + ZnBool fan; /* When using a fan, all contour vertices must be + * included to describe the contour as a polygon + * (clipping code use that to speed up region + * rendering). */ + ZnPoint center; +} ZnTriStrip; /* * ZnBBox: orig is into the area while corner is not. @@ -277,6 +299,7 @@ typedef int ReliefStyle; /* Keep it an int to keep Tk happy */ */ #define ZN_AXIAL_GRADIENT 0 #define ZN_RADIAL_GRADIENT 1 +#define ZN_PATH_GRADIENT 2 /* * Type and constant values for automatic alignments. @@ -340,7 +363,8 @@ typedef struct { */ #define ZN_CIRCLE_COARSE 0 #define ZN_CIRCLE_MEDIUM ZN_CIRCLE_COARSE+1 -#define ZN_CIRCLE_FINEST ZN_CIRCLE_MEDIUM+1 +#define ZN_CIRCLE_FINE ZN_CIRCLE_MEDIUM+1 +#define ZN_CIRCLE_FINEST ZN_CIRCLE_FINE+1 /* * Some flags macros. |