summaryrefslogtreecommitdiff
path: root/data/elementary/objects/test_masking.edc
blob: 4a1beabb76aaab2643ca368cdd5a9483b6920746 (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
collections {
   images {
      image: "roundedrect.png" COMP;
   }
   filters {
      filter { name: "aura";
         script {
            padding_set { 5 }
            fill { color = '#2228' }
            blur { 5, color = 'red' }
            blur { 2, color = 'orange' }
            blend {}
         }
      }
   }
   group { "masking";
      parts {
         rect { "clip"; norender; }
         image { "mask";
            norender;
            desc { "default";
               image {
                  normal: "roundedrect.png";
                  border: 22 22 22 22;
               }
            }
         }
         swallow { "content";
            desc { "default";
               clip_to: "mask";
            }
            desc { "unclipped";
               clip_to: "clip";
            }
         }
      }
      programs {
         program {
            signal: "unclip";
            source: "*";
            action: STATE_SET "unclipped";
            target: "content";
         }
         program {
            signal: "clip";
            source: "*";
            action: STATE_SET "default";
            target: "content";
         }
      }
   }
   group { "text";
      parts {
         text { "text";
            desc { "default";
               text {
                  font: "Sans";
                  size: 32;
                  text: "HELLO";
                  ellipsis: -1;
               }
               fixed: 1 1;
               filter.code: "aura";
               rel1.offset: -5 -5;
               rel2.offset: 4 4;
            }
         }
      }
   }
}