diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/edje/src/examples/perspective.edc | 140 |
1 files changed, 140 insertions, 0 deletions
diff --git a/libraries/edje/src/examples/perspective.edc b/libraries/edje/src/examples/perspective.edc new file mode 100644 index 0000000..810ae18 --- /dev/null +++ b/libraries/edje/src/examples/perspective.edc | |||
@@ -0,0 +1,140 @@ | |||
1 | collections { | ||
2 | group { | ||
3 | name: "example/group"; | ||
4 | |||
5 | min: 480 320; | ||
6 | |||
7 | parts { | ||
8 | part { | ||
9 | name: "bg"; | ||
10 | type: RECT; | ||
11 | mouse_events: 1; | ||
12 | |||
13 | description { | ||
14 | state: "default" 0.0; | ||
15 | } | ||
16 | } // bg | ||
17 | |||
18 | part { | ||
19 | name: "rectangle"; | ||
20 | type: RECT; | ||
21 | mouse_events: 0; | ||
22 | |||
23 | description { | ||
24 | state: "default" 0.0; | ||
25 | color: 255 0 0 128; | ||
26 | |||
27 | rel1 { | ||
28 | offset: -5 -5; | ||
29 | to: "title"; | ||
30 | } | ||
31 | rel2 { | ||
32 | offset: 4 4; | ||
33 | to: "title"; | ||
34 | } | ||
35 | |||
36 | map { | ||
37 | on: 1; | ||
38 | perspective_on: 1; | ||
39 | rotation { | ||
40 | x: 45; | ||
41 | } | ||
42 | } | ||
43 | } | ||
44 | } // rectangle | ||
45 | |||
46 | part { | ||
47 | name: "title"; | ||
48 | type: TEXT; | ||
49 | mouse_events: 0; | ||
50 | |||
51 | description { | ||
52 | state: "default" 0.0; | ||
53 | color: 200 200 200 255; | ||
54 | |||
55 | align: 0.0 0.5; | ||
56 | |||
57 | rel1.relative: 0.1 0.1; | ||
58 | rel2.relative: 0.1 0.1; | ||
59 | |||
60 | text { | ||
61 | text: "Perspective example"; | ||
62 | font: "Sans"; | ||
63 | size: 16; | ||
64 | min: 1 1; | ||
65 | } | ||
66 | |||
67 | map { | ||
68 | on: 1; | ||
69 | perspective_on: 1; | ||
70 | rotation { | ||
71 | x: 45; | ||
72 | } | ||
73 | } | ||
74 | } | ||
75 | |||
76 | description { | ||
77 | state: "right" 0.0; | ||
78 | inherit: "default" 0.0; | ||
79 | |||
80 | rel1.relative: 0.5 0.1; | ||
81 | rel2.relative: 0.5 0.1; | ||
82 | } | ||
83 | description { | ||
84 | state: "bottom" 0.0; | ||
85 | inherit: "default" 0.0; | ||
86 | |||
87 | rel1.relative: 0.1 0.9; | ||
88 | rel2.relative: 0.1 0.9; | ||
89 | } | ||
90 | description { | ||
91 | state: "bottomright" 0.0; | ||
92 | inherit: "default" 0.0; | ||
93 | |||
94 | rel1.relative: 0.5 0.9; | ||
95 | rel2.relative: 0.5 0.9; | ||
96 | } | ||
97 | } // title | ||
98 | } | ||
99 | |||
100 | programs { | ||
101 | program { | ||
102 | name: "move,right"; | ||
103 | signal: "move,1,0"; | ||
104 | action: STATE_SET "right" 0.0; | ||
105 | transition: SINUSOIDAL 1.0; | ||
106 | target: "title"; | ||
107 | after: "animation,end"; | ||
108 | } | ||
109 | program { | ||
110 | name: "move,bottom"; | ||
111 | signal: "move,0,1"; | ||
112 | action: STATE_SET "bottom" 0.0; | ||
113 | transition: SINUSOIDAL 1.0; | ||
114 | target: "title"; | ||
115 | after: "animation,end"; | ||
116 | } | ||
117 | program { | ||
118 | name: "move,bottomright"; | ||
119 | signal: "move,1,1"; | ||
120 | action: STATE_SET "bottomright" 0.0; | ||
121 | transition: SINUSOIDAL 1.0; | ||
122 | target: "title"; | ||
123 | after: "animation,end"; | ||
124 | } | ||
125 | program { | ||
126 | name: "move,default"; | ||
127 | signal: "move,0,0"; | ||
128 | action: STATE_SET "default" 0.0; | ||
129 | transition: SINUSOIDAL 1.0; | ||
130 | target: "title"; | ||
131 | after: "animation,end"; | ||
132 | } | ||
133 | |||
134 | program { | ||
135 | name: "animation,end"; | ||
136 | action: SIGNAL_EMIT "animation,end" ""; | ||
137 | } | ||
138 | } | ||
139 | } | ||
140 | } | ||