mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
22 lines
462 B
C
22 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
|