Debian Codegraph @

src/imports/Components/1.3/LomiriNumberAnimation.qml

raw
1 /*
2 * Copyright 2013 Canonical Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; version 3.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 */
17
18 import QtQuick 2.4
19 import Lomiri.Components 1.3
20
21 /*!
22 \qmltype LomiriNumberAnimation
23 \inqmlmodule Lomiri.Components
24 \ingroup lomiri
25 \brief LomiriNumberAnimation is a NumberAnimation that has predefined
26 settings to ensure that Lomiri applications are consistent in their animations.
27
28 Example of use:
29
30 \qml
31 import QtQuick 2.4
32 import Lomiri.Components 1.3
33
34 Rectangle {
35 width: 100; height: 100
36 color: LomiriColors.orange
37
38 LomiriNumberAnimation on x { to: 50 }
39 }
40 \endqml
41
42 LomiriNumberAnimation is predefined with the following settings:
43 \list
44 \li \e duration: \l{LomiriAnimation::FastDuration}{LomiriAnimation.FastDuration}
45 \li \e easing: \l{LomiriAnimation::StandardEasing}{LomiriAnimation.StandardEasing}
46 \endlist
47
48 If the standard duration and easing used by LomiriNumberAnimation do not
49 satisfy a use case or you need to use a different type of Animation
50 (e.g. ColorAnimation), use standard durations and easing defined in
51 \l LomiriAnimation manually in order to ensure consistency.
52 */
53 NumberAnimation {
54 duration: LomiriAnimation.FastDuration
55 easing: LomiriAnimation.StandardEasing
56 }