efl
1efl_version: 1 22;
2
3collections {
4
5styles {
6style {
7name: "entry_style";
8base: "font="sans" font_size=10 color=#000 wrap="word" left_margin=2 right_margin=2";
9}
10}
11
12group {
13name: "example/main";
14min: 400 400;
15
16parts {
17part {
18name: "bg";
19type: RECT;
20mouse_events: 0;
21description {
22state: "default" 0.0;
23}
24}
25
26part {
27name: "title";
28type: TEXT;
29mouse_events: 0;
30description {
31state: "default" 0.0;
32color: 0 0 0 255;
33rel1 {
34relative: 0.0 0.0;
35offset: 0 0;
36to: "bg";
37}
38rel2 {
39relative: 1.0 0.2;
40offset: -1 -1;
41to: "bg";
42}
43text {
44text: "Multiseat Example";
45size: 16;
46font: "sans";
47min: 1 1;
48}
49}
50}
51
52part {
53name: "drag_area1";
54type: RECT;
55mouse_events: 0;
56description {
57state: "default" 0.0;
58color: 0 0 0 255;
59rel1 {
60relative: 0.1 0.25;
61offset: -5 0;
62}
63rel2 {
64relative: 0.1 0.9;
65offset: 4 0;
66}
67}
68}
69
70part {
71name: "example/knob1";
72type: RECT;
73mouse_events: 1;
74dragable {
75confine: "drag_area1";
76x: 0 0 0;
77y: 1 1 0;
78}
79description {
80state: "default" 0.0;
81min: 10 10;
82color: 200 200 200 255;
83}
84description {
85state: "focused,s1" 0.0;
86inherit: "default" 0.0;
87color: 200 0 0 255;
88}
89description {
90state: "focused,s2" 0.0;
91inherit: "default" 0.0;
92color: 0 200 0 255;
93}
94}
95
96part {
97name: "drag_area2";
98type: RECT;
99mouse_events: 0;
100description {
101state: "default" 0.0;
102color: 0 0 0 255;
103rel1 {
104relative: 0.2 0.25;
105offset: -5 0;
106}
107rel2 {
108relative: 0.2 0.9;
109offset: 4 0;
110}
111}
112}
113
114part {
115name: "example/knob2";
116type: RECT;
117mouse_events: 1;
118dragable {
119confine: "drag_area2";
120x: 0 0 0;
121y: 1 1 0;
122}
123description {
124state: "default" 0.0;
125min: 10 10;
126color: 200 200 200 255;
127}
128description {
129state: "focused,s1" 0.0;
130inherit: "default" 0.0;
131color: 200 0 0 255;
132}
133description {
134state: "focused,s2" 0.0;
135inherit: "default" 0.0;
136color: 0 200 0 255;
137}
138}
139
140part {
141name: "bg_text1";
142type: RECT;
143mouse_events: 0;
144description {
145state: "default" 0.0;
146min: 10 50;
147rel1.relative: 0.3 0.25;
148rel2.relative: 0.9 0.4;
149color: 200 200 200 255;
150}
151description {
152state: "focused,s1" 0.0;
153inherit: "default" 0.0;
154color: 200 0 0 255;
155}
156description {
157state: "focused,s2" 0.0;
158inherit: "default" 0.0;
159color: 0 200 0 255;
160}
161}
162
163part {
164name: "example/text1";
165type: TEXTBLOCK;
166scale: 1;
167entry_mode: EDITABLE;
168select_mode: DEFAULT;
169cursor_mode: UNDER;
170mouse_events: 1;
171multiline: 1;
172source: "example/selection";
173source4: "example/cursor";
174description {
175state: "default" 0.0;
176min: 12 50;
177rel1 {
178to: "bg_text1";
179offset: 2 2;
180}
181rel2 {
182to: "bg_text1";
183offset: -3 -3;
184}
185text {
186style: "entry_style";
187min: 0 1;
188align: 0.0 0.0;
189}
190}
191}
192
193part {
194name: "bg_text2";
195type: RECT;
196mouse_events: 0;
197description {
198state: "default" 0.0;
199min: 10 50;
200rel1.relative: 0.3 0.45;
201rel2.relative: 0.9 0.6;
202color: 200 200 200 255;
203}
204description {
205state: "focused,s1" 0.0;
206inherit: "default" 0.0;
207color: 200 0 0 255;
208}
209description {
210state: "focused,s2" 0.0;
211inherit: "default" 0.0;
212color: 0 200 0 255;
213}
214}
215
216part {
217name: "example/text2";
218type: TEXTBLOCK;
219scale: 1;
220entry_mode: EDITABLE;
221select_mode: DEFAULT;
222cursor_mode: UNDER;
223mouse_events: 1;
224multiline: 1;
225source: "example/selection";
226source4: "example/cursor";
227description {
228state: "default" 0.0;
229min: 12 50;
230rel1 {
231to: "bg_text2";
232offset: 2 2;
233}
234rel2 {
235to: "bg_text2";
236offset: -3 -3;
237}
238text {
239style: "entry_style";
240min: 0 1;
241align: 0.0 0.0;
242}
243}
244}
245
246part {
247name: "button_bg";
248type: RECT;
249mouse_events: 1;
250description {
251state: "default" 0.0;
252rel1.relative: 0.45 0.65;
253rel2.relative: 0.9 0.9;
254color: 200 200 200 255;
255}
256}
257
258part {
259name: "button_area";
260type: RECT;
261mouse_events: 0;
262description {
263state: "default" 0.0;
264rel1 {
265to: "button_bg";
266offset: 10 10;
267}
268rel2 {
269to: "button_bg";
270offset: -11 -11;
271}
272color: 0 0 0 0;
273}
274}
275
276part {
277name: "button_left_over";
278type: RECT;
279mouse_events: 0;
280description {
281state: "default" 0.0;
282rel1 {
283to: "button_area";
284relative: 0.0 0.0;
285}
286rel2 {
287to: "button_area";
288relative: 0.5 0.5;
289}
290color: 255 0 0 100;
291}
292description {
293state: "on" 0.0;
294inherit: "default" 0.0;
295color: 255 0 0 255;
296}
297}
298
299part {
300name: "button_left_over_label";
301type: TEXT;
302mouse_events: 0;
303description {
304state: "default" 0.0;
305color: 0 0 0 255;
306rel1.to: "button_left_over";
307rel2.to: "button_left_over";
308text {
309text: "Seat 1 over";
310size: 10;
311font: "sans";
312min: 1 1;
313}
314}
315}
316
317part {
318name: "button_left_focus";
319type: RECT;
320mouse_events: 0;
321description {
322state: "default" 0.0;
323rel1 {
324to: "button_area";
325relative: 0.0 0.5;
326}
327rel2 {
328to: "button_area";
329relative: 0.5 1.0;
330}
331color: 255 0 0 100;
332}
333description {
334state: "on" 0.0;
335inherit: "default" 0.0;
336color: 255 0 0 255;
337}
338}
339
340part {
341name: "button_left_focus_label";
342type: TEXT;
343mouse_events: 0;
344description {
345state: "default" 0.0;
346color: 0 0 0 255;
347rel1.to: "button_left_focus";
348rel2.to: "button_left_focus";
349text {
350text: "Seat 1 focus";
351size: 10;
352font: "sans";
353min: 1 1;
354}
355}
356}
357
358part {
359name: "button_right_over";
360type: RECT;
361mouse_events: 0;
362description {
363state: "default" 0.0;
364rel1 {
365to: "button_area";
366relative: 0.5 0.0;
367}
368rel2 {
369to: "button_area";
370relative: 1.0 0.5;
371}
372color: 0 255 0 100;
373}
374description {
375state: "on" 0.0;
376inherit: "default" 0.0;
377color: 0 255 0 255;
378}
379}
380
381part {
382name: "button_right_over_label";
383type: TEXT;
384mouse_events: 0;
385description {
386state: "default" 0.0;
387color: 0 0 0 255;
388rel1.to: "button_right_over";
389rel2.to: "button_right_over";
390text {
391text: "Seat 2 over";
392size: 10;
393font: "sans";
394min: 1 1;
395}
396}
397}
398
399part {
400name: "button_right_focus";
401type: RECT;
402mouse_events: 0;
403description {
404state: "default" 0.0;
405rel1 {
406to: "button_area";
407relative: 0.5 0.5;
408}
409rel2 {
410to: "button_area";
411relative: 1.0 1.0;
412}
413color: 0 255 0 100;
414}
415description {
416state: "on" 0.0;
417inherit: "default" 0.0;
418color: 0 255 0 255;
419}
420}
421
422part {
423name: "button_right_focus_label";
424type: TEXT;
425mouse_events: 0;
426description {
427state: "default" 0.0;
428color: 0 0 0 255;
429rel1.to: "button_right_focus";
430rel2.to: "button_right_focus";
431text {
432text: "Seat 2 focus";
433size: 10;
434font: "sans";
435min: 1 1;
436}
437}
438}
439
440part {
441name: "unfocus_area";
442type: RECT;
443mouse_events: 1;
444repeat_events: 1;
445description {
446state: "default" 0.0;
447color: 255 255 255 0;
448}
449}
450
451part {
452name: "example/swallow";
453type: SWALLOW;
454mouse_events: 1;
455description {
456state: "default" 0.0;
457rel1.relative: 0.3 0.65;
458rel2.relative: 0.4 0.9;
459}
460}
461}
462
463programs {
464program {
465name: "focus";
466signal: "load";
467source: "";
468action: FOCUS_SET "seat1";
469target: "example/text1";
470}
471
472program {
473name: "focus,t1,s1";
474signal: "seat,seat1,mouse,clicked,1";
475source: "example/text1";
476action: FOCUS_SET "seat1";
477target: "example/text1";
478}
479
480program {
481name: "focus,color,t1,s1";
482signal: "seat,seat1,focus,part,in";
483source: "example/text1";
484action: STATE_SET "focused,s1" 0.0;
485target: "bg_text1";
486}
487
488program {
489name: "unfocus,color,t1,s1";
490signal: "seat,seat1,focus,part,out";
491source: "example/text1";
492action: STATE_SET "default" 0.0;
493target: "bg_text1";
494}
495
496program {
497name: "focus,t2,s1";
498signal: "seat,seat1,mouse,clicked,1";
499source: "example/text2";
500action: FOCUS_SET "seat1";
501target: "example/text2";
502}
503
504program {
505name: "focus,color,t2,s1";
506signal: "seat,seat1,focus,part,in";
507source: "example/text2";
508action: STATE_SET "focused,s1" 0.0;
509target: "bg_text2";
510}
511
512program {
513name: "unfocus,color,t2,s1";
514signal: "seat,seat1,focus,part,out";
515source: "example/text2";
516action: STATE_SET "default" 0.0;
517target: "bg_text2";
518}
519
520program {
521name: "focus,t1,s2";
522signal: "seat,seat2,mouse,clicked,1";
523source: "example/text1";
524action: FOCUS_SET "seat2";
525target: "example/text1";
526}
527
528program {
529name: "focus,color,t1,s2";
530signal: "seat,seat2,focus,part,in";
531source: "example/text1";
532action: STATE_SET "focused,s2" 0.0;
533target: "bg_text1";
534}
535
536program {
537name: "unfocus,color,t1,s2";
538signal: "seat,seat2,focus,part,out";
539source: "example/text1";
540action: STATE_SET "default" 0.0;
541target: "bg_text1";
542}
543
544program {
545name: "focus,t2,s2";
546signal: "seat,seat2,mouse,clicked,1";
547source: "example/text2";
548action: FOCUS_SET "seat2";
549target: "example/text2";
550}
551
552program {
553name: "focus,color,t2,s2";
554signal: "seat,seat2,focus,part,in";
555source: "example/text2";
556action: STATE_SET "focused,s2" 0.0;
557target: "bg_text2";
558}
559
560program {
561name: "unfocus,color,t2,s2";
562signal: "seat,seat2,focus,part,out";
563source: "example/text2";
564action: STATE_SET "default" 0.0;
565target: "bg_text2";
566}
567
568program {
569name: "button,left,in";
570signal: "seat,seat1,mouse,in";
571source: "button_bg";
572action: STATE_SET "on" 0.0;
573target: "button_left_over";
574}
575
576program {
577name: "button,left,out";
578signal: "seat,seat1,mouse,out";
579source: "button_bg";
580action: STATE_SET "default" 0.0;
581target: "button_left_over";
582}
583
584program {
585name: "button,left,focus";
586signal: "seat,seat1,mouse,clicked,1";
587source: "button_bg";
588action: FOCUS_SET "seat1";
589target: "button_bg";
590}
591
592program {
593name: "button,left,focused";
594signal: "seat,seat1,focus,part,in";
595source: "button_bg";
596action: STATE_SET "on" 0.0;
597target: "button_left_focus";
598}
599
600program {
601name: "button,left,unfocused";
602signal: "seat,seat1,focus,part,out";
603source: "button_bg";
604action: STATE_SET "default" 0.0;
605target: "button_left_focus";
606}
607
608program {
609name: "button,right,in";
610signal: "seat,seat2,mouse,in";
611source: "button_bg";
612action: STATE_SET "on" 0.0;
613target: "button_right_over";
614}
615
616program {
617name: "button,right,out";
618signal: "seat,seat2,mouse,out";
619source: "button_bg";
620action: STATE_SET "default" 0.0;
621target: "button_right_over";
622}
623
624program {
625name: "button,right,focus";
626signal: "seat,seat2,mouse,clicked,1";
627source: "button_bg";
628action: FOCUS_SET "seat2";
629target: "button_bg";
630}
631
632program {
633name: "button,right,focused";
634signal: "seat,seat2,focus,part,in";
635source: "button_bg";
636action: STATE_SET "on" 0.0;
637target: "button_right_focus";
638}
639
640program {
641name: "button,right,unfocused";
642signal: "seat,seat2,focus,part,out";
643source: "button_bg";
644action: STATE_SET "default" 0.0;
645target: "button_right_focus";
646}
647
648program {
649name: "knob1,s1";
650signal: "seat,seat1,drag,start";
651source: "example/knob1";
652action: STATE_SET "focused,s1" 0.0;
653target: "example/knob1";
654}
655
656program {
657name: "knob1,s2";
658signal: "seat,seat2,drag,start";
659source: "example/knob1";
660action: STATE_SET "focused,s2" 0.0;
661target: "example/knob1";
662}
663
664program {
665name: "knob1,seat1";
666signal: "seat,*,drag,stop";
667source: "example/knob1";
668action: STATE_SET "default" 0.0;
669target: "example/knob1";
670}
671
672program {
673name: "knob2,s1";
674signal: "seat,seat1,drag,start";
675source: "example/knob2";
676action: STATE_SET "focused,s1" 0.0;
677target: "example/knob2";
678}
679
680program {
681name: "knob2,s2";
682signal: "seat,seat2,drag,start";
683source: "example/knob2";
684action: STATE_SET "focused,s2" 0.0;
685target: "example/knob2";
686}
687
688program {
689name: "knob2,seat1";
690signal: "seat,*,drag,stop";
691source: "example/knob2";
692action: STATE_SET "default" 0.0;
693target: "example/knob2";
694}
695
696program {
697name: "rect,focus,s1";
698signal: "seat,seat1,mouse,clicked,1";
699source: "example/swallow";
700action: FOCUS_OBJECT "seat1";
701target: "example/swallow";
702}
703
704program {
705name: "rect,unfocus,s1";
706signal: "seat,seat1,mouse,clicked,1";
707source: "unfocus_area";
708action: FOCUS_OBJECT "seat1";
709}
710
711program {
712name: "rect,focus,s2";
713signal: "seat,seat2,mouse,clicked,1";
714source: "example/swallow";
715action: FOCUS_OBJECT "seat2";
716target: "example/swallow";
717}
718
719program {
720name: "rect,unfocus,s2";
721signal: "seat,seat2,mouse,clicked,1";
722source: "unfocus_area";
723action: FOCUS_OBJECT "seat2";
724}
725}
726}
727
728group {
729name: "example/selection";
730
731parts {
732part {
733name: "selection";
734type: RECT;
735mouse_events: 0;
736description {
737state: "default" 0.0;
738color: 180 180 180 255;
739}
740}
741}
742}
743
744group {
745name: "example/cursor";
746min: 1 0;
747
748parts {
749part {
750name: "cursor";
751type: RECT;
752mouse_events: 0;
753description {
754state: "default" 0.0;
755min: 2 12;
756color: 0 0 0 255;
757}
758description {
759state: "hidden" 0.0;
760inherit: "default" 0.0;
761color: 0 0 0 0;
762}
763}
764}
765
766programs {
767program {
768name: "cursor_hide";
769signal: "load";
770source: "";
771action: STATE_SET "hidden" 0.0;
772target: "cursor";
773transition: SINUSOIDAL 0.2;
774after: "cursor_hide_timer";
775}
776program {
777name: "cursor_hide_timer";
778in: 0.2 0.0;
779after: "cursor_show";
780}
781program {
782name: "cursor_show";
783action: STATE_SET "default" 0.0;
784target: "cursor";
785after: "cursor_show_timer";
786}
787program {
788name: "cursor_show_timer";
789in: 0.5 0.0;
790after: "cursor_hide";
791}
792}
793}
794}
795