summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_collection_view.eo
blob: a0e4312a2d971cb9cc9568c0322bd71027c68eff (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
struct @beta Efl.Ui.Collection_View_Item_Event
{
   item: Efl.Ui.Widget;
   model: Efl.Model;
}

class @beta Efl.Ui.Collection_View extends Efl.Ui.Layout_Base implements
                Efl.Ui.Scrollable_Interactive,
                Efl.Ui.Scrollbar,
                Efl.Ui.Layout_Orientable,
                Efl.Ui.Selectable,
                Efl.Ui.Multi_Selectable,
                Efl.Ui.Focus.Manager_Sub,
		Efl.Ui.Widget_Focus_Manager

{
   methods {
      @property factory {
         [[Define the factory used to create all the items.]]
         get {}
         set {}
         values {
            factory: Efl.Ui.Factory; [[The factory.]]
         }
      }
      @property position_manager {
        [[Position manager object that handles placement of items.]]
        values {
           position_manager : Efl.Ui.Position_Manager.Entity @owned; [[The objects ownership is passed to the item container.]]
        }
      }
   }
   implements {
      Efl.Object.constructor;
      Efl.Object.invalidate;

      Efl.Ui.Layout_Orientable.orientation { get; set; }

      Efl.Ui.Widget.theme_apply;

      Efl.Ui.Scrollable_Interactive.match_content { set; }
      Efl.Ui.Multi_Selectable.select_mode {get; set;}
      Efl.Ui.Widget_Focus_Manager.focus_manager_create;
      Efl.Ui.Focus.Manager.move;
   }
   events {
      item,realized : Efl.Ui.Collection_View_Item_Event;
      item,unrealized : Efl.Ui.Collection_View_Item_Event;
      item,focused : Efl.Ui.Collection_View_Item_Event;
      item,unfocused : Efl.Ui.Collection_View_Item_Event;
      item,highlighted : Efl.Ui.Collection_View_Item_Event;
      item,unhighlighted : Efl.Ui.Collection_View_Item_Event;
   }
   composite {
      Efl.Ui.Scrollable_Interactive;
      Efl.Ui.Scrollbar;
   }
}