mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 17:01:22 +00:00
21 lines
462 B
C
21 lines
462 B
C
#ifndef __qwaq_rect_h
|
|
#define __qwaq_rect_h
|
|
|
|
typedef struct {
|
|
int xpos;
|
|
int ypos;
|
|
int xlen;
|
|
int ylen;
|
|
} Rect;
|
|
|
|
typedef struct {
|
|
int x;
|
|
int y;
|
|
} Point;
|
|
|
|
@extern Rect makeRect (int xpos, int ypos, int xlen, int ylen);
|
|
//XXX will not work if point or rect point to a local variabl
|
|
@extern int rectContainsPoint (Rect *rect, Point *point);
|
|
@extern Rect getwrect (struct window_s *window);
|
|
|
|
#endif//__qwaq_rect_h
|