57389ec7d8e9f56513155138d7842ed4e4762693
[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.ComponentModel;
7 namespace Efl { namespace Ui { 
8 /// <summary>Tab_Page internal part class</summary>
9 [TabPagePartTabNativeInherit]
10 public class TabPagePartTab : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IText
11 {
12     ///<summary>Pointer to the native class description.</summary>
13     public override System.IntPtr NativeClass {
14         get {
15             if (((object)this).GetType() == typeof (TabPagePartTab))
16                 return Efl.Ui.TabPagePartTabNativeInherit.GetEflClassStatic();
17             else
18                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
19         }
20     }
21     [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
22         efl_ui_tab_page_part_tab_class_get();
23     ///<summary>Creates a new instance.</summary>
24     ///<param name="parent">Parent instance.</param>
25     public TabPagePartTab(Efl.Object parent= null
26             ) :
27         base(efl_ui_tab_page_part_tab_class_get(), typeof(TabPagePartTab), parent)
28     {
29         FinishInstantiation();
30     }
31     ///<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>
32     protected TabPagePartTab(System.IntPtr raw) : base(raw)
33     {
34                 RegisterEventProxies();
35     }
36     ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
37     protected TabPagePartTab(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {}
38     ///<summary>Verifies if the given object is equal to this one.</summary>
39     public override bool Equals(object obj)
40     {
41         var other = obj as Efl.Object;
42         if (other == null)
43             return false;
44         return this.NativeHandle == other.NativeHandle;
45     }
46     ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
47     public override int GetHashCode()
48     {
49         return this.NativeHandle.ToInt32();
50     }
51     ///<summary>Turns the native pointer into a string representation.</summary>
52     public override String ToString()
53     {
54         return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
55     }
56     ///<summary>Register the Eo event wrappers making the bridge to C# events. Internal usage only.</summary>
57     protected override void RegisterEventProxies()
58     {
59         base.RegisterEventProxies();
60     }
61     /// <summary></summary>
62     /// <returns></returns>
63     virtual public System.String GetIcon() {
64          var _ret_var = Efl.Ui.TabPagePartTabNativeInherit.efl_ui_tab_page_part_tab_icon_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
65         Eina.Error.RaiseIfUnhandledException();
66         return _ret_var;
67  }
68     /// <summary></summary>
69     /// <param name="path"></param>
70     /// <returns></returns>
71     virtual public void SetIcon( System.String path) {
72                                  Efl.Ui.TabPagePartTabNativeInherit.efl_ui_tab_page_part_tab_icon_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), path);
73         Eina.Error.RaiseIfUnhandledException();
74                          }
75     /// <summary>Retrieves the text string currently being displayed by the given text object.
76     /// Do not free() the return value.
77     /// 
78     /// See also <see cref="Efl.IText.GetText"/>.
79     /// (Since EFL 1.22)</summary>
80     /// <returns>Text string to display on it.</returns>
81     virtual public System.String GetText() {
82          var _ret_var = Efl.ITextNativeInherit.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
83         Eina.Error.RaiseIfUnhandledException();
84         return _ret_var;
85  }
86     /// <summary>Sets the text string to be displayed by the given text object.
87     /// See also <see cref="Efl.IText.GetText"/>.
88     /// (Since EFL 1.22)</summary>
89     /// <param name="text">Text string to display on it.</param>
90     /// <returns></returns>
91     virtual public void SetText( System.String text) {
92                                  Efl.ITextNativeInherit.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), text);
93         Eina.Error.RaiseIfUnhandledException();
94                          }
95     /// <summary></summary>
96 /// <value></value>
97     public System.String Icon {
98         get { return GetIcon(); }
99         set { SetIcon( value); }
100     }
101     private static IntPtr GetEflClassStatic()
102     {
103         return Efl.Ui.TabPagePartTab.efl_ui_tab_page_part_tab_class_get();
104     }
105 }
106 public class TabPagePartTabNativeInherit : Efl.Ui.LayoutPartNativeInherit{
107     public new  static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary);
108     public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
109     {
110         var descs = new System.Collections.Generic.List<Efl_Op_Description>();
111         var methods = Efl.Eo.Globals.GetUserMethods(type);
112         if (efl_ui_tab_page_part_tab_icon_get_static_delegate == null)
113             efl_ui_tab_page_part_tab_icon_get_static_delegate = new efl_ui_tab_page_part_tab_icon_get_delegate(icon_get);
114         if (methods.FirstOrDefault(m => m.Name == "GetIcon") != null)
115             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)});
116         if (efl_ui_tab_page_part_tab_icon_set_static_delegate == null)
117             efl_ui_tab_page_part_tab_icon_set_static_delegate = new efl_ui_tab_page_part_tab_icon_set_delegate(icon_set);
118         if (methods.FirstOrDefault(m => m.Name == "SetIcon") != null)
119             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)});
120         if (efl_text_get_static_delegate == null)
121             efl_text_get_static_delegate = new efl_text_get_delegate(text_get);
122         if (methods.FirstOrDefault(m => m.Name == "GetText") != null)
123             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)});
124         if (efl_text_set_static_delegate == null)
125             efl_text_set_static_delegate = new efl_text_set_delegate(text_set);
126         if (methods.FirstOrDefault(m => m.Name == "SetText") != null)
127             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)});
128         descs.AddRange(base.GetEoOps(type));
129         return descs;
130     }
131     public override IntPtr GetEflClass()
132     {
133         return Efl.Ui.TabPagePartTab.efl_ui_tab_page_part_tab_class_get();
134     }
135     public static new  IntPtr GetEflClassStatic()
136     {
137         return Efl.Ui.TabPagePartTab.efl_ui_tab_page_part_tab_class_get();
138     }
139
140
141      [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_tab_page_part_tab_icon_get_delegate(System.IntPtr obj, System.IntPtr pd);
142
143
144      [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_tab_page_part_tab_icon_get_api_delegate(System.IntPtr obj);
145      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");
146      private static System.String icon_get(System.IntPtr obj, System.IntPtr pd)
147     {
148         Eina.Log.Debug("function efl_ui_tab_page_part_tab_icon_get was called");
149         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
150         if(wrapper != null) {
151                         System.String _ret_var = default(System.String);
152             try {
153                 _ret_var = ((TabPagePartTab)wrapper).GetIcon();
154             } catch (Exception e) {
155                 Eina.Log.Warning($"Callback error: {e.ToString()}");
156                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
157             }
158         return _ret_var;
159         } else {
160             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)));
161         }
162     }
163     private static efl_ui_tab_page_part_tab_icon_get_delegate efl_ui_tab_page_part_tab_icon_get_static_delegate;
164
165
166      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);
167
168
169      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);
170      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");
171      private static void icon_set(System.IntPtr obj, System.IntPtr pd,  System.String path)
172     {
173         Eina.Log.Debug("function efl_ui_tab_page_part_tab_icon_set was called");
174         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
175         if(wrapper != null) {
176                                                 
177             try {
178                 ((TabPagePartTab)wrapper).SetIcon( path);
179             } catch (Exception e) {
180                 Eina.Log.Warning($"Callback error: {e.ToString()}");
181                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
182             }
183                                 } else {
184             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);
185         }
186     }
187     private static efl_ui_tab_page_part_tab_icon_set_delegate efl_ui_tab_page_part_tab_icon_set_static_delegate;
188
189
190      [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd);
191
192
193      [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_get_api_delegate(System.IntPtr obj);
194      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");
195      private static System.String text_get(System.IntPtr obj, System.IntPtr pd)
196     {
197         Eina.Log.Debug("function efl_text_get was called");
198         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
199         if(wrapper != null) {
200                         System.String _ret_var = default(System.String);
201             try {
202                 _ret_var = ((TabPagePartTab)wrapper).GetText();
203             } catch (Exception e) {
204                 Eina.Log.Warning($"Callback error: {e.ToString()}");
205                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
206             }
207         return _ret_var;
208         } else {
209             return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
210         }
211     }
212     private static efl_text_get_delegate efl_text_get_static_delegate;
213
214
215      private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd,  [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]  System.String text);
216
217
218      public delegate void efl_text_set_api_delegate(System.IntPtr obj,  [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]  System.String text);
219      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");
220      private static void text_set(System.IntPtr obj, System.IntPtr pd,  System.String text)
221     {
222         Eina.Log.Debug("function efl_text_set was called");
223         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
224         if(wrapper != null) {
225                                                 
226             try {
227                 ((TabPagePartTab)wrapper).SetText( text);
228             } catch (Exception e) {
229                 Eina.Log.Warning($"Callback error: {e.ToString()}");
230                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
231             }
232                                 } else {
233             efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  text);
234         }
235     }
236     private static efl_text_set_delegate efl_text_set_static_delegate;
237 }
238 } }