aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPoint.h
diff options
context:
space:
mode:
authorGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-03-20 20:19:16 +0000
committerGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-03-20 20:19:16 +0000
commitb7d956df4665e06f3ae98cb696cef7c04452ab8e (patch)
tree9b620b126a92185178fa5c6e296875dd98993d71 /include/core/SkPoint.h
parent57463e1908399a489af24583654c38641e265e25 (diff)
add draw sample
git-svn-id: http://skia.googlecode.com/svn/trunk@966 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkPoint.h')
-rw-r--r--include/core/SkPoint.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/core/SkPoint.h b/include/core/SkPoint.h
index c89f08003a..52dbd51f6e 100644
--- a/include/core/SkPoint.h
+++ b/include/core/SkPoint.h
@@ -149,6 +149,9 @@ struct SK_API SkPoint {
return pt;
}
+ SkScalar x() const { return fX; }
+ SkScalar y() const { return fY; }
+
/** Set the point's X and Y coordinates */
void set(SkScalar x, SkScalar y) { fX = x; fY = y; }