RegionSupport accepts, as parameters, references to BRegions (consts when possible) instead of pointers. Note: this is not a functional change
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12937 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -3,40 +3,41 @@
|
|||||||
#ifndef __REGION_SUPPORT_H
|
#ifndef __REGION_SUPPORT_H
|
||||||
#define __REGION_SUPPORT_H
|
#define __REGION_SUPPORT_H
|
||||||
|
|
||||||
#include <Region.h>
|
struct clipping_rect;
|
||||||
|
class BRegion;
|
||||||
class BRegion::Support
|
class BRegion::Support {
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
static void ZeroRegion(BRegion *a_region);
|
static void ZeroRegion(BRegion ®ion);
|
||||||
static void ClearRegion(BRegion *a_region);
|
static void ClearRegion(BRegion ®ion);
|
||||||
static void CopyRegion(BRegion *src_region, BRegion *dst_region);
|
static void CopyRegion(const BRegion &source, BRegion &dest);
|
||||||
static void AndRegion(BRegion *first, BRegion *second, BRegion *dest);
|
static void AndRegion(const BRegion &first, const BRegion &second, BRegion &dest);
|
||||||
static void OrRegion(BRegion *first, BRegion *second, BRegion *dest);
|
static void OrRegion(const BRegion &first, const BRegion &second, BRegion &dest);
|
||||||
static void SubRegion(BRegion *first, BRegion *second, BRegion *dest);
|
static void SubRegion(const BRegion &first, const BRegion &second, BRegion &dest);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static void CleanupRegion(BRegion *region_in);
|
static void CleanupRegion(BRegion ®ion);
|
||||||
static void CleanupRegionVertical(BRegion *region_in);
|
static void CleanupRegionVertical(BRegion ®ion);
|
||||||
static void CleanupRegionHorizontal(BRegion *region_in);
|
static void CleanupRegionHorizontal(BRegion ®ion);
|
||||||
|
|
||||||
static void SortRects(clipping_rect *rects, long count);
|
static void SortRects(clipping_rect *rects, long count);
|
||||||
static void SortTrans(long *lptr1, long *lptr2, long count);
|
static void SortTrans(long *lptr1, long *lptr2, long count);
|
||||||
|
|
||||||
static void CopyRegionMore(BRegion*, BRegion*, long);
|
static void CopyRegionMore(const BRegion &, BRegion &, long);
|
||||||
|
|
||||||
static void AndRegionComplex(BRegion*, BRegion*, BRegion*);
|
static void AndRegionComplex(const BRegion &, const BRegion &, BRegion &);
|
||||||
static void AndRegion1ToN(BRegion*, BRegion*, BRegion*);
|
static void AndRegion1ToN(const BRegion &, const BRegion &, BRegion &);
|
||||||
|
|
||||||
static void AppendRegion(BRegion*, BRegion*, BRegion*);
|
static void AppendRegion(const BRegion &, const BRegion &, BRegion &);
|
||||||
|
|
||||||
static void OrRegionComplex(BRegion*, BRegion*, BRegion*);
|
static void OrRegionComplex(const BRegion &, const BRegion &, BRegion &);
|
||||||
static void OrRegion1ToN(BRegion*, BRegion*, BRegion*);
|
static void OrRegion1ToN(const BRegion &, const BRegion &, BRegion &);
|
||||||
static void OrRegionNoX(BRegion*, BRegion*, BRegion*);
|
static void OrRegionNoX(const BRegion &, const BRegion &, BRegion &);
|
||||||
static void ROr(long, long, BRegion*, BRegion*, BRegion*, long*, long *);
|
static void ROr(long, long, const BRegion &, const BRegion &,
|
||||||
|
BRegion &, long *, long *);
|
||||||
|
|
||||||
static void SubRegionComplex(BRegion*, BRegion*, BRegion*);
|
static void SubRegionComplex(const BRegion &, const BRegion &, BRegion &);
|
||||||
static void RSub(long , long, BRegion*, BRegion*, BRegion*, long*, long*);
|
static void RSub(long, long, const BRegion &, const BRegion &,
|
||||||
|
BRegion &, long *, long *);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __REGION_SUPPORT_H
|
#endif // __REGION_SUPPORT_H
|
||||||
|
|||||||
Reference in New Issue
Block a user