aboutsummaryrefslogtreecommitdiff
path: root/generic/Types.h
diff options
context:
space:
mode:
authorlecoanet2000-05-11 14:02:47 +0000
committerlecoanet2000-05-11 14:02:47 +0000
commit3136860f92d88dfaa7f8d942aa46008e299715dc (patch)
tree40fcf33f20cd2e523a353a2e8c4092d889614f8f /generic/Types.h
parenteed585f1d1d3f6c2833cf58a09cce83484c535ed (diff)
downloadtkzinc-3136860f92d88dfaa7f8d942aa46008e299715dc.zip
tkzinc-3136860f92d88dfaa7f8d942aa46008e299715dc.tar.gz
tkzinc-3136860f92d88dfaa7f8d942aa46008e299715dc.tar.bz2
tkzinc-3136860f92d88dfaa7f8d942aa46008e299715dc.tar.xz
Modif pour realiser les polys multi-contours.
Diffstat (limited to 'generic/Types.h')
-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;
/*