blob: c64c3f5e1b224616758b9ec2d766b6c31a3ce3ce [file] [log] [blame]
typedef struct
{
int v;
int h;
} Point;
typedef struct
{
int top, left, bottom, right;
} Rect;
int
x_PtInRect (Point pt, Rect *r)
{
return pt.v >= r->top && pt.v < r->bottom
&& pt.h >= r->left && pt.h < r->right;
}