~ubuntu-branches/ubuntu/saucy/qtdeclarative-opensource-src/saucy

« back to all changes in this revision

Viewing changes to examples/quick/canvas/doc/src/canvas.qdoc

  • Committer: Package Import Robot
  • Author(s): Timo Jyrinki
  • Date: 2013-02-05 14:17:19 UTC
  • Revision ID: package-import@ubuntu.com-20130205141719-qqeyml8wslpyez52
Tags: upstream-5.0.1
ImportĀ upstreamĀ versionĀ 5.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
**
 
3
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
 
4
** Contact: http://www.qt-project.org/legal
 
5
**
 
6
** This file is part of the documentation of the Qt Toolkit.
 
7
**
 
8
** $QT_BEGIN_LICENSE:FDL$
 
9
** Commercial License Usage
 
10
** Licensees holding valid commercial Qt licenses may use this file in
 
11
** accordance with the commercial license agreement provided with the
 
12
** Software or, alternatively, in accordance with the terms contained in
 
13
** a written agreement between you and Digia.  For licensing terms and
 
14
** conditions see http://qt.digia.com/licensing.  For further information
 
15
** use the contact form at http://qt.digia.com/contact-us.
 
16
**
 
17
** GNU Free Documentation License Usage
 
18
** Alternatively, this file may be used under the terms of the GNU Free
 
19
** Documentation License version 1.3 as published by the Free Software
 
20
** Foundation and appearing in the file included in the packaging of
 
21
** this file.  Please review the following information to ensure
 
22
** the GNU Free Documentation License version 1.3 requirements
 
23
** will be met: http://www.gnu.org/copyleft/fdl.html.
 
24
** $QT_END_LICENSE$
 
25
**
 
26
****************************************************************************/
 
27
 
 
28
/*!
 
29
    \title QtQuick Examples - Canvas
 
30
    \example quick/canvas
 
31
    \brief This is a collection of QML Canvas examples.
 
32
    \image qml-canvas-example.png
 
33
    \ingroup qtquickexamples
 
34
 
 
35
    This is a collection of small QML examples relating to Canvas item. Each example is
 
36
    a small QML file emphasizing a particular element or feature.
 
37
 
 
38
    Red heart demonstrates using a bezierCurve API to stroke and fill a red heart.
 
39
    \snippet quick/canvas/bezierCurve/bezierCurve.qml 0
 
40
 
 
41
    Talk bubble demonstrates using a quadraticCurveTo API to stroke and fill a customized talk bubble:
 
42
    \snippet quick/canvas/quadraticCurveTo/quadraticCurveTo.qml 0
 
43
    This example also demonstrates the fillText API:
 
44
    \snippet quick/canvas/quadraticCurveTo/quadraticCurveTo.qml 1
 
45
 
 
46
    Squircle demonstrates using a collection of simple moveTo/lineTo path APIs to draw a smooth squircle.
 
47
 
 
48
    Rounded rectangle demonstrates using a collection if lineTo/arcTo path APIs to draw a rounded rectangle.
 
49
 
 
50
    Smile face demonstrates using several complex path APIs to draw an fill a smile face.
 
51
 
 
52
    Clip demonstrates using clip API to clip a given image.
 
53
    \snippet quick/canvas/clip/clip.qml 0
 
54
 
 
55
    Tiger demonstrates using SVG path API to draw a tiger with a collection of SVG path strings.
 
56
    \snippet quick/canvas/tiger/tiger.qml 0
 
57
 
 
58
*/
 
59