2 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 // A TextLabel with a red background
22 "draw-mode": "OVERLAY_2D",
23 "text": "Hello World",
24 "parent-origin": "TOP_CENTER",
25 "anchor-point": "TOP_CENTER",
26 "background-color": [1, 0, 0, 1],
27 "position": [0, 50, 0],
32 // A container with a yellow background
35 "relayout-enabled": false,
36 "parent-origin": "CENTER",
37 "anchor-point": "BOTTOM_CENTER",
38 "background-color": [1, 1, 0, 1],
42 // A container with an image
45 "relayout-enabled": false,
46 "parent-origin": "CENTER",
47 "anchor-point": "TOP_CENTER",
48 "size": [400, 150, 1],
50 "filename": "{DALI_IMAGE_DIR}button-background.png"
54 // A container with the same image blended in with a blue background
57 "relayout-enabled": false,
58 "parent-origin": "BOTTOM_CENTER",
59 "anchor-point": "BOTTOM_CENTER",
60 "size": [400, 150, 1],
61 "background-color": [0, 0, 1, 1],
63 "filename": "{DALI_IMAGE_DIR}button-background.png"