mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-11 07:42:18 +00:00
c58cf2c2d0
This is horrible, doesn't work, isn't really the direction I want to go (that became apparent while implementing Screen's handleEvent) and crashes anyway (Array and not-id...) *sigh* Still, this does have some good stuff in it, and it pushed qfcc along some more.
21 lines
469 B
C
21 lines
469 B
C
#ifndef __qwaq_rect_h
|
|
#define __qwaq_rect_h
|
|
|
|
typedef struct Rect_s {
|
|
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
|