summaryrefslogtreecommitdiff
path: root/src/tests/edje/data/test_filters.edc
blob: 2c31955dc7944ed994af40a7b5303c6886ac4b1a (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
color_classes {
   color_class {
      name: "cc1";
      color: 0 0 255 255;
      color2: 0 255 255 255;
      color3: 0 0 255 255;
   }
}
filters {
   // some unused filters
   filter.file: "filter0" "filter.lua";
   filter.inline: "filter1" "blend {}";
}
collections {
   filters {
      // some unused filters
      filter.file: "filter2" "filter.lua";
      filter.inline: "filter3" "blend {}";
   }
   images {
      // found in tests/emotion/data
      image: "pnl.png" COMP;
   }
   group { name: "test_group";
      filters {
         filter.file: "filterfile" "filter.lua";
      }
      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;
                  ellipsis: -1;
               }
               filter {
                  code: "filterfile";
                  source: "mask";
                  data: "mycolor" "#f0f8"; 
                  data: "cc" "color_class('cc1')";
               }
               color: 255 80 0 200;
            }
         }
      }
   }
}