[EflSharp] Update Circle and efl cs files (#945)
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_layout_group.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 Layout {
11
12 /// <summary>APIs representing static data from a group in an edje file.
13 /// (Since EFL 1.22)</summary>
14 [Efl.Layout.IGroupConcrete.NativeMethods]
15 [Efl.Eo.BindingEntity]
16 public interface IGroup : 
17     Efl.Eo.IWrapper, IDisposable
18 {
19     /// <summary>Gets the minimum size specified -- as an EDC property -- for a given Edje object
20 /// This function retrieves the obj object&apos;s minimum size values, as declared in its EDC group definition. For instance, for an Edje object of minimum size 100x100 pixels: collections { group { name: &quot;a_group&quot;; min: 100 100; } }
21 /// 
22 /// Note: If the <c>min</c> EDC property was not declared for this object, this call will return 0x0.
23 /// 
24 /// Note: On failure, this function also return 0x0.
25 /// 
26 /// See also <see cref="Efl.Layout.IGroup.GetGroupSizeMax"/>.
27 /// (Since EFL 1.22)</summary>
28 /// <returns>The minimum size as set in EDC.</returns>
29 Eina.Size2D GetGroupSizeMin();
30     /// <summary>Gets the maximum size specified -- as an EDC property -- for a given Edje object
31 /// This function retrieves the object&apos;s maximum size values, as declared in its EDC group definition. For instance, for an Edje object of maximum size 100x100 pixels: collections { group { name: &quot;a_group&quot;; max: 100 100; } }
32 /// 
33 /// Note: If the <c>max</c> EDC property was not declared for the object, this call will return the maximum size a given Edje object may have, for each axis.
34 /// 
35 /// Note: On failure, this function will return 0x0.
36 /// 
37 /// See also <see cref="Efl.Layout.IGroup.GetGroupSizeMin"/>.
38 /// (Since EFL 1.22)</summary>
39 /// <returns>The maximum size as set in EDC.</returns>
40 Eina.Size2D GetGroupSizeMax();
41     /// <summary>Retrives an EDC data field&apos;s value from a given Edje object&apos;s group.
42 /// This function fetches an EDC data field&apos;s value, which is declared on the objects building EDC file, under its group. EDC data blocks are most commonly used to pass arbitrary parameters from an application&apos;s theme to its code.
43 /// 
44 /// EDC data fields always hold  strings as values, hence the return type of this function. Check the complete &quot;syntax reference&quot; for EDC files.
45 /// 
46 /// This is how a data item is defined in EDC: collections { group { name: &quot;a_group&quot;; data { item: &quot;key1&quot; &quot;value1&quot;; item: &quot;key2&quot; &quot;value2&quot;; } } }
47 /// 
48 /// Warning: Do not confuse this call with edje_file_data_get(), which queries for a global EDC data field on an EDC declaration file.
49 /// (Since EFL 1.22)</summary>
50 /// <param name="key">The data field&apos;s key string</param>
51 /// <returns>The data&apos;s value string.</returns>
52 System.String GetGroupData(System.String key);
53     /// <summary>Returns <c>true</c> if the part exists in the EDC group.
54 /// (Since EFL 1.22)</summary>
55 /// <param name="part">The part name to check.</param>
56 /// <returns><c>true</c> if the part exists, <c>false</c> otherwise.</returns>
57 bool GetPartExist(System.String part);
58                     /// <summary>Gets the minimum size specified -- as an EDC property -- for a given Edje object
59     /// This function retrieves the obj object&apos;s minimum size values, as declared in its EDC group definition. For instance, for an Edje object of minimum size 100x100 pixels: collections { group { name: &quot;a_group&quot;; min: 100 100; } }
60     /// 
61     /// Note: If the <c>min</c> EDC property was not declared for this object, this call will return 0x0.
62     /// 
63     /// Note: On failure, this function also return 0x0.
64     /// 
65     /// See also <see cref="Efl.Layout.IGroup.GetGroupSizeMax"/>.
66     /// (Since EFL 1.22)</summary>
67     /// <value>The minimum size as set in EDC.</value>
68     Eina.Size2D GroupSizeMin {
69         get ;
70     }
71     /// <summary>Gets the maximum size specified -- as an EDC property -- for a given Edje object
72     /// This function retrieves the object&apos;s maximum size values, as declared in its EDC group definition. For instance, for an Edje object of maximum size 100x100 pixels: collections { group { name: &quot;a_group&quot;; max: 100 100; } }
73     /// 
74     /// Note: If the <c>max</c> EDC property was not declared for the object, this call will return the maximum size a given Edje object may have, for each axis.
75     /// 
76     /// Note: On failure, this function will return 0x0.
77     /// 
78     /// See also <see cref="Efl.Layout.IGroup.GetGroupSizeMin"/>.
79     /// (Since EFL 1.22)</summary>
80     /// <value>The maximum size as set in EDC.</value>
81     Eina.Size2D GroupSizeMax {
82         get ;
83     }
84 }
85 /// <summary>APIs representing static data from a group in an edje file.
86 /// (Since EFL 1.22)</summary>
87 sealed public class IGroupConcrete :
88     Efl.Eo.EoWrapper
89     , IGroup
90     
91 {
92     ///<summary>Pointer to the native class description.</summary>
93     public override System.IntPtr NativeClass
94     {
95         get
96         {
97             if (((object)this).GetType() == typeof(IGroupConcrete))
98             {
99                 return GetEflClassStatic();
100             }
101             else
102             {
103                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
104             }
105         }
106     }
107
108     /// <summary>Constructor to be used when objects are expected to be constructed from native code.</summary>
109     /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
110     private IGroupConcrete(ConstructingHandle ch) : base(ch)
111     {
112     }
113
114     [System.Runtime.InteropServices.DllImport(efl.Libs.Edje)] internal static extern System.IntPtr
115         efl_layout_group_interface_get();
116     /// <summary>Initializes a new instance of the <see cref="IGroup"/> class.
117     /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
118     /// <param name="wh">The native pointer to be wrapped.</param>
119     private IGroupConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
120     {
121     }
122
123     /// <summary>Gets the minimum size specified -- as an EDC property -- for a given Edje object
124     /// This function retrieves the obj object&apos;s minimum size values, as declared in its EDC group definition. For instance, for an Edje object of minimum size 100x100 pixels: collections { group { name: &quot;a_group&quot;; min: 100 100; } }
125     /// 
126     /// Note: If the <c>min</c> EDC property was not declared for this object, this call will return 0x0.
127     /// 
128     /// Note: On failure, this function also return 0x0.
129     /// 
130     /// See also <see cref="Efl.Layout.IGroup.GetGroupSizeMax"/>.
131     /// (Since EFL 1.22)</summary>
132     /// <returns>The minimum size as set in EDC.</returns>
133     public Eina.Size2D GetGroupSizeMin() {
134          var _ret_var = Efl.Layout.IGroupConcrete.NativeMethods.efl_layout_group_size_min_get_ptr.Value.Delegate(this.NativeHandle);
135         Eina.Error.RaiseIfUnhandledException();
136         return _ret_var;
137  }
138     /// <summary>Gets the maximum size specified -- as an EDC property -- for a given Edje object
139     /// This function retrieves the object&apos;s maximum size values, as declared in its EDC group definition. For instance, for an Edje object of maximum size 100x100 pixels: collections { group { name: &quot;a_group&quot;; max: 100 100; } }
140     /// 
141     /// Note: If the <c>max</c> EDC property was not declared for the object, this call will return the maximum size a given Edje object may have, for each axis.
142     /// 
143     /// Note: On failure, this function will return 0x0.
144     /// 
145     /// See also <see cref="Efl.Layout.IGroup.GetGroupSizeMin"/>.
146     /// (Since EFL 1.22)</summary>
147     /// <returns>The maximum size as set in EDC.</returns>
148     public Eina.Size2D GetGroupSizeMax() {
149          var _ret_var = Efl.Layout.IGroupConcrete.NativeMethods.efl_layout_group_size_max_get_ptr.Value.Delegate(this.NativeHandle);
150         Eina.Error.RaiseIfUnhandledException();
151         return _ret_var;
152  }
153     /// <summary>Retrives an EDC data field&apos;s value from a given Edje object&apos;s group.
154     /// This function fetches an EDC data field&apos;s value, which is declared on the objects building EDC file, under its group. EDC data blocks are most commonly used to pass arbitrary parameters from an application&apos;s theme to its code.
155     /// 
156     /// EDC data fields always hold  strings as values, hence the return type of this function. Check the complete &quot;syntax reference&quot; for EDC files.
157     /// 
158     /// This is how a data item is defined in EDC: collections { group { name: &quot;a_group&quot;; data { item: &quot;key1&quot; &quot;value1&quot;; item: &quot;key2&quot; &quot;value2&quot;; } } }
159     /// 
160     /// Warning: Do not confuse this call with edje_file_data_get(), which queries for a global EDC data field on an EDC declaration file.
161     /// (Since EFL 1.22)</summary>
162     /// <param name="key">The data field&apos;s key string</param>
163     /// <returns>The data&apos;s value string.</returns>
164     public System.String GetGroupData(System.String key) {
165                                  var _ret_var = Efl.Layout.IGroupConcrete.NativeMethods.efl_layout_group_data_get_ptr.Value.Delegate(this.NativeHandle,key);
166         Eina.Error.RaiseIfUnhandledException();
167                         return _ret_var;
168  }
169     /// <summary>Returns <c>true</c> if the part exists in the EDC group.
170     /// (Since EFL 1.22)</summary>
171     /// <param name="part">The part name to check.</param>
172     /// <returns><c>true</c> if the part exists, <c>false</c> otherwise.</returns>
173     public bool GetPartExist(System.String part) {
174                                  var _ret_var = Efl.Layout.IGroupConcrete.NativeMethods.efl_layout_group_part_exist_get_ptr.Value.Delegate(this.NativeHandle,part);
175         Eina.Error.RaiseIfUnhandledException();
176                         return _ret_var;
177  }
178     /// <summary>Gets the minimum size specified -- as an EDC property -- for a given Edje object
179     /// This function retrieves the obj object&apos;s minimum size values, as declared in its EDC group definition. For instance, for an Edje object of minimum size 100x100 pixels: collections { group { name: &quot;a_group&quot;; min: 100 100; } }
180     /// 
181     /// Note: If the <c>min</c> EDC property was not declared for this object, this call will return 0x0.
182     /// 
183     /// Note: On failure, this function also return 0x0.
184     /// 
185     /// See also <see cref="Efl.Layout.IGroup.GetGroupSizeMax"/>.
186     /// (Since EFL 1.22)</summary>
187     /// <value>The minimum size as set in EDC.</value>
188     public Eina.Size2D GroupSizeMin {
189         get { return GetGroupSizeMin(); }
190     }
191     /// <summary>Gets the maximum size specified -- as an EDC property -- for a given Edje object
192     /// This function retrieves the object&apos;s maximum size values, as declared in its EDC group definition. For instance, for an Edje object of maximum size 100x100 pixels: collections { group { name: &quot;a_group&quot;; max: 100 100; } }
193     /// 
194     /// Note: If the <c>max</c> EDC property was not declared for the object, this call will return the maximum size a given Edje object may have, for each axis.
195     /// 
196     /// Note: On failure, this function will return 0x0.
197     /// 
198     /// See also <see cref="Efl.Layout.IGroup.GetGroupSizeMin"/>.
199     /// (Since EFL 1.22)</summary>
200     /// <value>The maximum size as set in EDC.</value>
201     public Eina.Size2D GroupSizeMax {
202         get { return GetGroupSizeMax(); }
203     }
204     private static IntPtr GetEflClassStatic()
205     {
206         return Efl.Layout.IGroupConcrete.efl_layout_group_interface_get();
207     }
208     /// <summary>Wrapper for native methods and virtual method delegates.
209     /// For internal use by generated code only.</summary>
210     public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods
211     {
212         private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule(    efl.Libs.Edje);
213         /// <summary>Gets the list of Eo operations to override.</summary>
214         /// <returns>The list of Eo operations to be overload.</returns>
215         public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
216         {
217             var descs = new System.Collections.Generic.List<Efl_Op_Description>();
218             var methods = Efl.Eo.Globals.GetUserMethods(type);
219
220             if (efl_layout_group_size_min_get_static_delegate == null)
221             {
222                 efl_layout_group_size_min_get_static_delegate = new efl_layout_group_size_min_get_delegate(group_size_min_get);
223             }
224
225             if (methods.FirstOrDefault(m => m.Name == "GetGroupSizeMin") != null)
226             {
227                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_group_size_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_size_min_get_static_delegate) });
228             }
229
230             if (efl_layout_group_size_max_get_static_delegate == null)
231             {
232                 efl_layout_group_size_max_get_static_delegate = new efl_layout_group_size_max_get_delegate(group_size_max_get);
233             }
234
235             if (methods.FirstOrDefault(m => m.Name == "GetGroupSizeMax") != null)
236             {
237                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_group_size_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_size_max_get_static_delegate) });
238             }
239
240             if (efl_layout_group_data_get_static_delegate == null)
241             {
242                 efl_layout_group_data_get_static_delegate = new efl_layout_group_data_get_delegate(group_data_get);
243             }
244
245             if (methods.FirstOrDefault(m => m.Name == "GetGroupData") != null)
246             {
247                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_group_data_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_data_get_static_delegate) });
248             }
249
250             if (efl_layout_group_part_exist_get_static_delegate == null)
251             {
252                 efl_layout_group_part_exist_get_static_delegate = new efl_layout_group_part_exist_get_delegate(part_exist_get);
253             }
254
255             if (methods.FirstOrDefault(m => m.Name == "GetPartExist") != null)
256             {
257                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_group_part_exist_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_part_exist_get_static_delegate) });
258             }
259
260             return descs;
261         }
262         /// <summary>Returns the Eo class for the native methods of this class.</summary>
263         /// <returns>The native class pointer.</returns>
264         public override IntPtr GetEflClass()
265         {
266             return Efl.Layout.IGroupConcrete.efl_layout_group_interface_get();
267         }
268
269         #pragma warning disable CA1707, CS1591, SA1300, SA1600
270
271         
272         private delegate Eina.Size2D.NativeStruct efl_layout_group_size_min_get_delegate(System.IntPtr obj, System.IntPtr pd);
273
274         
275         public delegate Eina.Size2D.NativeStruct efl_layout_group_size_min_get_api_delegate(System.IntPtr obj);
276
277         public static Efl.Eo.FunctionWrapper<efl_layout_group_size_min_get_api_delegate> efl_layout_group_size_min_get_ptr = new Efl.Eo.FunctionWrapper<efl_layout_group_size_min_get_api_delegate>(Module, "efl_layout_group_size_min_get");
278
279         private static Eina.Size2D.NativeStruct group_size_min_get(System.IntPtr obj, System.IntPtr pd)
280         {
281             Eina.Log.Debug("function efl_layout_group_size_min_get was called");
282             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
283             if (ws != null)
284             {
285             Eina.Size2D _ret_var = default(Eina.Size2D);
286                 try
287                 {
288                     _ret_var = ((IGroup)ws.Target).GetGroupSizeMin();
289                 }
290                 catch (Exception e)
291                 {
292                     Eina.Log.Warning($"Callback error: {e.ToString()}");
293                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
294                 }
295
296         return _ret_var;
297
298             }
299             else
300             {
301                 return efl_layout_group_size_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
302             }
303         }
304
305         private static efl_layout_group_size_min_get_delegate efl_layout_group_size_min_get_static_delegate;
306
307         
308         private delegate Eina.Size2D.NativeStruct efl_layout_group_size_max_get_delegate(System.IntPtr obj, System.IntPtr pd);
309
310         
311         public delegate Eina.Size2D.NativeStruct efl_layout_group_size_max_get_api_delegate(System.IntPtr obj);
312
313         public static Efl.Eo.FunctionWrapper<efl_layout_group_size_max_get_api_delegate> efl_layout_group_size_max_get_ptr = new Efl.Eo.FunctionWrapper<efl_layout_group_size_max_get_api_delegate>(Module, "efl_layout_group_size_max_get");
314
315         private static Eina.Size2D.NativeStruct group_size_max_get(System.IntPtr obj, System.IntPtr pd)
316         {
317             Eina.Log.Debug("function efl_layout_group_size_max_get was called");
318             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
319             if (ws != null)
320             {
321             Eina.Size2D _ret_var = default(Eina.Size2D);
322                 try
323                 {
324                     _ret_var = ((IGroup)ws.Target).GetGroupSizeMax();
325                 }
326                 catch (Exception e)
327                 {
328                     Eina.Log.Warning($"Callback error: {e.ToString()}");
329                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
330                 }
331
332         return _ret_var;
333
334             }
335             else
336             {
337                 return efl_layout_group_size_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
338             }
339         }
340
341         private static efl_layout_group_size_max_get_delegate efl_layout_group_size_max_get_static_delegate;
342
343         [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
344         private delegate System.String efl_layout_group_data_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key);
345
346         [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
347         public delegate System.String efl_layout_group_data_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key);
348
349         public static Efl.Eo.FunctionWrapper<efl_layout_group_data_get_api_delegate> efl_layout_group_data_get_ptr = new Efl.Eo.FunctionWrapper<efl_layout_group_data_get_api_delegate>(Module, "efl_layout_group_data_get");
350
351         private static System.String group_data_get(System.IntPtr obj, System.IntPtr pd, System.String key)
352         {
353             Eina.Log.Debug("function efl_layout_group_data_get was called");
354             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
355             if (ws != null)
356             {
357                                     System.String _ret_var = default(System.String);
358                 try
359                 {
360                     _ret_var = ((IGroup)ws.Target).GetGroupData(key);
361                 }
362                 catch (Exception e)
363                 {
364                     Eina.Log.Warning($"Callback error: {e.ToString()}");
365                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
366                 }
367
368                         return _ret_var;
369
370             }
371             else
372             {
373                 return efl_layout_group_data_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key);
374             }
375         }
376
377         private static efl_layout_group_data_get_delegate efl_layout_group_data_get_static_delegate;
378
379         [return: MarshalAs(UnmanagedType.U1)]
380         private delegate bool efl_layout_group_part_exist_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part);
381
382         [return: MarshalAs(UnmanagedType.U1)]
383         public delegate bool efl_layout_group_part_exist_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part);
384
385         public static Efl.Eo.FunctionWrapper<efl_layout_group_part_exist_get_api_delegate> efl_layout_group_part_exist_get_ptr = new Efl.Eo.FunctionWrapper<efl_layout_group_part_exist_get_api_delegate>(Module, "efl_layout_group_part_exist_get");
386
387         private static bool part_exist_get(System.IntPtr obj, System.IntPtr pd, System.String part)
388         {
389             Eina.Log.Debug("function efl_layout_group_part_exist_get was called");
390             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
391             if (ws != null)
392             {
393                                     bool _ret_var = default(bool);
394                 try
395                 {
396                     _ret_var = ((IGroup)ws.Target).GetPartExist(part);
397                 }
398                 catch (Exception e)
399                 {
400                     Eina.Log.Warning($"Callback error: {e.ToString()}");
401                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
402                 }
403
404                         return _ret_var;
405
406             }
407             else
408             {
409                 return efl_layout_group_part_exist_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part);
410             }
411         }
412
413         private static efl_layout_group_part_exist_get_delegate efl_layout_group_part_exist_get_static_delegate;
414
415         #pragma warning restore CA1707, CS1591, SA1300, SA1600
416
417 }
418 }
419 }
420
421 }
422