]> git.vomp.tv Git - vompclient.git/blob - region.h
Display channel name, duration, resume point and size on recording info screen
[vompclient.git] / region.h
1 #ifndef REGION_H
2 #define REGION_H
3
4 #include <stdio.h>
5 #include "defines.h"
6
7 class Region
8 {
9   public:
10     Region();
11     bool overlappedBy(Region& doesthisOverlap);
12     Region subtract(Region& other);
13     Region operator + (Region& other);
14     inline bool intersects(Region  test) {
15         return  !((test.x+test.w) < x || (x + w) < test.x
16                         || (test.y+test.h) < y || (y+h) < test.y);
17     }
18
19     UINT x2();
20     UINT y2();
21
22     UINT x;
23     UINT y;
24     UINT w;
25     UINT h;
26     int z;
27 };
28
29 #endif