diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2012-04-20 21:58:59 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-26 04:53:08 +0200 |
commit | 0ac61552a47fedb0d3dfb4e690b10e998aaaaf92 (patch) | |
tree | 1e2f88b5d96841f3b5dda878a0e5ab9b76ed2b3f /examples/quick/canvas/canvas.qml | |
parent | a5336a0577b715edf49bef3794c6b1a8fa225a73 (diff) |
Expound on canvas example documentation
Change-Id: I5bf82697dcbadaa9dc58e11ee22b2ab8c1a28852
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
Diffstat (limited to 'examples/quick/canvas/canvas.qml')
-rw-r--r-- | examples/quick/canvas/canvas.qml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/quick/canvas/canvas.qml b/examples/quick/canvas/canvas.qml index cf3c37a4c3..afb6fbf74e 100644 --- a/examples/quick/canvas/canvas.qml +++ b/examples/quick/canvas/canvas.qml @@ -51,9 +51,12 @@ import "../../shared" as Examples a small QML file emphasizing a particular element or feature. Red heart demonstrates using a bezierCurve API to stroke and fill a red heart. + \snippet examples/quick/canvas/bezierCurve/bezierCurve.qml 0 - Talk bubble demonstrates using a quadraticCurveTo API to stroke and fill a customized talk bubble, - this example also demonstrates the fillText API. + Talk bubble demonstrates using a quadraticCurveTo API to stroke and fill a customized talk bubble: + \snippet examples/quick/canvas/quadraticCurveTo/quadraticCurveTo.qml 0 + This example also demonstrates the fillText API: + \snippet examples/quick/canvas/quadraticCurveTo/quadraticCurveTo.qml 1 Squircle demonstrates using a collection of simple moveTo/lineTo path APIs to draw a smooth squircle. @@ -62,8 +65,10 @@ import "../../shared" as Examples Smile face demonstrates using several complex path APIs to draw an fill a smile face. Clip demonstrates using clip API to clip a given image. + \snippet examples/quick/canvas/clip/clip.qml 0 Tiger demonstrates using SVG path API to draw a tiger with a collection of SVG path strings. + \snippet examples/quick/canvas/tiger/tiger.qml 0 */ |