summaryrefslogtreecommitdiff
path: root/rect.h
blob: 74f3084e95d9ecc5860bd162f9b696b4c1d54ef5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef rect_h
#define rect_h

typedef struct {
	int x, y, w, h;
} Rect;

Rect* rect_clip(Rect* r, const Rect* c);
Rect* rect_clipr(Rect* r, const int* c);
Rect* rect_clips(Rect* r, Rect* s, const Rect* c);
Rect* rect_clipsr(Rect* r, Rect* s, const int* c);

#endif