[EflSharp] Update Circle and efl cs files (#896)
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_cached_item.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.Threading;
7 using System.ComponentModel;
8 namespace Efl {
9
10 namespace Cached {
11
12 /// <summary>Efl Cached Item interface</summary>
13 [Efl.Cached.IItemConcrete.NativeMethods]
14 public interface IItem : 
15     Efl.Eo.IWrapper, IDisposable
16 {
17     /// <summary>Get the memory size associated with an object.</summary>
18 /// <returns>Bytes of memory consumed by this object.</returns>
19 uint GetMemorySize();
20         /// <summary>Get the memory size associated with an object.</summary>
21     /// <value>Bytes of memory consumed by this object.</value>
22     uint MemorySize {
23         get ;
24     }
25 }
26 /// <summary>Efl Cached Item interface</summary>
27 sealed public class IItemConcrete :
28     Efl.Eo.EoWrapper
29     , IItem
30     
31 {
32     ///<summary>Pointer to the native class description.</summary>
33     public override System.IntPtr NativeClass
34     {
35         get
36         {
37             if (((object)this).GetType() == typeof(IItemConcrete))
38             {
39                 return GetEflClassStatic();
40             }
41             else
42             {
43                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
44             }
45         }
46     }
47
48     [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr
49         efl_cached_item_interface_get();
50     /// <summary>Initializes a new instance of the <see cref="IItem"/> class.
51     /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
52     private IItemConcrete(System.IntPtr raw) : base(raw)
53     {
54     }
55
56     /// <summary>Get the memory size associated with an object.</summary>
57     /// <returns>Bytes of memory consumed by this object.</returns>
58     public uint GetMemorySize() {
59          var _ret_var = Efl.Cached.IItemConcrete.NativeMethods.efl_cached_item_memory_size_get_ptr.Value.Delegate(this.NativeHandle);
60         Eina.Error.RaiseIfUnhandledException();
61         return _ret_var;
62  }
63     /// <summary>Get the memory size associated with an object.</summary>
64     /// <value>Bytes of memory consumed by this object.</value>
65     public uint MemorySize {
66         get { return GetMemorySize(); }
67     }
68     private static IntPtr GetEflClassStatic()
69     {
70         return Efl.Cached.IItemConcrete.efl_cached_item_interface_get();
71     }
72     /// <summary>Wrapper for native methods and virtual method delegates.
73     /// For internal use by generated code only.</summary>
74     public class NativeMethods  : Efl.Eo.NativeClass
75     {
76         private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule(    efl.Libs.Efl);
77         /// <summary>Gets the list of Eo operations to override.</summary>
78         /// <returns>The list of Eo operations to be overload.</returns>
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             var methods = Efl.Eo.Globals.GetUserMethods(type);
83
84             if (efl_cached_item_memory_size_get_static_delegate == null)
85             {
86                 efl_cached_item_memory_size_get_static_delegate = new efl_cached_item_memory_size_get_delegate(memory_size_get);
87             }
88
89             if (methods.FirstOrDefault(m => m.Name == "GetMemorySize") != null)
90             {
91                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_cached_item_memory_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_cached_item_memory_size_get_static_delegate) });
92             }
93
94             return descs;
95         }
96         /// <summary>Returns the Eo class for the native methods of this class.</summary>
97         /// <returns>The native class pointer.</returns>
98         public override IntPtr GetEflClass()
99         {
100             return Efl.Cached.IItemConcrete.efl_cached_item_interface_get();
101         }
102
103         #pragma warning disable CA1707, CS1591, SA1300, SA1600
104
105         
106         private delegate uint efl_cached_item_memory_size_get_delegate(System.IntPtr obj, System.IntPtr pd);
107
108         
109         public delegate uint efl_cached_item_memory_size_get_api_delegate(System.IntPtr obj);
110
111         public static Efl.Eo.FunctionWrapper<efl_cached_item_memory_size_get_api_delegate> efl_cached_item_memory_size_get_ptr = new Efl.Eo.FunctionWrapper<efl_cached_item_memory_size_get_api_delegate>(Module, "efl_cached_item_memory_size_get");
112
113         private static uint memory_size_get(System.IntPtr obj, System.IntPtr pd)
114         {
115             Eina.Log.Debug("function efl_cached_item_memory_size_get was called");
116             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
117             if (ws != null)
118             {
119             uint _ret_var = default(uint);
120                 try
121                 {
122                     _ret_var = ((IItem)ws.Target).GetMemorySize();
123                 }
124                 catch (Exception e)
125                 {
126                     Eina.Log.Warning($"Callback error: {e.ToString()}");
127                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
128                 }
129
130         return _ret_var;
131
132             }
133             else
134             {
135                 return efl_cached_item_memory_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
136             }
137         }
138
139         private static efl_cached_item_memory_size_get_delegate efl_cached_item_memory_size_get_static_delegate;
140
141         #pragma warning restore CA1707, CS1591, SA1300, SA1600
142
143 }
144 }
145 }
146
147 }
148