aboutsummaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/Types.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/generic/Types.h b/generic/Types.h
index 25dc895..3caf1b8 100644
--- a/generic/Types.h
+++ b/generic/Types.h
@@ -59,8 +59,8 @@ extern "C" {
typedef void *ZnItemClassId;
typedef void *ZnItemId;
-typedef double ZnReal;
-typedef int ZnBool; /* Keep it an int to keep Tk happy */
+typedef double ZnReal; /* Keep it a double for GPC. */
+typedef int ZnBool; /* Keep it an int to keep Tk & GPC happy */
typedef ZnReal ZnPos;
typedef ZnReal ZnDim;
typedef XColor *ZnColor;
@@ -83,10 +83,18 @@ typedef struct {
ZnPoint *points;
} ZnContour;
+/*
+ * contour1/hole1 can be used to store a single contour
+ * without having to alloc the holes & contours arrays.
+ */
typedef struct {
int num_contours;
- int *holes;
+ ZnBool *holes;
ZnContour *contours;
+ ZnBool *cw;
+ ZnBool hole1;
+ ZnContour contour1;
+ ZnBool cw1;
} ZnPoly;
/*