69dfc43e9806ef73bd87b279cdf66f3077d637fd
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_ui_tab_page_part_tab.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>Tab_Page internal part class</summary>
13 [Efl.Ui.TabPagePartTab.NativeMethods]
14 public class TabPagePartTab : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IText
15 {
16     ///<summary>Pointer to the native class description.</summary>
17     public override System.IntPtr NativeClass
18     {
19         get
20         {
21             if (((object)this).GetType() == typeof(TabPagePartTab))
22             {
23                 return GetEflClassStatic();
24             }
25             else
26             {
27                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
28             }
29         }
30     }
31
32     [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
33         efl_ui_tab_page_part_tab_class_get();
34     /// <summary>Initializes a new instance of the <see cref="TabPagePartTab"/> class.</summary>
35     /// <param name="parent">Parent instance.</param>
36     public TabPagePartTab(Efl.Object parent= null
37             ) : base(efl_ui_tab_page_part_tab_class_get(), typeof(TabPagePartTab), parent)
38     {
39         FinishInstantiation();
40     }
41
42     /// <summary>Initializes a new instance of the <see cref="TabPagePartTab"/> class.
43     /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
44     /// <param name="raw">The native pointer to be wrapped.</param>
45     protected TabPagePartTab(System.IntPtr raw) : base(raw)
46     {
47             }
48
49     /// <summary>Initializes a new instance of the <see cref="TabPagePartTab"/> class.
50     /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
51     /// <param name="baseKlass">The pointer to the base native Eo class.</param>
52     /// <param name="managedType">The managed type of the public constructor that originated this call.</param>
53     /// <param name="parent">The Efl.Object parent of this instance.</param>
54     protected TabPagePartTab(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
55     {
56     }
57
58     /// <summary>Verifies if the given object is equal to this one.</summary>
59     /// <param name="instance">The object to compare to.</param>
60     /// <returns>True if both objects point to the same native object.</returns>
61     public override bool Equals(object instance)
62     {
63         var other = instance as Efl.Object;
64         if (other == null)
65         {
66             return false;
67         }
68         return this.NativeHandle == other.NativeHandle;
69     }
70
71     /// <summary>Gets the hash code for this object based on the native pointer it points to.</summary>
72     /// <returns>The value of the pointer, to be used as the hash code of this object.</returns>
73     public override int GetHashCode()
74     {
75         return this.NativeHandle.ToInt32();
76     }
77
78     /// <summary>Turns the native pointer into a string representation.</summary>
79     /// <returns>A string with the type and the native pointer for this object.</returns>
80     public override String ToString()
81     {
82         return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
83     }
84
85     virtual public System.String GetIcon() {
86          var _ret_var = Efl.Ui.TabPagePartTab.NativeMethods.efl_ui_tab_page_part_tab_icon_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
87         Eina.Error.RaiseIfUnhandledException();
88         return _ret_var;
89  }
90     virtual public void SetIcon(System.String path) {
91                                  Efl.Ui.TabPagePartTab.NativeMethods.efl_ui_tab_page_part_tab_icon_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),path);
92         Eina.Error.RaiseIfUnhandledException();
93                          }
94     /// <summary>Retrieves the text string currently being displayed by the given text object.
95     /// Do not free() the return value.
96     /// 
97     /// See also <see cref="Efl.IText.GetText"/>.
98     /// (Since EFL 1.22)</summary>
99     /// <returns>Text string to display on it.</returns>
100     virtual public System.String GetText() {
101          var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
102         Eina.Error.RaiseIfUnhandledException();
103         return _ret_var;
104  }
105     /// <summary>Sets the text string to be displayed by the given text object.
106     /// See also <see cref="Efl.IText.GetText"/>.
107     /// (Since EFL 1.22)</summary>
108     /// <param name="text">Text string to display on it.</param>
109     virtual public void SetText(System.String text) {
110                                  Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),text);
111         Eina.Error.RaiseIfUnhandledException();
112                          }
113         public System.String Icon {
114         get { return GetIcon(); }
115         set { SetIcon(value); }
116     }
117     private static IntPtr GetEflClassStatic()
118     {
119         return Efl.Ui.TabPagePartTab.efl_ui_tab_page_part_tab_class_get();
120     }
121     /// <summary>Wrapper for native methods and virtual method delegates.
122     /// For internal use by generated code only.</summary>
123     public new class NativeMethods : Efl.Ui.LayoutPart.NativeMethods
124     {
125         private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule(    efl.Libs.Elementary);
126         /// <summary>Gets the list of Eo operations to override.</summary>
127         /// <returns>The list of Eo operations to be overload.</returns>
128         public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
129         {
130             var descs = new System.Collections.Generic.List<Efl_Op_Description>();
131             var methods = Efl.Eo.Globals.GetUserMethods(type);
132
133             if (efl_ui_tab_page_part_tab_icon_get_static_delegate == null)
134             {
135                 efl_ui_tab_page_part_tab_icon_get_static_delegate = new efl_ui_tab_page_part_tab_icon_get_delegate(icon_get);
136             }
137
138             if (methods.FirstOrDefault(m => m.Name == "GetIcon") != null)
139             {
140                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_tab_page_part_tab_icon_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_page_part_tab_icon_get_static_delegate) });
141             }
142
143             if (efl_ui_tab_page_part_tab_icon_set_static_delegate == null)
144             {
145                 efl_ui_tab_page_part_tab_icon_set_static_delegate = new efl_ui_tab_page_part_tab_icon_set_delegate(icon_set);
146             }
147
148             if (methods.FirstOrDefault(m => m.Name == "SetIcon") != null)
149             {
150                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_tab_page_part_tab_icon_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_page_part_tab_icon_set_static_delegate) });
151             }
152
153             if (efl_text_get_static_delegate == null)
154             {
155                 efl_text_get_static_delegate = new efl_text_get_delegate(text_get);
156             }
157
158             if (methods.FirstOrDefault(m => m.Name == "GetText") != null)
159             {
160                 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) });
161             }
162
163             if (efl_text_set_static_delegate == null)
164             {
165                 efl_text_set_static_delegate = new efl_text_set_delegate(text_set);
166             }
167
168             if (methods.FirstOrDefault(m => m.Name == "SetText") != null)
169             {
170                 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) });
171             }
172
173             descs.AddRange(base.GetEoOps(type));
174             return descs;
175         }
176         /// <summary>Returns the Eo class for the native methods of this class.</summary>
177         /// <returns>The native class pointer.</returns>
178         public override IntPtr GetEflClass()
179         {
180             return Efl.Ui.TabPagePartTab.efl_ui_tab_page_part_tab_class_get();
181         }
182
183         #pragma warning disable CA1707, SA1300, SA1600
184
185         [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
186         private delegate System.String efl_ui_tab_page_part_tab_icon_get_delegate(System.IntPtr obj, System.IntPtr pd);
187
188         [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
189         public delegate System.String efl_ui_tab_page_part_tab_icon_get_api_delegate(System.IntPtr obj);
190
191         public static Efl.Eo.FunctionWrapper<efl_ui_tab_page_part_tab_icon_get_api_delegate> efl_ui_tab_page_part_tab_icon_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_tab_page_part_tab_icon_get_api_delegate>(Module, "efl_ui_tab_page_part_tab_icon_get");
192
193         private static System.String icon_get(System.IntPtr obj, System.IntPtr pd)
194         {
195             Eina.Log.Debug("function efl_ui_tab_page_part_tab_icon_get was called");
196             Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
197             if (wrapper != null)
198             {
199             System.String _ret_var = default(System.String);
200                 try
201                 {
202                     _ret_var = ((TabPagePartTab)wrapper).GetIcon();
203                 }
204                 catch (Exception e)
205                 {
206                     Eina.Log.Warning($"Callback error: {e.ToString()}");
207                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
208                 }
209
210         return _ret_var;
211
212             }
213             else
214             {
215                 return efl_ui_tab_page_part_tab_icon_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
216             }
217         }
218
219         private static efl_ui_tab_page_part_tab_icon_get_delegate efl_ui_tab_page_part_tab_icon_get_static_delegate;
220
221         
222         private delegate void efl_ui_tab_page_part_tab_icon_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String path);
223
224         
225         public delegate void efl_ui_tab_page_part_tab_icon_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String path);
226
227         public static Efl.Eo.FunctionWrapper<efl_ui_tab_page_part_tab_icon_set_api_delegate> efl_ui_tab_page_part_tab_icon_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_tab_page_part_tab_icon_set_api_delegate>(Module, "efl_ui_tab_page_part_tab_icon_set");
228
229         private static void icon_set(System.IntPtr obj, System.IntPtr pd, System.String path)
230         {
231             Eina.Log.Debug("function efl_ui_tab_page_part_tab_icon_set was called");
232             Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
233             if (wrapper != null)
234             {
235                                     
236                 try
237                 {
238                     ((TabPagePartTab)wrapper).SetIcon(path);
239                 }
240                 catch (Exception e)
241                 {
242                     Eina.Log.Warning($"Callback error: {e.ToString()}");
243                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
244                 }
245
246                         
247             }
248             else
249             {
250                 efl_ui_tab_page_part_tab_icon_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), path);
251             }
252         }
253
254         private static efl_ui_tab_page_part_tab_icon_set_delegate efl_ui_tab_page_part_tab_icon_set_static_delegate;
255
256         [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
257         private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd);
258
259         [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
260         public delegate System.String efl_text_get_api_delegate(System.IntPtr obj);
261
262         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");
263
264         private static System.String text_get(System.IntPtr obj, System.IntPtr pd)
265         {
266             Eina.Log.Debug("function efl_text_get was called");
267             Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
268             if (wrapper != null)
269             {
270             System.String _ret_var = default(System.String);
271                 try
272                 {
273                     _ret_var = ((TabPagePartTab)wrapper).GetText();
274                 }
275                 catch (Exception e)
276                 {
277                     Eina.Log.Warning($"Callback error: {e.ToString()}");
278                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
279                 }
280
281         return _ret_var;
282
283             }
284             else
285             {
286                 return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
287             }
288         }
289
290         private static efl_text_get_delegate efl_text_get_static_delegate;
291
292         
293         private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text);
294
295         
296         public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text);
297
298         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");
299
300         private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text)
301         {
302             Eina.Log.Debug("function efl_text_set was called");
303             Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
304             if (wrapper != null)
305             {
306                                     
307                 try
308                 {
309                     ((TabPagePartTab)wrapper).SetText(text);
310                 }
311                 catch (Exception e)
312                 {
313                     Eina.Log.Warning($"Callback error: {e.ToString()}");
314                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
315                 }
316
317                         
318             }
319             else
320             {
321                 efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text);
322             }
323         }
324
325         private static efl_text_set_delegate efl_text_set_static_delegate;
326
327         #pragma warning restore CA1707, SA1300, SA1600
328
329 }
330 }
331 }
332
333 }
334