3e133bf0bee35c862a5123dac016a4fa1d9658ca
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl_generic_model.eo.cs
1 #pragma warning disable CS1591
2 using System;
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
5 using System.Linq;
6 using System.ComponentModel;
7 namespace Efl { 
8 /// <summary>Generic model that allows any property to be manually set. Also children of the same type can be added and deleted.
9 /// Intended to be used in scenarios where the user needs a manually defined data model, like in tests.
10 /// 
11 /// It does not model anything in particular and does not affect anything else in the system.</summary>
12 [GenericModelNativeInherit]
13 public class GenericModel : Efl.LoopModel, Efl.Eo.IWrapper
14 {
15    public new static System.IntPtr klass = System.IntPtr.Zero;
16    public new static Efl.GenericModelNativeInherit nativeInherit = new Efl.GenericModelNativeInherit();
17    ///<summary>Pointer to the native class description.</summary>
18    public override System.IntPtr NativeClass {
19       get {
20          if (((object)this).GetType() == typeof (GenericModel))
21             return Efl.GenericModelNativeInherit.GetEflClassStatic();
22          else
23             return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
24       }
25    }
26    [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr
27       efl_generic_model_class_get();
28    ///<summary>Creates a new instance.</summary>
29    ///<param name="parent">Parent instance.</param>
30    public GenericModel(Efl.Object parent= null
31          ) :
32       base(efl_generic_model_class_get(), typeof(GenericModel), parent)
33    {
34       FinishInstantiation();
35    }
36    ///<summary>Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
37    public GenericModel(System.IntPtr raw) : base(raw)
38    {
39             register_event_proxies();
40    }
41    ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
42    protected GenericModel(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {}
43    ///<summary>Casts obj into an instance of this type.</summary>
44    public new static GenericModel static_cast(Efl.Object obj)
45    {
46       if (obj == null)
47          throw new System.ArgumentNullException("obj");
48       return new GenericModel(obj.NativeHandle);
49    }
50    ///<summary>Verifies if the given object is equal to this one.</summary>
51    public override bool Equals(object obj)
52    {
53       var other = obj as Efl.Object;
54       if (other == null)
55          return false;
56       return this.NativeHandle == other.NativeHandle;
57    }
58    ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
59    public override int GetHashCode()
60    {
61       return this.NativeHandle.ToInt32();
62    }
63    ///<summary>Turns the native pointer into a string representation.</summary>
64    public override String ToString()
65    {
66       return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
67    }
68    protected override void register_event_proxies()
69    {
70       base.register_event_proxies();
71    }
72    private static new  IntPtr GetEflClassStatic()
73    {
74       return Efl.GenericModel.efl_generic_model_class_get();
75    }
76 }
77 public class GenericModelNativeInherit : Efl.LoopModelNativeInherit{
78    public new  static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore);
79    public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
80    {
81       var descs = new System.Collections.Generic.List<Efl_Op_Description>();
82       descs.AddRange(base.GetEoOps(type));
83       return descs;
84    }
85    public override IntPtr GetEflClass()
86    {
87       return Efl.GenericModel.efl_generic_model_class_get();
88    }
89    public static new  IntPtr GetEflClassStatic()
90    {
91       return Efl.GenericModel.efl_generic_model_class_get();
92    }
93 }
94