1 // compile: edje_cc edje_example.edc
4 name: "my_group"; // must be the same as in edje_example.c
9 type: RECT; // plain boring rectangle
10 mouse_events: 0; // we don't need any mouse event on the background
12 // just one state "default"
14 state: "default" 0.0; // must always exist
15 color: 255 255 255 255; // white
17 // define part coordinates:
19 rel1 { // top-left point at (0, 0) [WIDTH * 0 + 0, HEIGHT * 0 + 0]
23 rel2 { // bottom-right point at (WIDTH * 1.0 - 1, HEIGHT * 1.0 - 1)
33 mouse_events: 1; // we want to change the color on mouse-over
35 // 2 states, one "default" and another "over" to be used
36 // on mouse over effect
40 color: 255 0 0 255; // red
42 // define part coordinates:
44 rel1 { // top-left at (WIDTH * 0.1 + 5, HEIGHT * 0.2 + 10)
48 rel2 { // bottom-right at (WIDTH * 0.9 - 6, HEIGHT * 0.8 - 11)
53 // define text specific state details
55 font: "Sans"; // using fontconfig name!
63 inherit: "default" 0.0; // copy everything from "default" at this point
65 color: 0 255 0 255; // override color, now it is green
69 // do programs to change color on text mouse in/out (over)
72 // what triggers this program:
76 // what this program does:
77 action: STATE_SET "over" 0.0;
80 // do the state-set in a nice interpolation animation
81 // using linear time in 0.1 second
82 transition: LINEAR 0.1;
86 // what triggers this program:
90 // what this program does:
91 action: STATE_SET "default" 0.0;
94 // do the state-set in a nice interpolation animation
95 // using linear time in 0.1 second
96 transition: LINEAR 0.1;