diff options
author | 2012-04-19 21:01:24 +0000 | |
---|---|---|
committer | 2012-04-19 21:01:24 +0000 | |
commit | d6195f956fdccef865224520a624e3fd968573d0 (patch) | |
tree | 92b7164420c7e127ae024a1729512c72dedc248d /include/core | |
parent | b3400badf022b4ff6f3545d1baa706affc22d93d (diff) |
add x() and y() aliases for fLeft and fTop (matching SkIRect)
git-svn-id: http://skia.googlecode.com/svn/trunk@3737 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkRect.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/core/SkRect.h b/include/core/SkRect.h index 65e76116f0..f261082cd4 100644 --- a/include/core/SkRect.h +++ b/include/core/SkRect.h @@ -363,6 +363,8 @@ struct SK_API SkRect { #endif } + SkScalar x() const { return fLeft; } + SkScalar y() const { return fTop; } SkScalar left() const { return fLeft; } SkScalar top() const { return fTop; } SkScalar right() const { return fRight; } |