Image scaling and filtering on load across all applicable demos
[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     "parent-origin": "TOP_CENTER",
21     "position": [0, 144, 0],
22     "size": [480, 72, 1],
23     "lower-bound": 0,
24     "upper-bound": 1,
25     "show-popup": true,
26     "show-value": true,
27     "value-precision": 2,
28     "value": 0.0
29   }, {
30     "type": "Slider",
31     "parent-origin": "TOP_CENTER",
32     "position": [0, 224, 0],
33     "size": [300, 72, 1],
34     "lower-bound": 1,
35     "upper-bound": 10,
36     "show-popup": false,
37     "show-value": true,
38     "value-precision": 0,
39     "value": 5.0
40   }, {
41     "type": "Slider",
42     "parent-origin": "TOP_CENTER",
43     "position": [0, 304, 0],
44     "size": [300, 72, 1],
45     "lower-bound": 0,
46     "upper-bound": 5,
47     "show-popup": false,
48     "show-value": false,
49     "value": 0.0,
50     "mark-tolerance": 0.1,
51     "marks": [0, 1, 2, 3, 4, 5]
52   }, {
53     "type": "Slider",
54     "parent-origin": "TOP_CENTER",
55     "position": [0, 384, 0],
56     "size": [480, 72, 1],
57     "lower-bound": 0,
58     "upper-bound": 5,
59     "show-popup": false,
60     "show-value": false,
61     "value": 0.0,
62     "mark-tolerance": 0.1,
63     "snap-to-marks": true,
64     "marks": [0, 1, 2, 3, 4, 5]
65   }, {
66     "type": "Slider",
67     "parent-origin": "TOP_CENTER",
68     "position": [0, 464, 0],
69     "size": [480, 72, 1],
70     "lower-bound": 5,
71     "upper-bound": 100,
72     "show-popup": true,
73     "show-value": true,
74     "value-precision": 0,
75     "value": 50.0,
76     "popup-text-color": [1, 0, 0, 1],
77     "hit-region": [0, 48],
78     "backing-region": [0, 10],
79     "handle-region": [48, 48]
80   }, {
81     "type": "Slider",
82     "parent-origin": "TOP_CENTER",
83     "position": [0, 544, 0],
84     "size": [480, 72, 1],
85     "lower-bound": 10,
86     "upper-bound": 100,
87     "show-popup": true,
88     "show-value": true,
89     "value-prescision": 0,
90     "value": 100.0,
91     "hit-region": [0, 48],
92     "backing-region": [0, 10],
93     "handle-region": [48, 48],
94     "backing-image-name": "{DALI_IMAGE_DIR}circle_point_32x32.png",
95     "handle-image-name": "{DALI_IMAGE_DIR}circle_point_shadow_32x32.png",
96     "progress-image-name": "{DALI_IMAGE_DIR}circle_point.png",
97     "backing-scale9-border": [16, 0, 16, 0],
98     "progress-scale9-border": [16, 0, 16, 0]
99   }, {
100     "type": "Slider",
101     "parent-origin": "TOP_CENTER",
102     "position": [0, 624, 0],
103     "size": [480, 72, 1],
104     "lower-bound": 10,
105     "upper-bound": 100,
106     "show-popup": true,
107     "show-value": true,
108     "value-precision": 0,
109     "value": 50.0,
110     "hit-region": [0, 48],
111     "backing-region": [0, 10],
112     "handle-region": [48, 48],
113     "enabled": false
114   }, {
115     "type": "Slider",
116     "parent-origin": "TOP_CENTER",
117     "position": [0, 704, 0],
118     "size": [480, 72, 1],
119     "lower-bound": 10,
120     "upper-bound": 100,
121     "show-popup": true,
122     "show-value": true,
123     "value-precision": 0,
124     "value": 50.0,
125     "hit-region": [0, 48],
126     "backing-region": [0, 10],
127     "handle-region": [48, 48],
128     "enabled": false,
129     "disable-color": [1, 0, 0, 1]
130   }]
131 }