summaryrefslogtreecommitdiff
path: root/src/examples/edje/box_example.edc
blob: 0c56994007c2a2246b34d8022b40c7d3e0016a65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
collections {
   images {
      image: "bubble-blue.png" COMP;
   }
   group { name: "red_group";
      parts {
         part { name: "red";
            type: RECT;
            description { state: "default" 0.0;
               color: 255 0 0 255;
            }
         }
      }
   }
   group { name: "blue_group";
      parts {
         part { name: "blue";
            type: RECT;
            description { state: "default" 0.0;
               color: 0 0 255 255;
            }
         }
      }
   }
   group { name: "green_group";
      parts {
         part { name: "green";
            type: RECT;
            description { state: "default" 0.0;
               color: 0 255 0 255;
            }
         }
      }
   }
   group { name: "complex_group";
      parts {
         part { name: "green";
            type: RECT;
            description { state: "default" 0.0;
               color: 255 0 255 255;
            }
         }
         part {
            type: IMAGE;
            name: "bg";
            description {
               state: "default" 0.0;
               image {
                  normal: "bubble-blue.png";
               }
               rel1.relative: 0.25 0.25;
               rel2.relative: 0.75 0.75;
            }
         }
      }
   }

   group { name: "box_group";
      parts {
         part { name: "bg";
            type: RECT;
            description { state: "default" 0.0;
               visible: 1;
               color: 0 0 0 255;
            }
         }
         part { name: "green";
            type: BOX;
            box {
               items {
                  item {
                     type: GROUP;
                     name: "x1";
                     source: "red_group";
                     min: 100 100;
                     max: 200 200;
                     align: 0 0;
                     weight: 20 10;
                  }
                  item {
                     type: GROUP;
                     name: "x2";
                     source: "blue_group";
                     min: 200 200;
                     max: 800 800;
                  }
                  item {
                     type: GROUP;
                     name: "x3";
                     source: "green_group";
                     min: 20 20;
                     max: 100 100;
                     align: 0.3 0.7;
                     weight: 5 15;
                  }
               }
            }
            description { state: "default" 0.0;
               visible: 1;
               color: 255 255 255 255;
               box {
                  layout: "horizontal";
                  padding: 5 5;
               }
            }
         }
      }
   }
}