quakeforge/ruamoko/qwaq/ui/rect.h
Bill Currie 6ff5b5c101 [qwaq] Clean up the qwaq directory
Things were getting rather cluttered with everything being qwaq-* and
all in one directory. Now most have lost the qwaq- prefix and have been
moved into subdirectories (non-recursive make).
2020-03-30 02:34:08 +09:00

28 lines
583 B
C

#ifndef __qwaq_ui_rect_h
#define __qwaq_ui_rect_h
typedef struct Point_s {
int x;
int y;
} Point;
typedef struct Extent_s {
int width;
int height;
} Extent;
typedef struct Rect_s {
Point offset;
Extent extent;
} Rect;
#ifdef __QFCC__
Rect makeRect (int xpos, int ypos, int xlen, int ylen);
Point makePoint (int x, int y);
Extent makeExtent (int width, int height);
Extent mergeExtents (Extent a, Extent b);
int rectContainsPoint (Rect rect, Point point);
Rect clipRect (Rect clipRect, Rect rect);
#endif
#endif//__qwaq_ui_rect_h