diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-21 07:54:23 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-21 07:54:23 +0000 |
| commit | a648c05a7a2608e7e909317f5afe8427a0ea0d68 (patch) | |
| tree | 9a8355e87192adeec50ee7eaff227decc8af8ffd /c/geom.h | |
| parent | 474f689132d906a553bdc695d3c179652cbe8c53 (diff) | |
kill the c dir
Diffstat (limited to 'c/geom.h')
| -rw-r--r-- | c/geom.h | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/c/geom.h b/c/geom.h deleted file mode 100644 index aa763dbc..00000000 --- a/c/geom.h +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef __geom_h -#define __geom_h - -#ifdef HAVE_ASSERT_H -# include <assert.h> -#endif - -typedef struct Point { - int x; - int y; -} Point; - -#define POINT_SET(pt, nx, ny) {pt.x = nx; pt.y = ny;} - -typedef struct Size { - int width; - int height; -} Size; - -#define SIZE_SET(sz, w, h) {sz.width = w; sz.height = h;} - -typedef struct Rect { - int x; - int y; - int width; - int height; -} Rect; - -#define RECT_SET_POINT(r, nx, ny) \ - {r.x = ny; r.y = ny;} -#define RECT_SET_SIZE(r, w, h) \ - {r.width = w; r.height = h;} -#define RECT_SET(r, nx, ny, w, h) \ - {r.x = nx; r.y = ny; r.width = w; r.height = h;} - -#define RECT_EQUAL(r1, r2) (r1.x == r2.x && r1.y == r2.y && \ - r1.width == r2.width && r1.height == r2.height) - -typedef struct Strut { - int left; - int top; - int right; - int bottom; -} Strut; - -#define STRUT_SET(s, l, t, r, b) \ - {s.left = l; s.top = t; s.right = r; s.bottom = b; } - -#define STRUT_ADD(s1, s2) \ - {s1.left = MAX(s1.left, s2.left); s1.right = MAX(s1.right, s2.right); \ - s1.top = MAX(s1.top, s2.top); s1.bottom = MAX(s1.bottom, s2.bottom); } - -#endif |
