9d1a11493a79d687935e52a51fc159a8846436db
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_ui_check.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 Ui {
11
12 ///<summary>Event argument wrapper for event <see cref="Efl.Ui.Check.SelectedChangedEvt"/>.</summary>
13 [Efl.Eo.BindingEntity]
14 public class CheckSelectedChangedEvt_Args : EventArgs {
15     ///<summary>Actual event payload.</summary>
16     public bool arg { get; set; }
17 }
18 /// <summary>Check widget
19 /// The check widget allows for toggling a value between true and false. Check objects are a lot like radio objects in layout and functionality, except they do not work as a group, but independently, and only toggle the value of a boolean between false and true.</summary>
20 [Efl.Ui.Check.NativeMethods]
21 [Efl.Eo.BindingEntity]
22 public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText
23 {
24     ///<summary>Pointer to the native class description.</summary>
25     public override System.IntPtr NativeClass
26     {
27         get
28         {
29             if (((object)this).GetType() == typeof(Check))
30             {
31                 return GetEflClassStatic();
32             }
33             else
34             {
35                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
36             }
37         }
38     }
39
40     [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
41         efl_ui_check_class_get();
42     /// <summary>Initializes a new instance of the <see cref="Check"/> class.</summary>
43     /// <param name="parent">Parent instance.</param>
44     /// <param name="style">The widget style to use. See <see cref="Efl.Ui.Widget.SetStyle" /></param>
45     public Check(Efl.Object parent
46             , System.String style = null) : base(efl_ui_check_class_get(), parent)
47     {
48         if (Efl.Eo.Globals.ParamHelperCheck(style))
49         {
50             SetStyle(Efl.Eo.Globals.GetParamHelper(style));
51         }
52
53         FinishInstantiation();
54     }
55
56     /// <summary>Constructor to be used when objects are expected to be constructed from native code.</summary>
57     /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
58     protected Check(ConstructingHandle ch) : base(ch)
59     {
60     }
61
62     /// <summary>Initializes a new instance of the <see cref="Check"/> class.
63     /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
64     /// <param name="wh">The native pointer to be wrapped.</param>
65     protected Check(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
66     {
67     }
68
69     /// <summary>Initializes a new instance of the <see cref="Check"/> class.
70     /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
71     /// <param name="baseKlass">The pointer to the base native Eo class.</param>
72     /// <param name="parent">The Efl.Object parent of this instance.</param>
73     protected Check(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
74     {
75     }
76
77     /// <summary>Emitted each time selected has changed</summary>
78     public event EventHandler<Efl.Ui.CheckSelectedChangedEvt_Args> SelectedChangedEvt
79     {
80         add
81         {
82             lock (eflBindingEventLock)
83             {
84                 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
85                 {
86                     var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
87                     if (obj != null)
88                     {
89                         Efl.Ui.CheckSelectedChangedEvt_Args args = new Efl.Ui.CheckSelectedChangedEvt_Args();
90                         args.arg = Marshal.ReadByte(evt.Info) != 0;
91                         try
92                         {
93                             value?.Invoke(obj, args);
94                         }
95                         catch (Exception e)
96                         {
97                             Eina.Log.Error(e.ToString());
98                             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
99                         }
100                     }
101                 };
102
103                 string key = "_EFL_UI_CHECK_EVENT_SELECTED_CHANGED";
104                 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
105             }
106         }
107
108         remove
109         {
110             lock (eflBindingEventLock)
111             {
112                 string key = "_EFL_UI_CHECK_EVENT_SELECTED_CHANGED";
113                 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
114             }
115         }
116     }
117     ///<summary>Method to raise event SelectedChangedEvt.</summary>
118     public void OnSelectedChangedEvt(Efl.Ui.CheckSelectedChangedEvt_Args e)
119     {
120         var key = "_EFL_UI_CHECK_EVENT_SELECTED_CHANGED";
121         IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
122         if (desc == IntPtr.Zero)
123         {
124             Eina.Log.Error($"Failed to get native event {key}");
125             return;
126         }
127
128         IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0);
129         try
130         {
131             Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
132         }
133         finally
134         {
135             Marshal.FreeHGlobal(info);
136         }
137     }
138     /// <summary>Sent after the content is set or unset using the current content object.
139     /// (Since EFL 1.22)</summary>
140     public event EventHandler<Efl.IContentContentChangedEvt_Args> ContentChangedEvt
141     {
142         add
143         {
144             lock (eflBindingEventLock)
145             {
146                 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
147                 {
148                     var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
149                     if (obj != null)
150                     {
151                         Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args();
152                         args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete);
153                         try
154                         {
155                             value?.Invoke(obj, args);
156                         }
157                         catch (Exception e)
158                         {
159                             Eina.Log.Error(e.ToString());
160                             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
161                         }
162                     }
163                 };
164
165                 string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED";
166                 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
167             }
168         }
169
170         remove
171         {
172             lock (eflBindingEventLock)
173             {
174                 string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED";
175                 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
176             }
177         }
178     }
179     ///<summary>Method to raise event ContentChangedEvt.</summary>
180     public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e)
181     {
182         var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED";
183         IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
184         if (desc == IntPtr.Zero)
185         {
186             Eina.Log.Error($"Failed to get native event {key}");
187             return;
188         }
189
190         IntPtr info = e.arg.NativeHandle;
191         Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
192     }
193     /// <summary>The on/off state of the check object.</summary>
194     /// <returns><c>true</c> if the check object is selected, <c>false</c> otherwise</returns>
195     virtual public bool GetSelected() {
196          var _ret_var = Efl.Ui.Check.NativeMethods.efl_ui_check_selected_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
197         Eina.Error.RaiseIfUnhandledException();
198         return _ret_var;
199  }
200     /// <summary>The on/off state of the check object.</summary>
201     /// <param name="value"><c>true</c> if the check object is selected, <c>false</c> otherwise</param>
202     virtual public void SetSelected(bool value) {
203                                  Efl.Ui.Check.NativeMethods.efl_ui_check_selected_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),value);
204         Eina.Error.RaiseIfUnhandledException();
205                          }
206     /// <summary>Sub-object currently set as this object&apos;s single content.
207     /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid <c>content</c> is set the object will become empty (it will have no sub-object).
208     /// (Since EFL 1.22)</summary>
209     /// <returns>The sub-object.</returns>
210     virtual public Efl.Gfx.IEntity GetContent() {
211          var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
212         Eina.Error.RaiseIfUnhandledException();
213         return _ret_var;
214  }
215     /// <summary>Sub-object currently set as this object&apos;s single content.
216     /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid <c>content</c> is set the object will become empty (it will have no sub-object).
217     /// (Since EFL 1.22)</summary>
218     /// <param name="content">The sub-object.</param>
219     /// <returns><c>true</c> if <c>content</c> was successfully swallowed.</returns>
220     virtual public bool SetContent(Efl.Gfx.IEntity content) {
221                                  var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),content);
222         Eina.Error.RaiseIfUnhandledException();
223                         return _ret_var;
224  }
225     /// <summary>Remove the sub-object currently set as content of this object and return it. This object becomes empty.
226     /// (Since EFL 1.22)</summary>
227     /// <returns>Unswallowed object</returns>
228     virtual public Efl.Gfx.IEntity UnsetContent() {
229          var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
230         Eina.Error.RaiseIfUnhandledException();
231         return _ret_var;
232  }
233     /// <summary>Retrieves the text string currently being displayed by the given text object.
234     /// Do not free() the return value.
235     /// 
236     /// See also <see cref="Efl.IText.GetText"/>.
237     /// (Since EFL 1.22)</summary>
238     /// <returns>Text string to display on it.</returns>
239     virtual public System.String GetText() {
240          var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
241         Eina.Error.RaiseIfUnhandledException();
242         return _ret_var;
243  }
244     /// <summary>Sets the text string to be displayed by the given text object.
245     /// See also <see cref="Efl.IText.GetText"/>.
246     /// (Since EFL 1.22)</summary>
247     /// <param name="text">Text string to display on it.</param>
248     virtual public void SetText(System.String text) {
249                                  Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),text);
250         Eina.Error.RaiseIfUnhandledException();
251                          }
252     /// <summary>The on/off state of the check object.</summary>
253     /// <value><c>true</c> if the check object is selected, <c>false</c> otherwise</value>
254     public bool Selected {
255         get { return GetSelected(); }
256         set { SetSelected(value); }
257     }
258     /// <summary>Sub-object currently set as this object&apos;s single content.
259     /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid <c>content</c> is set the object will become empty (it will have no sub-object).
260     /// (Since EFL 1.22)</summary>
261     /// <value>The sub-object.</value>
262     public Efl.Gfx.IEntity Content {
263         get { return GetContent(); }
264         set { SetContent(value); }
265     }
266     private static IntPtr GetEflClassStatic()
267     {
268         return Efl.Ui.Check.efl_ui_check_class_get();
269     }
270     /// <summary>Wrapper for native methods and virtual method delegates.
271     /// For internal use by generated code only.</summary>
272     public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods
273     {
274         private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule(    efl.Libs.Elementary);
275         /// <summary>Gets the list of Eo operations to override.</summary>
276         /// <returns>The list of Eo operations to be overload.</returns>
277         public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
278         {
279             var descs = new System.Collections.Generic.List<Efl_Op_Description>();
280             var methods = Efl.Eo.Globals.GetUserMethods(type);
281
282             if (efl_ui_check_selected_get_static_delegate == null)
283             {
284                 efl_ui_check_selected_get_static_delegate = new efl_ui_check_selected_get_delegate(selected_get);
285             }
286
287             if (methods.FirstOrDefault(m => m.Name == "GetSelected") != null)
288             {
289                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_check_selected_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_check_selected_get_static_delegate) });
290             }
291
292             if (efl_ui_check_selected_set_static_delegate == null)
293             {
294                 efl_ui_check_selected_set_static_delegate = new efl_ui_check_selected_set_delegate(selected_set);
295             }
296
297             if (methods.FirstOrDefault(m => m.Name == "SetSelected") != null)
298             {
299                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_check_selected_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_check_selected_set_static_delegate) });
300             }
301
302             if (efl_content_get_static_delegate == null)
303             {
304                 efl_content_get_static_delegate = new efl_content_get_delegate(content_get);
305             }
306
307             if (methods.FirstOrDefault(m => m.Name == "GetContent") != null)
308             {
309                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) });
310             }
311
312             if (efl_content_set_static_delegate == null)
313             {
314                 efl_content_set_static_delegate = new efl_content_set_delegate(content_set);
315             }
316
317             if (methods.FirstOrDefault(m => m.Name == "SetContent") != null)
318             {
319                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) });
320             }
321
322             if (efl_content_unset_static_delegate == null)
323             {
324                 efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset);
325             }
326
327             if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null)
328             {
329                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) });
330             }
331
332             if (efl_text_get_static_delegate == null)
333             {
334                 efl_text_get_static_delegate = new efl_text_get_delegate(text_get);
335             }
336
337             if (methods.FirstOrDefault(m => m.Name == "GetText") != null)
338             {
339                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) });
340             }
341
342             if (efl_text_set_static_delegate == null)
343             {
344                 efl_text_set_static_delegate = new efl_text_set_delegate(text_set);
345             }
346
347             if (methods.FirstOrDefault(m => m.Name == "SetText") != null)
348             {
349                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) });
350             }
351
352             descs.AddRange(base.GetEoOps(type));
353             return descs;
354         }
355         /// <summary>Returns the Eo class for the native methods of this class.</summary>
356         /// <returns>The native class pointer.</returns>
357         public override IntPtr GetEflClass()
358         {
359             return Efl.Ui.Check.efl_ui_check_class_get();
360         }
361
362         #pragma warning disable CA1707, CS1591, SA1300, SA1600
363
364         [return: MarshalAs(UnmanagedType.U1)]
365         private delegate bool efl_ui_check_selected_get_delegate(System.IntPtr obj, System.IntPtr pd);
366
367         [return: MarshalAs(UnmanagedType.U1)]
368         public delegate bool efl_ui_check_selected_get_api_delegate(System.IntPtr obj);
369
370         public static Efl.Eo.FunctionWrapper<efl_ui_check_selected_get_api_delegate> efl_ui_check_selected_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_check_selected_get_api_delegate>(Module, "efl_ui_check_selected_get");
371
372         private static bool selected_get(System.IntPtr obj, System.IntPtr pd)
373         {
374             Eina.Log.Debug("function efl_ui_check_selected_get was called");
375             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
376             if (ws != null)
377             {
378             bool _ret_var = default(bool);
379                 try
380                 {
381                     _ret_var = ((Check)ws.Target).GetSelected();
382                 }
383                 catch (Exception e)
384                 {
385                     Eina.Log.Warning($"Callback error: {e.ToString()}");
386                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
387                 }
388
389         return _ret_var;
390
391             }
392             else
393             {
394                 return efl_ui_check_selected_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
395             }
396         }
397
398         private static efl_ui_check_selected_get_delegate efl_ui_check_selected_get_static_delegate;
399
400         
401         private delegate void efl_ui_check_selected_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool value);
402
403         
404         public delegate void efl_ui_check_selected_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool value);
405
406         public static Efl.Eo.FunctionWrapper<efl_ui_check_selected_set_api_delegate> efl_ui_check_selected_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_check_selected_set_api_delegate>(Module, "efl_ui_check_selected_set");
407
408         private static void selected_set(System.IntPtr obj, System.IntPtr pd, bool value)
409         {
410             Eina.Log.Debug("function efl_ui_check_selected_set was called");
411             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
412             if (ws != null)
413             {
414                                     
415                 try
416                 {
417                     ((Check)ws.Target).SetSelected(value);
418                 }
419                 catch (Exception e)
420                 {
421                     Eina.Log.Warning($"Callback error: {e.ToString()}");
422                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
423                 }
424
425                         
426             }
427             else
428             {
429                 efl_ui_check_selected_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value);
430             }
431         }
432
433         private static efl_ui_check_selected_set_delegate efl_ui_check_selected_set_static_delegate;
434
435         [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
436         private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd);
437
438         [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
439         public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj);
440
441         public static Efl.Eo.FunctionWrapper<efl_content_get_api_delegate> efl_content_get_ptr = new Efl.Eo.FunctionWrapper<efl_content_get_api_delegate>(Module, "efl_content_get");
442
443         private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd)
444         {
445             Eina.Log.Debug("function efl_content_get was called");
446             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
447             if (ws != null)
448             {
449             Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity);
450                 try
451                 {
452                     _ret_var = ((Check)ws.Target).GetContent();
453                 }
454                 catch (Exception e)
455                 {
456                     Eina.Log.Warning($"Callback error: {e.ToString()}");
457                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
458                 }
459
460         return _ret_var;
461
462             }
463             else
464             {
465                 return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
466             }
467         }
468
469         private static efl_content_get_delegate efl_content_get_static_delegate;
470
471         [return: MarshalAs(UnmanagedType.U1)]
472         private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity content);
473
474         [return: MarshalAs(UnmanagedType.U1)]
475         public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity content);
476
477         public static Efl.Eo.FunctionWrapper<efl_content_set_api_delegate> efl_content_set_ptr = new Efl.Eo.FunctionWrapper<efl_content_set_api_delegate>(Module, "efl_content_set");
478
479         private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content)
480         {
481             Eina.Log.Debug("function efl_content_set was called");
482             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
483             if (ws != null)
484             {
485                                     bool _ret_var = default(bool);
486                 try
487                 {
488                     _ret_var = ((Check)ws.Target).SetContent(content);
489                 }
490                 catch (Exception e)
491                 {
492                     Eina.Log.Warning($"Callback error: {e.ToString()}");
493                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
494                 }
495
496                         return _ret_var;
497
498             }
499             else
500             {
501                 return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content);
502             }
503         }
504
505         private static efl_content_set_delegate efl_content_set_static_delegate;
506
507         [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
508         private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd);
509
510         [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
511         public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj);
512
513         public static Efl.Eo.FunctionWrapper<efl_content_unset_api_delegate> efl_content_unset_ptr = new Efl.Eo.FunctionWrapper<efl_content_unset_api_delegate>(Module, "efl_content_unset");
514
515         private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd)
516         {
517             Eina.Log.Debug("function efl_content_unset was called");
518             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
519             if (ws != null)
520             {
521             Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity);
522                 try
523                 {
524                     _ret_var = ((Check)ws.Target).UnsetContent();
525                 }
526                 catch (Exception e)
527                 {
528                     Eina.Log.Warning($"Callback error: {e.ToString()}");
529                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
530                 }
531
532         return _ret_var;
533
534             }
535             else
536             {
537                 return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
538             }
539         }
540
541         private static efl_content_unset_delegate efl_content_unset_static_delegate;
542
543         [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
544         private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd);
545
546         [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
547         public delegate System.String efl_text_get_api_delegate(System.IntPtr obj);
548
549         public static Efl.Eo.FunctionWrapper<efl_text_get_api_delegate> efl_text_get_ptr = new Efl.Eo.FunctionWrapper<efl_text_get_api_delegate>(Module, "efl_text_get");
550
551         private static System.String text_get(System.IntPtr obj, System.IntPtr pd)
552         {
553             Eina.Log.Debug("function efl_text_get was called");
554             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
555             if (ws != null)
556             {
557             System.String _ret_var = default(System.String);
558                 try
559                 {
560                     _ret_var = ((Check)ws.Target).GetText();
561                 }
562                 catch (Exception e)
563                 {
564                     Eina.Log.Warning($"Callback error: {e.ToString()}");
565                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
566                 }
567
568         return _ret_var;
569
570             }
571             else
572             {
573                 return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
574             }
575         }
576
577         private static efl_text_get_delegate efl_text_get_static_delegate;
578
579         
580         private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text);
581
582         
583         public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text);
584
585         public static Efl.Eo.FunctionWrapper<efl_text_set_api_delegate> efl_text_set_ptr = new Efl.Eo.FunctionWrapper<efl_text_set_api_delegate>(Module, "efl_text_set");
586
587         private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text)
588         {
589             Eina.Log.Debug("function efl_text_set was called");
590             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
591             if (ws != null)
592             {
593                                     
594                 try
595                 {
596                     ((Check)ws.Target).SetText(text);
597                 }
598                 catch (Exception e)
599                 {
600                     Eina.Log.Warning($"Callback error: {e.ToString()}");
601                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
602                 }
603
604                         
605             }
606             else
607             {
608                 efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text);
609             }
610         }
611
612         private static efl_text_set_delegate efl_text_set_static_delegate;
613
614         #pragma warning restore CA1707, CS1591, SA1300, SA1600
615
616 }
617 }
618 }
619
620 }
621