diff options
Diffstat (limited to 'include/corecg/SkRegion.h')
-rw-r--r-- | include/corecg/SkRegion.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/corecg/SkRegion.h b/include/corecg/SkRegion.h index 673da23..8b15a89 100644 --- a/include/corecg/SkRegion.h +++ b/include/corecg/SkRegion.h @@ -108,6 +108,16 @@ public: drawn by the path (with no antialiasing) with the specified clip. */ bool setPath(const SkPath&, const SkRegion& clip); + + /** Returns true if the specified rectangle has a non-empty intersection + with this region. + */ + bool intersects(const SkIRect&) const; + + /** Returns true if the specified region has a non-empty intersection + with this region. + */ + bool intersects(const SkRegion&) const; /** Return true if the specified x,y coordinate is inside the region. */ @@ -298,6 +308,9 @@ public: SkDEBUGCODE(void validate() const;) SkDEBUGCODE(static void UnitTest();) + // expose this to allow for regression test on complex regions + SkDEBUGCODE(bool debugSetRuns(const RunType runs[], int count);) + private: enum { kOpCount = kReplace_Op + 1 |