summaryrefslogtreecommitdiff
path: root/src/bindings/mono/efl_mono/GenericModel.cs
blob: 214755cefbc99bb1de2c138052d3040525fc1e50 (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
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Linq;
using System.ComponentModel;

namespace Efl {

public class GenericModel<T> : Efl.Object, Efl.Model, IDisposable
{
   private Efl.Model model;
    
   public GenericModel (Efl.Model model, Efl.Object parent = null) : base(parent)
   {
       this.model = model;
       FinishInstantiation();
   }
    
   ~GenericModel()
   {
       Dispose(false);
   }

   public Eina.Iterator< System.String> Properties {
      get { return GetProperties(); }
   }
   public  uint ChildrenCount {
      get { return GetChildrenCount(); }
   }
    
   public Eina.Iterator<System.String> GetProperties()
   {
       return model.GetProperties();
   }
   public Eina.Value GetProperty(  System.String property)
   {
       return model.GetProperty(property);
   }
   public Eina.Future SetProperty(  System.String property,   Eina.Value value)
   {
       return model.SetProperty(property, value);
   }
   public uint GetChildrenCount()
   {
       return model.GetChildrenCount();
   }
   public Eina.Future GetPropertyReady(  System.String property)
   {
       return model.GetPropertyReady(property);
   }
   public Eina.Future GetChildrenSlice(  uint start,   uint count)
   {
       return model.GetChildrenSlice(start, count);
   }
   public Efl.Object AddChild()
   {
       return model.AddChild();
   }
   public void DelChild( Efl.Object child)
   {
       model.DelChild(child);
   }
   public System.Threading.Tasks.Task<Eina.Value> SetPropertyAsync(  System.String property,  Eina.Value value, System.Threading.CancellationToken token=default(System.Threading.CancellationToken))
   {
       return model.SetPropertyAsync(property, value, token);
   }
   public System.Threading.Tasks.Task<Eina.Value> GetPropertyReadyAsync(  System.String property, System.Threading.CancellationToken token=default(System.Threading.CancellationToken))
   {
       return model.GetPropertyReadyAsync(property, token);
   }
   public System.Threading.Tasks.Task<Eina.Value> GetChildrenSliceAsync(  uint start,  uint count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken))
   {
       return model.GetChildrenSliceAsync(start, count, token);
   }
   public event EventHandler<Efl.ModelPropertiesChangedEvt_Args> PropertiesChangedEvt
   {
      add {
          model.PropertiesChangedEvt += value;
      }
      remove {
          model.PropertiesChangedEvt -= value;
      }
   }
   public event EventHandler<Efl.ModelChildAddedEvt_Args> ChildAddedEvt
   {
      add {
          model.ChildAddedEvt += value;
      }
      remove {
          model.ChildAddedEvt -= value;
      }
   }
   public event EventHandler<Efl.ModelChildRemovedEvt_Args> ChildRemovedEvt
   {
      add {
          model.ChildRemovedEvt += value;
      }
      remove {
          model.ChildRemovedEvt -= value;
      }
   }
   public event EventHandler ChildrenCountChangedEvt
   {
      add {
          model.ChildrenCountChangedEvt += value;
      }
      remove {
          model.ChildrenCountChangedEvt -= value;
      }
   }
}

}