summaryrefslogtreecommitdiff
path: root/src/lib/ecore/efl_composite_model.eo
blob: 4244e930bc5c2c0d49a32f134838997faaebf3a7 (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
class @beta Efl.Composite_Model extends Efl.Loop_Model implements Efl.Ui.View
{
   [[Efl model for all composite class which provide a unified API to set source of data.

   This class also provide an @Efl.Model.property "child.index" that match the value of @.index.]]
   methods {
      @property index {
         [[Position of this object in the parent model.

           It can only be set before the object is finalized but after the Model it composes is set
           (and only if that Model does not provide an index already).
           It can only be retrieved after the object has been finalized.
         ]]
         set {
         }
         get {
         }
         values {
            index: uint; [[Index of the object in the parent model. The index is unique and starts from zero.]]
         }
      }
   }
   implements {
      Efl.Object.destructor;
      Efl.Object.invalidate;
      Efl.Object.finalize;
      Efl.Ui.View.model { set; get; }
      Efl.Model.property { set; get; }
      Efl.Model.properties { get; }
      Efl.Model.children_count { get; }
      Efl.Model.children_slice_get;
      Efl.Model.child_add;
      Efl.Model.child_del;
   }
   constructors {
      .index @optional;
      Efl.Ui.View.model;
   }
}