-typedef struct _fillstyle {
- char is_filled;
-} fillstyle_t;
-
-typedef struct _windstate
-{
- char is_filled;
- int wind_nr;
-} windstate_t;
-
-/* TODO: maybe we should merge windcontext and windrule */
-typedef struct _windcontext
-{
- int num_polygons;
-} windcontext_t;
-
-typedef struct _windrule
-{
- windstate_t (*start)(windcontext_t* num_polygons);
- windstate_t (*add)(windcontext_t*context, windstate_t left, fillstyle_t*edge, segment_dir_t dir, int polygon_nr);
- fillstyle_t* (*diff)(windstate_t*left, windstate_t*right);
-} windrule_t;
-
-#define SEGNR(s) ((s)?(s)->nr:-1)