more horizontal refactoring
[swftools.git] / lib / gfxpoly / xrow.h
1 #ifndef __xrow_h__
2 #define __xrow_h__
3
4 #include <stdint.h>
5
6 #include "poly.h"
7
8 typedef struct _xrow {
9     int32_t*x;
10     int num;
11     int size;
12     int32_t lastx;
13 } xrow_t;
14
15 xrow_t* xrow_new();
16
17 void xrow_add(xrow_t*xrow, int32_t x);
18 void xrow_sort(xrow_t*xrow);
19 int xrow_find(xrow_t*r, int32_t x);
20 char xrow_contains(xrow_t*xrow, int32_t x);
21 void xrow_dump(xrow_t*xrow, double gridsize);
22 void xrow_reset(xrow_t*xrow);
23 void xrow_destroy(xrow_t*xrow);
24
25 #endif