~mterry/mir/session-for-surface

« back to all changes in this revision

Viewing changes to include/shared/mir/geometry/rectangle.h

  • Committer: Michael Terry
  • Date: 2013-07-29 17:51:51 UTC
  • mfrom: (832.1.58 trunk)
  • Revision ID: michael.terry@canonical.com-20130729175151-3thcnlepeihhzbb8
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
{
35
35
    Point top_left;
36
36
    Size size;
 
37
 
 
38
    /** 
 
39
     * The bottom right boundary point of the rectangle.
 
40
     *
 
41
     * Note that the returned point is *not* included in the rectangle
 
42
     * area, that is, the rectangle is represented as [top_left,bottom_right).
 
43
     */
 
44
    Point bottom_right() const;
 
45
    bool contains(Point const& p) const;
37
46
};
38
47
 
39
48
inline bool operator == (Rectangle const& lhs, Rectangle const& rhs)