diff options
Diffstat (limited to 'base/gfx/rect.h')
-rw-r--r-- | base/gfx/rect.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/gfx/rect.h b/base/gfx/rect.h index 2eef76c..c3c01ad 100644 --- a/base/gfx/rect.h +++ b/base/gfx/rect.h @@ -149,6 +149,10 @@ class Rect { // Returns the center of this rectangle. Point CenterPoint() const; + // Returns true if this rectangle shares an entire edge (i.e., same width or + // same height) with the given rectangle, and the rectangles do not overlap. + bool SharesEdgeWith(const gfx::Rect& rect) const; + private: gfx::Point origin_; gfx::Size size_; |