diff options
Diffstat (limited to 'generic')
-rw-r--r-- | generic/Types.h | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/generic/Types.h b/generic/Types.h index 6d6fd7a..25dc895 100644 --- a/generic/Types.h +++ b/generic/Types.h @@ -77,6 +77,18 @@ typedef struct { typedef struct { ZnPos x, y, w, h; } ZnRect; + +typedef struct { + int num_points; + ZnPoint *points; +} ZnContour; + +typedef struct { + int num_contours; + int *holes; + ZnContour *contours; +} ZnPoly; + /* * ZnBBox: orig is into the area while corner is not. * Thus the test: ((bbox.orig.x == bbox.corner.x) || @@ -92,17 +104,6 @@ typedef struct { } ZnBBox; /* - * Describe the clipping at a given node - * of the item hierarchy. - */ -typedef struct { - ZnBool simple; /* The clip is an aligned rectangle. */ - Region region; /* The X region used to draw and to */ - /* probe for picking. */ - ZnBBox clip_box; /* The bounding box of the clip area. */ -} ClipState; - -/* * Operator constants for the coord method. */ #define COORDS_READ 0 @@ -162,6 +163,8 @@ typedef struct { #define ZN_CONFIG_LEADER_ANCHORS 28 #define ZN_CONFIG_JOIN_STYLE 29 #define ZN_CONFIG_CAP_STYLE 30 +#define ZN_CONFIG_GRADIENT_GEOM 31 +#define ZN_CONFIG_GRADIENT_COLOR 32 #define ZN_DRAW_FLAG 1 << 0 #define ZN_COORDS_FLAG 1 << 1 |