summaryrefslogtreecommitdiff
path: root/render/geom.h
blob: f6fa4f24862d6b7590a254725e9ce9dc5af02873 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef __geom_h
#define __geom_h

typedef struct {
    int width;
    int height;
} RrSize;

typedef struct {
    int x;
    int y;
    int width;
    int height;
} RrRect;

#define RECT_SET(r, nx, ny, w, h) \
    (r).x = (nx), (r).y = (ny), (r).width = (w), (r).height = (h)

#endif