efl

Форк
0
/
multiseat.edc 
794 строки · 20.5 Кб
1
efl_version: 1 22;
2

3
collections {
4

5
   styles {
6
      style {
7
         name: "entry_style";
8
         base: "font="sans" font_size=10 color=#000 wrap="word" left_margin=2 right_margin=2";
9
      }
10
   }
11

12
   group {
13
      name: "example/main";
14
      min: 400 400;
15

16
      parts {
17
         part {
18
            name: "bg";
19
            type: RECT;
20
            mouse_events: 0;
21
            description {
22
               state: "default" 0.0;
23
            }
24
         }
25

26
         part {
27
            name: "title";
28
            type: TEXT;
29
            mouse_events: 0;
30
            description {
31
               state: "default" 0.0;
32
               color: 0 0 0 255;
33
               rel1 {
34
                  relative: 0.0 0.0;
35
                  offset: 0 0;
36
                  to: "bg";
37
               }
38
               rel2 {
39
                  relative: 1.0 0.2;
40
                  offset: -1 -1;
41
                  to: "bg";
42
               }
43
               text {
44
                  text: "Multiseat Example";
45
                  size: 16;
46
                  font: "sans";
47
                  min: 1 1;
48
               }
49
            }
50
         }
51

52
         part {
53
            name: "drag_area1";
54
            type: RECT;
55
            mouse_events: 0;
56
            description {
57
               state: "default" 0.0;
58
               color: 0 0 0 255;
59
               rel1 {
60
                  relative: 0.1 0.25;
61
                  offset: -5 0;
62
               }
63
               rel2 {
64
                  relative: 0.1 0.9;
65
                  offset: 4 0;
66
               }
67
            }
68
         }
69

70
         part {
71
            name: "example/knob1";
72
            type: RECT;
73
            mouse_events: 1;
74
            dragable {
75
               confine: "drag_area1";
76
               x: 0 0 0;
77
               y: 1 1 0;
78
            }
79
            description {
80
               state: "default" 0.0;
81
               min: 10 10;
82
               color: 200 200 200 255;
83
            }
84
            description {
85
               state: "focused,s1" 0.0;
86
               inherit: "default" 0.0;
87
               color: 200 0 0 255;
88
            }
89
            description {
90
               state: "focused,s2" 0.0;
91
               inherit: "default" 0.0;
92
               color: 0 200 0 255;
93
            }
94
         }
95

96
         part {
97
            name: "drag_area2";
98
            type: RECT;
99
            mouse_events: 0;
100
            description {
101
               state: "default" 0.0;
102
               color: 0 0 0 255;
103
               rel1 {
104
                  relative: 0.2 0.25;
105
                  offset: -5 0;
106
               }
107
               rel2 {
108
                  relative: 0.2 0.9;
109
                  offset: 4 0;
110
               }
111
            }
112
         }
113

114
         part {
115
            name: "example/knob2";
116
            type: RECT;
117
            mouse_events: 1;
118
            dragable {
119
               confine: "drag_area2";
120
               x: 0 0 0;
121
               y: 1 1 0;
122
            }
123
            description {
124
               state: "default" 0.0;
125
               min: 10 10;
126
               color: 200 200 200 255;
127
            }
128
            description {
129
               state: "focused,s1" 0.0;
130
               inherit: "default" 0.0;
131
               color: 200 0 0 255;
132
            }
133
            description {
134
               state: "focused,s2" 0.0;
135
               inherit: "default" 0.0;
136
               color: 0 200 0 255;
137
            }
138
         }
139

140
         part {
141
            name: "bg_text1";
142
            type: RECT;
143
            mouse_events: 0;
144
            description {
145
               state: "default" 0.0;
146
               min: 10 50;
147
               rel1.relative: 0.3 0.25;
148
               rel2.relative: 0.9 0.4;
149
               color: 200 200 200 255;
150
            }
151
            description {
152
               state: "focused,s1" 0.0;
153
               inherit: "default" 0.0;
154
               color: 200 0 0 255;
155
            }
156
            description {
157
               state: "focused,s2" 0.0;
158
               inherit: "default" 0.0;
159
               color: 0 200 0 255;
160
            }
161
         }
162

163
         part {
164
            name: "example/text1";
165
            type: TEXTBLOCK;
166
            scale: 1;
167
            entry_mode: EDITABLE;
168
            select_mode: DEFAULT;
169
            cursor_mode: UNDER;
170
            mouse_events: 1;
171
            multiline: 1;
172
            source: "example/selection";
173
            source4: "example/cursor";
174
            description {
175
               state: "default" 0.0;
176
               min: 12 50;
177
               rel1 {
178
                  to: "bg_text1";
179
                  offset: 2 2;
180
               }
181
               rel2 {
182
                  to: "bg_text1";
183
                  offset: -3 -3;
184
               }
185
               text {
186
                  style: "entry_style";
187
                  min: 0 1;
188
                  align: 0.0 0.0;
189
               }
190
            }
191
         }
192

193
         part {
194
            name: "bg_text2";
195
            type: RECT;
196
            mouse_events: 0;
197
            description {
198
               state: "default" 0.0;
199
               min: 10 50;
200
               rel1.relative: 0.3 0.45;
201
               rel2.relative: 0.9 0.6;
202
               color: 200 200 200 255;
203
            }
204
            description {
205
               state: "focused,s1" 0.0;
206
               inherit: "default" 0.0;
207
               color: 200 0 0 255;
208
            }
209
            description {
210
               state: "focused,s2" 0.0;
211
               inherit: "default" 0.0;
212
               color: 0 200 0 255;
213
            }
214
         }
215

216
         part {
217
            name: "example/text2";
218
            type: TEXTBLOCK;
219
            scale: 1;
220
            entry_mode: EDITABLE;
221
            select_mode: DEFAULT;
222
            cursor_mode: UNDER;
223
            mouse_events: 1;
224
            multiline: 1;
225
            source: "example/selection";
226
            source4: "example/cursor";
227
            description {
228
               state: "default" 0.0;
229
               min: 12 50;
230
               rel1 {
231
                  to: "bg_text2";
232
                  offset: 2 2;
233
               }
234
               rel2 {
235
                  to: "bg_text2";
236
                  offset: -3 -3;
237
               }
238
               text {
239
                  style: "entry_style";
240
                  min: 0 1;
241
                  align: 0.0 0.0;
242
               }
243
            }
244
         }
245

246
         part {
247
            name: "button_bg";
248
            type: RECT;
249
            mouse_events: 1;
250
            description {
251
               state: "default" 0.0;
252
               rel1.relative: 0.45 0.65;
253
               rel2.relative: 0.9 0.9;
254
               color: 200 200 200 255;
255
            }
256
         }
257

258
         part {
259
            name: "button_area";
260
            type: RECT;
261
            mouse_events: 0;
262
            description {
263
               state: "default" 0.0;
264
               rel1 {
265
                  to: "button_bg";
266
                  offset: 10 10;
267
               }
268
               rel2 {
269
                  to: "button_bg";
270
                  offset: -11 -11;
271
               }
272
               color: 0 0 0 0;
273
            }
274
         }
275

276
         part {
277
            name: "button_left_over";
278
            type: RECT;
279
            mouse_events: 0;
280
            description {
281
               state: "default" 0.0;
282
               rel1 {
283
                  to: "button_area";
284
                  relative: 0.0 0.0;
285
               }
286
               rel2 {
287
                  to: "button_area";
288
                  relative: 0.5 0.5;
289
               }
290
               color: 255 0 0 100;
291
            }
292
            description {
293
               state: "on" 0.0;
294
               inherit: "default" 0.0;
295
               color: 255 0 0 255;
296
            }
297
         }
298

299
         part {
300
            name: "button_left_over_label";
301
            type: TEXT;
302
            mouse_events: 0;
303
            description {
304
               state: "default" 0.0;
305
               color: 0 0 0 255;
306
               rel1.to: "button_left_over";
307
               rel2.to: "button_left_over";
308
               text {
309
                  text: "Seat 1 over";
310
                  size: 10;
311
                  font: "sans";
312
                  min: 1 1;
313
               }
314
            }
315
         }
316

317
         part {
318
            name: "button_left_focus";
319
            type: RECT;
320
            mouse_events: 0;
321
            description {
322
               state: "default" 0.0;
323
               rel1 {
324
                  to: "button_area";
325
                  relative: 0.0 0.5;
326
               }
327
               rel2 {
328
                  to: "button_area";
329
                  relative: 0.5 1.0;
330
               }
331
               color: 255 0 0 100;
332
            }
333
            description {
334
               state: "on" 0.0;
335
               inherit: "default" 0.0;
336
               color: 255 0 0 255;
337
            }
338
         }
339

340
         part {
341
            name: "button_left_focus_label";
342
            type: TEXT;
343
            mouse_events: 0;
344
            description {
345
               state: "default" 0.0;
346
               color: 0 0 0 255;
347
               rel1.to: "button_left_focus";
348
               rel2.to: "button_left_focus";
349
               text {
350
                  text: "Seat 1 focus";
351
                  size: 10;
352
                  font: "sans";
353
                  min: 1 1;
354
               }
355
            }
356
         }
357

358
         part {
359
            name: "button_right_over";
360
            type: RECT;
361
            mouse_events: 0;
362
            description {
363
               state: "default" 0.0;
364
               rel1 {
365
                  to: "button_area";
366
                  relative: 0.5 0.0;
367
               }
368
               rel2 {
369
                  to: "button_area";
370
                  relative: 1.0 0.5;
371
               }
372
               color: 0 255 0 100;
373
            }
374
            description {
375
               state: "on" 0.0;
376
               inherit: "default" 0.0;
377
               color: 0 255 0 255;
378
            }
379
         }
380

381
         part {
382
            name: "button_right_over_label";
383
            type: TEXT;
384
            mouse_events: 0;
385
            description {
386
               state: "default" 0.0;
387
               color: 0 0 0 255;
388
               rel1.to: "button_right_over";
389
               rel2.to: "button_right_over";
390
               text {
391
                  text: "Seat 2 over";
392
                  size: 10;
393
                  font: "sans";
394
                  min: 1 1;
395
               }
396
            }
397
         }
398

399
         part {
400
            name: "button_right_focus";
401
            type: RECT;
402
            mouse_events: 0;
403
            description {
404
               state: "default" 0.0;
405
               rel1 {
406
                  to: "button_area";
407
                  relative: 0.5 0.5;
408
               }
409
               rel2 {
410
                  to: "button_area";
411
                  relative: 1.0 1.0;
412
               }
413
               color: 0 255 0 100;
414
            }
415
            description {
416
               state: "on" 0.0;
417
               inherit: "default" 0.0;
418
               color: 0 255 0 255;
419
            }
420
         }
421

422
         part {
423
            name: "button_right_focus_label";
424
            type: TEXT;
425
            mouse_events: 0;
426
            description {
427
               state: "default" 0.0;
428
               color: 0 0 0 255;
429
               rel1.to: "button_right_focus";
430
               rel2.to: "button_right_focus";
431
               text {
432
                  text: "Seat 2 focus";
433
                  size: 10;
434
                  font: "sans";
435
                  min: 1 1;
436
               }
437
            }
438
         }
439

440
         part {
441
            name: "unfocus_area";
442
            type: RECT;
443
            mouse_events: 1;
444
            repeat_events: 1;
445
            description {
446
               state: "default" 0.0;
447
               color: 255 255 255 0;
448
            }
449
         }
450

451
         part {
452
            name: "example/swallow";
453
            type: SWALLOW;
454
            mouse_events: 1;
455
            description {
456
               state: "default" 0.0;
457
               rel1.relative: 0.3 0.65;
458
               rel2.relative: 0.4 0.9;
459
            }
460
         }
461
      }
462

463
      programs {
464
         program {
465
            name: "focus";
466
            signal: "load";
467
            source: "";
468
            action: FOCUS_SET "seat1";
469
            target: "example/text1";
470
         }
471

472
         program {
473
            name: "focus,t1,s1";
474
            signal: "seat,seat1,mouse,clicked,1";
475
            source: "example/text1";
476
            action: FOCUS_SET "seat1";
477
            target: "example/text1";
478
         }
479

480
         program {
481
            name: "focus,color,t1,s1";
482
            signal: "seat,seat1,focus,part,in";
483
            source: "example/text1";
484
            action: STATE_SET "focused,s1" 0.0;
485
            target: "bg_text1";
486
         }
487

488
         program {
489
            name: "unfocus,color,t1,s1";
490
            signal: "seat,seat1,focus,part,out";
491
            source: "example/text1";
492
            action: STATE_SET "default" 0.0;
493
            target: "bg_text1";
494
         }
495

496
         program {
497
            name: "focus,t2,s1";
498
            signal: "seat,seat1,mouse,clicked,1";
499
            source: "example/text2";
500
            action: FOCUS_SET "seat1";
501
            target: "example/text2";
502
         }
503

504
         program {
505
            name: "focus,color,t2,s1";
506
            signal: "seat,seat1,focus,part,in";
507
            source: "example/text2";
508
            action: STATE_SET "focused,s1" 0.0;
509
            target: "bg_text2";
510
         }
511

512
         program {
513
            name: "unfocus,color,t2,s1";
514
            signal: "seat,seat1,focus,part,out";
515
            source: "example/text2";
516
            action: STATE_SET "default" 0.0;
517
            target: "bg_text2";
518
         }
519

520
         program {
521
            name: "focus,t1,s2";
522
            signal: "seat,seat2,mouse,clicked,1";
523
            source: "example/text1";
524
            action: FOCUS_SET "seat2";
525
            target: "example/text1";
526
         }
527

528
         program {
529
            name: "focus,color,t1,s2";
530
            signal: "seat,seat2,focus,part,in";
531
            source: "example/text1";
532
            action: STATE_SET "focused,s2" 0.0;
533
            target: "bg_text1";
534
         }
535

536
         program {
537
            name: "unfocus,color,t1,s2";
538
            signal: "seat,seat2,focus,part,out";
539
            source: "example/text1";
540
            action: STATE_SET "default" 0.0;
541
            target: "bg_text1";
542
         }
543

544
         program {
545
            name: "focus,t2,s2";
546
            signal: "seat,seat2,mouse,clicked,1";
547
            source: "example/text2";
548
            action: FOCUS_SET "seat2";
549
            target: "example/text2";
550
         }
551

552
         program {
553
            name: "focus,color,t2,s2";
554
            signal: "seat,seat2,focus,part,in";
555
            source: "example/text2";
556
            action: STATE_SET "focused,s2" 0.0;
557
            target: "bg_text2";
558
         }
559

560
         program {
561
            name: "unfocus,color,t2,s2";
562
            signal: "seat,seat2,focus,part,out";
563
            source: "example/text2";
564
            action: STATE_SET "default" 0.0;
565
            target: "bg_text2";
566
         }
567

568
         program {
569
            name: "button,left,in";
570
            signal: "seat,seat1,mouse,in";
571
            source: "button_bg";
572
            action: STATE_SET "on" 0.0;
573
            target: "button_left_over";
574
         }
575

576
         program {
577
            name: "button,left,out";
578
            signal: "seat,seat1,mouse,out";
579
            source: "button_bg";
580
            action: STATE_SET "default" 0.0;
581
            target: "button_left_over";
582
         }
583

584
         program {
585
            name: "button,left,focus";
586
            signal: "seat,seat1,mouse,clicked,1";
587
            source: "button_bg";
588
            action: FOCUS_SET "seat1";
589
            target: "button_bg";
590
         }
591

592
         program {
593
            name: "button,left,focused";
594
            signal: "seat,seat1,focus,part,in";
595
            source: "button_bg";
596
            action: STATE_SET "on" 0.0;
597
            target: "button_left_focus";
598
         }
599

600
         program {
601
            name: "button,left,unfocused";
602
            signal: "seat,seat1,focus,part,out";
603
            source: "button_bg";
604
            action: STATE_SET "default" 0.0;
605
            target: "button_left_focus";
606
         }
607

608
         program {
609
            name: "button,right,in";
610
            signal: "seat,seat2,mouse,in";
611
            source: "button_bg";
612
            action: STATE_SET "on" 0.0;
613
            target: "button_right_over";
614
         }
615

616
         program {
617
            name: "button,right,out";
618
            signal: "seat,seat2,mouse,out";
619
            source: "button_bg";
620
            action: STATE_SET "default" 0.0;
621
            target: "button_right_over";
622
         }
623

624
         program {
625
            name: "button,right,focus";
626
            signal: "seat,seat2,mouse,clicked,1";
627
            source: "button_bg";
628
            action: FOCUS_SET "seat2";
629
            target: "button_bg";
630
         }
631

632
         program {
633
            name: "button,right,focused";
634
            signal: "seat,seat2,focus,part,in";
635
            source: "button_bg";
636
            action: STATE_SET "on" 0.0;
637
            target: "button_right_focus";
638
         }
639

640
         program {
641
            name: "button,right,unfocused";
642
            signal: "seat,seat2,focus,part,out";
643
            source: "button_bg";
644
            action: STATE_SET "default" 0.0;
645
            target: "button_right_focus";
646
         }
647

648
         program {
649
            name: "knob1,s1";
650
            signal: "seat,seat1,drag,start";
651
            source: "example/knob1";
652
            action: STATE_SET "focused,s1" 0.0;
653
            target: "example/knob1";
654
         }
655

656
         program {
657
            name: "knob1,s2";
658
            signal: "seat,seat2,drag,start";
659
            source: "example/knob1";
660
            action: STATE_SET "focused,s2" 0.0;
661
            target: "example/knob1";
662
         }
663

664
         program {
665
            name: "knob1,seat1";
666
            signal: "seat,*,drag,stop";
667
            source: "example/knob1";
668
            action: STATE_SET "default" 0.0;
669
            target: "example/knob1";
670
         }
671

672
         program {
673
            name: "knob2,s1";
674
            signal: "seat,seat1,drag,start";
675
            source: "example/knob2";
676
            action: STATE_SET "focused,s1" 0.0;
677
            target: "example/knob2";
678
         }
679

680
         program {
681
            name: "knob2,s2";
682
            signal: "seat,seat2,drag,start";
683
            source: "example/knob2";
684
            action: STATE_SET "focused,s2" 0.0;
685
            target: "example/knob2";
686
         }
687

688
         program {
689
            name: "knob2,seat1";
690
            signal: "seat,*,drag,stop";
691
            source: "example/knob2";
692
            action: STATE_SET "default" 0.0;
693
            target: "example/knob2";
694
         }
695

696
         program {
697
            name: "rect,focus,s1";
698
            signal: "seat,seat1,mouse,clicked,1";
699
            source: "example/swallow";
700
            action: FOCUS_OBJECT "seat1";
701
            target: "example/swallow";
702
         }
703

704
         program {
705
            name: "rect,unfocus,s1";
706
            signal: "seat,seat1,mouse,clicked,1";
707
            source: "unfocus_area";
708
            action: FOCUS_OBJECT "seat1";
709
         }
710

711
         program {
712
            name: "rect,focus,s2";
713
            signal: "seat,seat2,mouse,clicked,1";
714
            source: "example/swallow";
715
            action: FOCUS_OBJECT "seat2";
716
            target: "example/swallow";
717
         }
718

719
         program {
720
            name: "rect,unfocus,s2";
721
            signal: "seat,seat2,mouse,clicked,1";
722
            source: "unfocus_area";
723
            action: FOCUS_OBJECT "seat2";
724
         }
725
      }
726
   }
727

728
   group {
729
      name: "example/selection";
730

731
      parts {
732
         part {
733
            name: "selection";
734
            type: RECT;
735
            mouse_events: 0;
736
            description {
737
               state: "default" 0.0;
738
               color: 180 180 180 255;
739
            }
740
         }
741
      }
742
   }
743

744
   group {
745
      name: "example/cursor";
746
      min: 1 0;
747

748
      parts {
749
         part {
750
            name: "cursor";
751
            type: RECT;
752
            mouse_events: 0;
753
            description {
754
               state: "default" 0.0;
755
               min: 2 12;
756
               color: 0 0 0 255;
757
            }
758
            description {
759
               state: "hidden" 0.0;
760
               inherit: "default" 0.0;
761
               color: 0 0 0 0;
762
            }
763
         }
764
      }
765

766
      programs {
767
         program {
768
            name: "cursor_hide";
769
            signal: "load";
770
            source: "";
771
            action: STATE_SET "hidden" 0.0;
772
            target: "cursor";
773
            transition: SINUSOIDAL 0.2;
774
            after: "cursor_hide_timer";
775
         }
776
         program {
777
            name: "cursor_hide_timer";
778
            in: 0.2 0.0;
779
            after: "cursor_show";
780
         }
781
         program {
782
            name: "cursor_show";
783
            action: STATE_SET "default" 0.0;
784
            target: "cursor";
785
            after: "cursor_show_timer";
786
         }
787
         program {
788
            name: "cursor_show_timer";
789
            in: 0.5 0.0;
790
            after: "cursor_hide";
791
         }
792
      }
793
   }
794
}
795

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.