summaryrefslogtreecommitdiff
path: root/src/lib/elm_widget.eo
blob: 0d4bb95d8eacfa079dcad5be0e25e1010b8ffd5c (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
abstract Elm_Widget (Evas_Object_Smart, Elm_Interface_Atspi_Widget)
{
   eo_prefix: elm_obj_widget;
   data: Elm_Widget_Smart_Data;
   properties {
      focus {
         set {
            /*@ No description supplied by the EAPI. */
         }
         get {
            /*@ No description supplied by the EAPI. */
         }
         values {
            Eina_Bool focus;
         }
      }
      drag_lock_y {
         set {
            /*@ No description supplied by the EAPI. */
         }
         get {
            /*@ No description supplied by the EAPI. */
         }
         values {
            Eina_Bool lock;
         }
      }
      focus_highlight_style {
         set {
            /*@ This function set the widget focus highlight style. */
            return Eina_Bool;
         }
         get {
            /*@ This function returns the widget focus highlight style. */
         }
         values {
            const(char)* style;
         }
      }
      tree_unfocusable {
         set {
            /*@ No description supplied by the EAPI. */
         }
         get {
            /*@ No description supplied by the EAPI. */
         }
         values {
            Eina_Bool tree_unfocusable;
         }
      }
      mirrored {
         set {
            /*@ Sets the widget's mirrored mode. */
         }
         get {
            /*@ Returns the widget's mirrored mode. */
         }
         values {
            Eina_Bool mirrored;
         }
      }
      theme {
         set {
            /*@ No description supplied by the EAPI. */
         }
         get {
            /*@ No description supplied by the EAPI. */
         }
         values {
            Elm_Theme *th;
         }
      }
      disabled {
         set {
            /*@ No description supplied by the EAPI. */
         }
         get {
            /*@ No description supplied by the EAPI. */
         }
         values {
            Eina_Bool disabled;
         }
      }
      highlight_ignore {
         set {
            /*@ No description supplied by the EAPI. */
         }
         get {
            /*@ No description supplied by the EAPI. */
         }
         values {
            Eina_Bool ignore;
         }
      }
      mirrored_automatic {
         set {
            /*@ Sets the widget's mirrored mode setting. */
         }
         get {
            /*@ Returns the widget's mirrored mode setting. */
         }
         values {
            Eina_Bool automatic;
         }
      }
      orientation_mode_disabled {
         set {
            /*@ No description supplied by the EAPI. */
         }
         get {
            /*@ No description supplied by the EAPI. */
         }
         values {
            Eina_Bool disabled;
         }
      }
      style {
         set {
            /*@ No description supplied by the EAPI. */
            return Eina_Bool;
         }
         get {
            /*@ No description supplied by the EAPI. */
         }
         values {
            const(char)* style;
         }
      }
      scale {
         set {
            /*@ No description supplied by the EAPI. */
         }
         get {
            /*@ No description supplied by the EAPI. */
         }
         values {
            double scale;
         }
      }
      focus_custom_chain {
         set {
            /*@ No description supplied by the EAPI. */
         }
         get {
            /*@ No description supplied by the EAPI. */
            objs: const;
         }
         values {
            Eina_List *objs;
         }
      }
      can_focus {
         set {
            /*@ No description supplied by the EAPI. */
         }
         get {
            /*@ No description supplied by the EAPI. */
         }
         values {
            Eina_Bool can_focus;
         }
      }
      highlight_in_theme {
         set {
            /*@ No description supplied by the EAPI. */
         }
         get {
            /*@ No description supplied by the EAPI. */
         }
         values {
            Eina_Bool highlight;
         }
      }
      parent {
         set {
            /*@ No description supplied by the EAPI. */
         }
         get {
            /*@ No description supplied by the EAPI. */
         }
         values {
            Evas_Object *parent;
         }
      }
      access_info {
         set {
            /*@ No description supplied by the EAPI. */
         }
         get {
            /*@ No description supplied by the EAPI. */
         }
         values {
            const(char)* txt;
         }
      }
      drag_lock_x {
         set {
            /*@ No description supplied by the EAPI. */
         }
         get {
            /*@ No description supplied by the EAPI. */
         }
         values {
            Eina_Bool lock;
         }
      }
      access_highlight_in_theme {
         set {
            /*@ No description supplied by the EAPI. */
         }
         get {
            /*@ No description supplied by the EAPI. */
         }
         values {
            Eina_Bool highlight; /*@ highlight */
         }
      }
      parent_highlight {
         set {
            /*@ No description supplied by the EAPI. */
         }
         values {
            Eina_Bool highlighted;
         }
      }
      theme_object {
         set {
            /*@ No description supplied by the EAPI. */
            return Eina_Bool;
         }
         values {
            Evas_Object *edj;
            const(char)* wname;
            const(char)* welement;
            const(char)* wstyle;
         }
      }
      hover_object {
         set {
            /*@ No description supplied by the EAPI. */
         }
         values {
            Evas_Object *sobj;
         }
      }
      display_mode {
         set {
            /*@ No description supplied by the EAPI. */
         }
         values {
            Evas_Display_Mode dispmode;
         }
      }
      on_show_region_hook {
         set {
            /*@ No description supplied by the EAPI. */
         }
         values {
            region_hook_func_type func;
            void *data;
         }
      }
      domain_part_text_translatable {
         set {
            /*@ No description supplied by the EAPI. */
         }
         values {
            const(char)* part;
            const(char)* domain;
            Eina_Bool translatable;
         }
      }
      orientation {
         set {
            /*@ No description supplied by the EAPI. */
         }
         values {
            int rotation;
         }
      }
      resize_object {
         set {
            /*@ No description supplied by the EAPI. */
         }
         values {
            Evas_Object *sobj;
            Eina_Bool sub_obj;
         }
      }
      domain_translatable_part_text {
         set {
            /*@ No description supplied by the EAPI. */
         }
         values {
            const(char)* part;
            const(char)* domain;
            const(char)* label;
         }
      }
      scrollable_children {
         get {
            /*@
            Function to operate on a given widget's scrollabe children when necessary.
            @warning free the returned list with eina_list_free(). */
            return Eina_List *;
         }
      }
      scroll_hold {
         get {
            /*@ No description supplied by the EAPI. */
            return int;
         }
      }
      drag_child_locked_y {
         get {
            /*@ No description supplied by the EAPI. */
            return int;
         }
      }
      item_loop_enabled {
         set {
            /*@ Set enable or disable item loop feature. */
         }
         get {
            /*@ Get the value whether item loop feature is enabled or not. */
         }
         values {
            Eina_Bool enable;
         }
      }
      child_can_focus {
         get {
            /*@ No description supplied by the EAPI. */
            return Eina_Bool;
         }
      }
      scroll_freeze {
         get {
            /*@ No description supplied by the EAPI. */
            return int;
         }
      }
      focus_region {
         get {
            /*@ No description supplied by the EAPI. */
            return Eina_Bool;
         }
         values {
            Evas_Coord x;
            Evas_Coord y;
            Evas_Coord w;
            Evas_Coord h;
         }
      }
      top {
         get {
            /*@ No description supplied by the EAPI. */
            return Evas_Object *;
         }
      }
      focus_order {
         get {
            /*@ No description supplied by the EAPI. */
            return uint;
         }
      }
      drag_child_locked_x {
         get {
            /*@ No description supplied by the EAPI. */
            return int;
         }
      }
      can_focus_child_list {
         get {
            /*@ No description supplied by the EAPI. */
            return Eina_List *;
         }
      }
      focused_item {
         get {
            /*@ Get the focused widget item. */
            return Elm_Object_Item *;
         }
      }
      parents_bounce {
         get {
            /*@ No description supplied by the EAPI. */
         }
         values {
            Eina_Bool horiz;
            Eina_Bool vert;
         }
      }
      parent_widget {
         get {
            /*@ No description supplied by the EAPI. */
            return Evas_Object *;
            legacy null;
         }
      }
      highlight {
         get {
            /*@ No description supplied by the EAPI. */
            return Eina_Bool;
         }
      }
      focused_object {
         get {
            /*@ No description supplied by the EAPI. */
            return Evas_Object *;
         }
      }
      parent2 {
         set {
            /*@ No description supplied by the EAPI. */
         }
         get {
            /*@ No description supplied by the EAPI. */
         }
         values {
            Evas_Object *parent;
         }
      }
      part_text {
         set {
            /*@ No description supplied by the EAPI. */
         }
         get {
            /*@ No description supplied by the EAPI. */
         }
         keys {
            const(char)* part;
         }
         values {
            const(char)* label;
         }
      }
   }
   methods {
      newest_focus_order_get {
         /*@ No description supplied by the EAPI. */
         const;
         return Evas_Object *;
         params {
            @out uint newest_focus_order;
            @in Eina_Bool can_focus_only;
         }
      }
      scroll_hold_push {
         /*@ No description supplied by the EAPI. */
      }
      cursor_add {
         /*@ No description supplied by the EAPI. */
         params {
            @in Elm_Cursor *cur;
         }
      }
      focus_next_object_set {
         /*@ No description supplied by the EAPI. */
         params {
            @in Evas_Object *next;
            @in Elm_Focus_Direction dir;
         }
      }
      focus_next_object_get {
         /*@ No description supplied by the EAPI. */
         const;
         return Evas_Object *;
         params {
            @in Elm_Focus_Direction dir;
         }
      }
      focus_tree_unfocusable_handle {
         /*@ No description supplied by the EAPI. */
      }
      focus_custom_chain_prepend {
         /*@ No description supplied by the EAPI. */
         params {
            @in Evas_Object *child;
            @in Evas_Object *relative_child;
         }
      }
      part_text_translate {
         /*@ No description supplied by the EAPI. */
         return const(char)*;
         params {
            @in const(char)* part;
            @in const(char)* text;
         }
      }
      focus_highlight_geometry_get {
         /*@ Get the focus highlight geometry of widget. */
         const;
         params {
            @in Evas_Coord *x;
            @in Evas_Coord *y;
            @in Evas_Coord *w;
            @in Evas_Coord *h;
         }
      }
      activate {
         /*@ 'Virtual' function to activate widget. */
         params {
            @in Elm_Activate act;
         }
         return Eina_Bool;
         legacy null; /* the legacy API has not the same number of parameter to we don't generate it. */
      }
      sub_object_add {
         /*@ 'Virtual' function handling sub objects being added. */
         return Eina_Bool;
         params {
            @in Evas_Object *sobj;
         }
      }
      focus_direction_manager_is {
         /*@ 'Virtual' function which checks if handling of passing focus to sub-objects in given direction is supported by widget. */
         return Eina_Bool;
         legacy null;
      }
      event {
         /*@ 'Virtual' function handling input events on the widget. */
         params {
            @in Evas_Object *source;
            @in Evas_Callback_Type type;
            @in void *event_info;
         }
         return Eina_Bool;
      }
      event_callback_add {
         /*@ No description supplied by the EAPI. */
         params {
            @in Elm_Event_Cb func;
            @in const(void)* data;
         }
      }
      access {
         /*@ 'Virtual' function on the widget being set access. */
         params {
            @in Eina_Bool acs;
         }
         legacy null;
      }
      cursor_del {
         /*@ No description supplied by the EAPI. */
         params {
            @in Elm_Cursor *cur;
         }
      }
      event_callback_del {
         /*@ No description supplied by the EAPI. */
         return void *;
         params {
            @in Elm_Event_Cb func;
            @in const(void)* data;
         }
      }
      on_focus {
         /*@ 'Virtual' function handling focus in/out events on the widget.
         return EINA_TRUE if this widget can handle focus, EINA_FALSE otherwise */
         return Eina_Bool;
      }
      on_focus_region {
         /*@ 'Virtual' function returning an inner area of a widget that should be brought into the visible area of a broader viewport, may this context arise. */
         params {
            @out Evas_Coord x;
            @out Evas_Coord y;
            @out Evas_Coord w;
            @out Evas_Coord h;
         }
         return Eina_Bool;
      }
      focus_cycle {
         /*@ No description supplied by the EAPI. */
         params {
            @in Elm_Focus_Direction dir;
         }
      }
      focus_direction {
         /*@ 'Virtual' function handling passing focus to sub-objects given a direction, in degrees. */
         params {
            @in const(Evas_Object)* base;
            @in double degree;
            @out Evas_Object *direction;
            @out double weight;
         }
         return Eina_Bool;
      }
      event_propagate {
         /*@ No description supplied by the EAPI. */
         return Eina_Bool;
         params {
            @in Evas_Callback_Type type;
            @in void *event_info;
            @in Evas_Event_Flags *event_flags;
         }
      }
      signal_callback_add {
         /*@ No description supplied by the EAPI. */
         params {
            @in const(char)* emission;
            @in const(char)* source;
            @in Edje_Signal_Cb func;
            @in void *data;
         }
      }
      focus_next_manager_is {
         /*@ 'Virtual' function which checks if handling of passing focus to sub-objects is supported by widget. */
         return Eina_Bool;
      }
      name_find {
         /*@ No description supplied by the EAPI. */
         const;
         return Evas_Object *;
         params {
            @in const(char)* name;
            @in int recurse;
         }
      }
      focus_list_direction_get {
         /*@ No description supplied by the EAPI. */
         const;
         return Eina_Bool;
         params {
            @in const(Evas_Object)* base;
            @in const(Eina_List)* items;
            @in list_data_get_func_type list_data_get;
            @in double degree;
            @out Evas_Object *direction;
            @out double weight;
         }
      }
      focused_object_clear {
         /*@ No description supplied by the EAPI. */
      }
      focus_direction_go {
         /*@ No description supplied by the EAPI. */
         return Eina_Bool;
         params {
            @in double degree;
         }
      }
      show_region_set {
         /*@ No description supplied by the EAPI. */
         params {
            @in Evas_Coord x;
            @in Evas_Coord y;
            @in Evas_Coord w;
            @in Evas_Coord h;
            @in Eina_Bool forceshow;
         }
      }
      show_region_get {
         /*@ No description supplied by the EAPI. */
         const;
         params {
            @out Evas_Coord x;
            @out Evas_Coord y;
            @out Evas_Coord w;
            @out Evas_Coord h;
         }
      }
      scroll_freeze_pop {
         /*@ No description supplied by the EAPI. */
      }
      tooltip_del {
         /*@ No description supplied by the EAPI. */
         params {
            @in Elm_Tooltip *tt;
         }
      }
      focus_next_get {
         /*@ No description supplied by the EAPI. */
         const;
         return Eina_Bool;
         params {
            @in Elm_Focus_Direction dir;
            @out Evas_Object *next;
         }
      }
      translatable_part_text_get {
         /*@ No description supplied by the EAPI. */
         const;
         return const(char)*;
         params {
            @in const(char)* part;
         }
      }
      focus_restore {
         /*@
         @internal

         Restore the focus state of the sub-tree.

         This API will restore the focus state of the sub-tree to the latest
         state. If a sub-tree is unfocused and wants to get back to the latest
         focus state, this API will be helpful.

         @ingroup Widget */

      }
      scroll_hold_pop {
         /*@ No description supplied by the EAPI. */
      }
      translate {
         /*@ 'Virtual' function handling language changes on Elementary. */
         return Eina_Bool;
         legacy null;
      }
      scroll_freeze_push {
         /*@ No description supplied by the EAPI. */
      }
      focus_custom_chain_unset {
         /*@ No description supplied by the EAPI. */
      }
      focus_steal {
         /*@ No description supplied by the EAPI. */
      }
      focus_hide_handle {
         /*@ No description supplied by the EAPI. */
      }
      focus_next {
         /*@ 'Virtual' function handling passing focus to sub-objects. */
         params {
            @in Elm_Focus_Direction dir;
            @out Evas_Object *next;
         }
         return Eina_Bool;
      }
      focus_list_next_get {
         /*@ No description supplied by the EAPI. */
         const;
         return Eina_Bool;
         params {
            @in const(Eina_List)* items;
            @in list_data_get_func_type list_data_get;
            @in Elm_Focus_Direction dir;
            @out Evas_Object *next;
         }
      }
      focus_mouse_up_handle {
         /*@ No description supplied by the EAPI. */
         legacy null;
      }
      theme_apply {
         /*@ 'Virtual' function on the widget being re-themed. */
         return Eina_Bool;
      }
      focus_direction_get {
         /*@ No description supplied by the EAPI. */
         const;
         return Eina_Bool;
         params {
            @in const(Evas_Object)* base;
            @in double degree;
            @out Evas_Object *direction;
            @out double weight;
         }
      }
      signal_callback_del {
         /*@ No description supplied by the EAPI. */
         return void *;
         params {
            @in const(char)* emission;
            @in const(char)* source;
            @in Edje_Signal_Cb func;
         }
      }
      signal_emit {
         /*@ No description supplied by the EAPI. */
         params {
            @in const(char)* emission;
            @in const(char)* source;
         }
      }
      disable {
         /*@ 'Virtual' function on the widget being disabled. */
         return Eina_Bool;
      }
      sub_object_del {
         /*@ 'Virtual' function handling sub objects being removed. */
         return Eina_Bool;
         params {
            @in Evas_Object *sobj;
         }
      }
      tooltip_add {
         /*@ No description supplied by the EAPI. */
         params {
            @in Elm_Tooltip *tt;
         }
      }
      focus_region_show {
         /*@ No description supplied by the EAPI. */
         const;
      }
      focus_disabled_handle {
         /*@ No description supplied by the EAPI. */
      }
      focus_custom_chain_append {
         /*@ No description supplied by the EAPI. */
         params {
            @in Evas_Object *child;
            @in Evas_Object *relative_child;
         }
      }
   }
   implements {
      class.constructor;
      Eo_Base.constructor;
      Eo_Base.dbg_info_get;
      Evas_Object_Smart.hide;
      Evas_Object_Smart.calculate;
      Evas_Object_Smart.clip_unset;
      Evas_Object_Smart.show;
      Evas_Object_Smart.color.set;
      Evas_Object_Smart.move;
      Evas_Object_Smart.member_del;
      Evas_Object_Smart.add;
      Evas_Object_Smart.del;
      Evas_Object_Smart.clip.set;
      Evas_Object_Smart.member_add;
      Evas_Object_Smart.resize;
      virtual.focus_direction;
      virtual.focus_next;
      virtual.parent_widget.get;
   }
}