summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_list.eo
blob: 2ca88bdf74ff9368b31642460127db7ab5975969 (plain)
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
import elm_general;

struct Efl.Ui.List.Item_Event
{
   layout: Efl.Ui.Layout;
   child: Efl.Model;
   index: int;
}
class Efl.Ui.List (Efl.Ui.Layout, Efl.Ui.View, Efl.Ui.Scrollable.Interactive, Efl.Ui.Scrollbar,
                Efl.Access.Widget.Action, Efl.Access.Selection,
                Efl.Ui.Clickable, Efl.Ui.Selectable, Efl.Ui.List.Model)
{
   methods {
      @property relayout {
         values {
            object: Efl.Ui.List.Relayout;
         }
      }
      @property homogeneous {
         get {
           [[Get whether the homogeneous mode is enabled.]]
         }
         set {
           [[Enable/disable homogeneous mode.]]
         }
         values {
            homogeneous: bool; [[Assume the items within the genlist are of
                                 the same height and width. Default is $false.]]
         }
      }
      @property select_mode {
         [[Listview select mode.]]
         get {}
         set {}
         values {
            mode: Elm.Object.Select_Mode(Elm.Object.Select_Mode.max); [[The select mode.]]
         }
      }
      @property default_style {
         values {
            style: stringshare;
         }
      }
      @property layout_factory {
         [[Listview layout factory set.]]
         set {}
         values {
            factory: Efl.Ui.Factory; [[The factory.]]
         }
      }
   }
   events {
      item,realized : Efl.Ui.List.Item_Event;
      item,unrealized : Efl.Ui.List.Item_Event;
      item,focused : Efl.Ui.List.Item_Event;
      item,unfocused : Efl.Ui.List.Item_Event;
      item,highlighted : Efl.Ui.List.Item_Event;
      item,unhighlighted : Efl.Ui.List.Item_Event;
      item,selected : Efl.Ui.List.Item_Event;
      item,unselected : Efl.Ui.List.Item_Event;
   }

   implements {
      Efl.Object.constructor;
      Efl.Object.finalize;
      Efl.Object.destructor;
      Efl.Gfx.position { set; }
      Efl.Gfx.size { set; }
      // Smart obj
      Efl.Canvas.Group.group_member_add;
      Efl.Canvas.Group.group_calculate;

      Efl.Ui.List.Model.load_range { set;}
      Efl.Ui.List.Model.realize;
      Efl.Ui.List.Model.unrealize;
      Efl.Ui.List.Model.size { get; }
      Efl.Ui.List.Model.min_size { get; set; }

      // Widget
//      Elm.Widget.focus_next_manager_is;
//      Elm.Widget.focus_direction_manager_is;
//      Elm.Widget.focus_register;
//      Elm.Widget.focus_next;
//      Elm.Widget.on_focus_update;
//      Elm.Widget.activate;
//      Elm.Widget.focused_item { get; }
//      Elm.Widget.focused_object { get; }
      Efl.Ui.Widget.focus_manager_create;
      Efl.Ui.Widget.widget_event;

//      Efl.Ui.Focus.Manager.focus {set; }
      //Efl.Ui.Layout.sizing_eval;
      Efl.Ui.View.model { get; set; }

      Efl.Ui.Scrollable.Interactive.viewport_geometry { get; }
      Efl.Ui.Scrollable.Interactive.content_pos { get; set; }
      Efl.Ui.Scrollable.Interactive.content_size { get; }
//      Efl.Ui.Scrollable.Interactive.scroll;
      Efl.Layout.Signal.signal_callback_add;
      Efl.Layout.Signal.signal_callback_del;
//      Elm.Interface.Atspi_Accessible.children { get; }
//      Elm.Interface.Atspi_Widget_Action.elm_actions { get; }
//      Efl.Access.Widget.Action.elm_actions { get; }
      Efl.Access.Selection.selected_children_count { get; }
      Efl.Access.Selection.selected_child { get; }
      Efl.Access.Selection.selected_child_deselect;
      Efl.Access.Selection.child_select;
      Efl.Access.Selection.child_deselect;
      Efl.Access.Selection.is_child_selected;
      Efl.Access.Selection.all_children_select;
      Efl.Access.Selection.clear;
   }
}