summaryrefslogtreecommitdiff
path: root/src/examples/edje/edje-threshold.edc
blob: 1216c2bbddf1ae44caa3823ef3c8029ea55c9bc0 (plain) (blame)
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
collections {
   group {
      name: "main";
      parts {
         part {
            type: RECT;
            name: background;
            mouse_events: 0;
            description {
               color: 0 0 0 255;
            }
         }
         part {
            type: RECT;
            name: "area/vertical";
            mouse_events: 0;
            description {
               color: 255 0 0 255;
               align: 0.5 0;
               min: 20 30;
               max: 20 -1;
            }
         }
         part {
            type: RECT;
            name: "area/horizontal";
            mouse_events: 0;
            description {
               color: 255 0 0 255;
               align: 0 0.5;
               min: 30 20;
               max: -1 20;
            }
         }
         part {
            type: RECT;
            name: "threshold/horizontal";
            mouse_events: 0;
            description {
               color: 0 0 255 255;
               rel1 {
                  to: "drag/horizontal";
                  offset: -13 -13;
               }
               rel2 {
                  to: "drag/horizontal";
                  offset: +12 +12;
               }
            }
         }
         part {
            type: RECT;
            name: "drag/horizontal";
            mouse_events: 1;
            dragable {
               confine: "area/horizontal";
               threshold: "threshold/horizontal";
               x: 1 1 0;
               y: 0 0 0;
            }
            description {
               aspect: 1 1;
               color: 0 255 0 255;
               min: 20 20;
               max: 20 20;
            }
         }
         part {
            type: RECT;
            name: "drag/vertical";
            mouse_events: 1;
            dragable {
               confine: "area/vertical";
               threshold: "threshold/horizontal";
               x: 0 0 0;
               y: 1 1 0;
            }
            description {
               aspect: 1 1;
               color: 0 255 255 255;
               min: 20 20;
               max: 20 20;
            }
         }
      }
   }
}