mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 08:50:58 +00:00
c377b324a1
Things are finally doing something again, and getting closer to having a moveable window.
24 lines
504 B
C
24 lines
504 B
C
#ifndef __qwaq_rect_h
|
|
#define __qwaq_rect_h
|
|
|
|
typedef struct {
|
|
int x;
|
|
int y;
|
|
} Point;
|
|
|
|
typedef struct {
|
|
int width;
|
|
int height;
|
|
} Extent;
|
|
|
|
typedef struct Rect_s {
|
|
Point offset;
|
|
Extent extent;
|
|
} Rect;
|
|
|
|
@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
|