Merge branch 'devel/master' into tizen
[platform/core/uifw/dali-demo.git] / resources / scripts / slider.json
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 {
18   "stage": [{
19     "type": "Slider",
20     "parentOrigin": "TOP_CENTER",
21     "position": [0, 144, 0],
22     "size": [480, 72, 1],
23     "lowerBound": 0,
24     "upperBound": 1,
25     "showPopup": true,
26     "showValue": true,
27     "valuePrecision": 2,
28     "value": 0.0
29   }, {
30     "type": "Slider",
31     "parentOrigin": "TOP_CENTER",
32     "position": [0, 224, 0],
33     "size": [300, 72, 1],
34     "lowerBound": 1,
35     "upperBound": 10,
36     "showPopup": false,
37     "showValue": true,
38     "valuePrecision": 0,
39     "value": 5.0
40   }, {
41     "type": "Slider",
42     "parentOrigin": "TOP_CENTER",
43     "position": [0, 304, 0],
44     "size": [300, 72, 1],
45     "lowerBound": 0,
46     "upperBound": 5,
47     "showPopup": false,
48     "showValue": false,
49     "value": 0.0,
50     "markTolerance": 0.1,
51     "marks": [0, 1, 2, 3, 4, 5]
52   }, {
53     "type": "Slider",
54     "parentOrigin": "TOP_CENTER",
55     "position": [0, 384, 0],
56     "size": [480, 72, 1],
57     "lowerBound": 0,
58     "upperBound": 5,
59     "showPopup": false,
60     "showValue": false,
61     "value": 0.0,
62     "markTolerance": 0.1,
63     "snapToMarks": true,
64     "marks": [0, 1, 2, 3, 4, 5]
65   }, {
66     "type": "Slider",
67     "parentOrigin": "TOP_CENTER",
68     "position": [0, 464, 0],
69     "size": [480, 72, 1],
70     "lowerBound": 5,
71     "upperBound": 100,
72     "showPopup": true,
73     "showValue": true,
74     "valuePrecision": 0,
75     "value": 50.0,
76     "popupTextColor": [1, 0, 0, 1],
77     "hitRegion": [0, 48],
78     "backingRegion": [0, 10],
79     "handleRegion": [48, 48]
80   }, {
81     "type": "Slider",
82     "parentOrigin": "TOP_CENTER",
83     "position": [0, 544, 0],
84     "size": [480, 72, 1],
85     "lowerBound": 10,
86     "upperBound": 100,
87     "showPopup": true,
88     "showValue": true,
89     "valuePrescision": 0,
90     "value": 100.0,
91     "hitRegion": [0, 48],
92     "backingRegion": [0, 30],
93     "handleRegion": [48, 48],
94     "backingImageName": "{DEMO_IMAGE_DIR}button-up-14.9.png",
95     "handleImageName": "{DEMO_IMAGE_DIR}blocks-ball.png",
96     "progressImageName": "{DEMO_IMAGE_DIR}button-down.9.png"
97   }, {
98     "type": "Slider",
99     "parentOrigin": "TOP_CENTER",
100     "position": [0, 624, 0],
101     "size": [480, 72, 1],
102     "lowerBound": 10,
103     "upperBound": 100,
104     "showPopup": true,
105     "showValue": true,
106     "valuePrecision": 0,
107     "value": 50.0,
108     "hitRegion": [0, 48],
109     "backingRegion": [0, 10],
110     "handleRegion": [48, 48],
111     "enabled": false
112   }, {
113     "type": "Slider",
114     "parentOrigin": "TOP_CENTER",
115     "position": [0, 704, 0],
116     "size": [480, 72, 1],
117     "lowerBound": 10,
118     "upperBound": 100,
119     "showPopup": true,
120     "showValue": true,
121     "valuePrecision": 0,
122     "value": 50.0,
123     "hitRegion": [0, 48],
124     "backingRegion": [0, 10],
125     "handleRegion": [48, 48],
126     "enabled": false,
127     "disableColor": [1, 0, 0, 1]
128   }]
129 }