summaryrefslogtreecommitdiff
path: root/src/tests/edje/data/test_filters.edc
blob: df84c488853aaeaa1be36ea169f42d1f13b2bc22 (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
data {
   file: "filterfile" "filter.lua";
}
color_classes {
   color_class {
      name: "cc1";
      color: 0 0 255 255;
      color2: 0 255 255 255;
      color3: 0 0 255 255;
   }
}
collections {
   images {
      // found in tests/emotion/data
      image: "pnl.png" COMP;
   }
   group { name: "test_group";
      parts {
         part { name: "background";
            type: RECT;
            description { state: "default" 0.0;
               color: 33 32 32 255;
               rel1.relative: 0 0;
               rel2.relative: 1 1;
               max: 200 200;
            }
         }
         part { name: "mask";
            type: IMAGE;
            no_render: 1; 
            description { state: "default" 0.0;
               rel1.relative: 0 0;
               rel2.relative: 1 1;
               rel.to: "text";
               max: 999 50;
               image.normal: "pnl.png";
            }
         }
         part { name: "text";
            type: TEXT;
            description { state: "default" 0.0;
               rel1.relative: 0 0;
               rel2.relative: 1 1;
               rel1.to: "background";
               rel2.to: "background";
               text {
                  text: "FILTER";
                  font: "Sans";
                  size: 48;
               }
               filter {
                  code: "filterfile";
                  source: "mask";
                  data: "mycolor" "#f0f8"; 
                  data: "cc" "color_class('cc1')";
               }
               color: 255 80 0 200;
            }
         }
      }
   }
}