openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
region.cpp File Reference
#include <lib/gdi/erect.h>
#include <lib/gdi/epoint.h>
#include <lib/gdi/region.h>
#include <lib/base/eerror.h>

Macros

#define max(a, b)   ((a) > (b) ? (a) : (b))
 
#define min(a, b)   ((a) < (b) ? (a) : (b))
 
#define MERGERECT(r)
 

Functions

bool operator== (const gRegion &r1, const gRegion &r2)
 
bool operator!= (const gRegion &r1, const gRegion &r2)
 

Macro Definition Documentation

◆ max

#define max (   a,
 
)    ((a) > (b) ? (a) : (b))

◆ MERGERECT

#define MERGERECT (   r)
Value:
{ \
if (r->x1 <= x2) { \
/* Merge with current rectangle */ \
if (r->x1 < x2) overlap = 1; \
if (x2 < r->x2) x2 = r->x2; \
} else { \
/* Add current rectangle, start new one */ \
rects.push_back(eRect(x1, y1, x2 - x1, y2 - y1)); \
x1 = r->x1; \
x2 = r->x2; \
} \
++r; \
}
Definition: erect.h:11

◆ min

#define min (   a,
 
)    ((a) < (b) ? (a) : (b))

Function Documentation

◆ operator!=()

bool operator!= ( const gRegion r1,
const gRegion r2 
)

◆ operator==()

bool operator== ( const gRegion r1,
const gRegion r2 
)