1/*
2 * Copyright notice...
3 */
4
5#ifndef _CTWM_R_AREA_H
6#define _CTWM_R_AREA_H
7
8#include "r_structs.h"
9
10
11RArea *RAreaNewStatic(int x, int y, int width, int height);
12RArea RAreaNew(int x, int y, int width, int height);
13
14RArea RAreaInvalid(void);
15bool RAreaIsValid(const RArea *self);
16
17int RAreaX2(const RArea *self);
18int RAreaY2(const RArea *self);
19int RAreaArea(const RArea *self);
20RArea RAreaIntersect(const RArea *self, const RArea *other);
21bool RAreaIsIntersect(const RArea *self, const RArea *other);
22bool RAreaContainsXY(const RArea *self, int x, int y);
23RAreaList *RAreaHorizontalUnion(const RArea *self, const RArea *other);
24RAreaList *RAreaVerticalUnion(const RArea *self, const RArea *other);
25
26void RAreaPrint(const RArea *self);
27
28#endif  /* _CTWM_R_AREA_H */
29