69d67f0803317a7125f256aadbbbb0a3a02a97de
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_ui_spotlight_util.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 namespace Spotlight {
13
14 [Efl.Ui.Spotlight.Util.NativeMethods]
15 [Efl.Eo.BindingEntity]
16 public class Util : Efl.Eo.EoWrapper
17 {
18     ///<summary>Pointer to the native class description.</summary>
19     public override System.IntPtr NativeClass
20     {
21         get
22         {
23             if (((object)this).GetType() == typeof(Util))
24             {
25                 return GetEflClassStatic();
26             }
27             else
28             {
29                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
30             }
31         }
32     }
33
34     [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
35         efl_ui_spotlight_util_class_get();
36     /// <summary>Initializes a new instance of the <see cref="Util"/> class.</summary>
37     /// <param name="parent">Parent instance.</param>
38     public Util(Efl.Object parent= null
39             ) : base(efl_ui_spotlight_util_class_get(), parent)
40     {
41         FinishInstantiation();
42     }
43
44     /// <summary>Constructor to be used when objects are expected to be constructed from native code.</summary>
45     /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
46     protected Util(ConstructingHandle ch) : base(ch)
47     {
48     }
49
50     /// <summary>Initializes a new instance of the <see cref="Util"/> class.
51     /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
52     /// <param name="wh">The native pointer to be wrapped.</param>
53     protected Util(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
54     {
55     }
56
57     /// <summary>Initializes a new instance of the <see cref="Util"/> class.
58     /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
59     /// <param name="baseKlass">The pointer to the base native Eo class.</param>
60     /// <param name="parent">The Efl.Object parent of this instance.</param>
61     protected Util(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
62     {
63     }
64
65     /// <summary>Get a preconfigured stack obejct</summary>
66     public static Efl.Ui.Spotlight.Container StackGen(Efl.Ui.Widget parent) {
67                                  var _ret_var = Efl.Ui.Spotlight.Util.NativeMethods.efl_ui_spotlight_util_stack_gen_ptr.Value.Delegate(parent);
68         Eina.Error.RaiseIfUnhandledException();
69                         return _ret_var;
70  }
71     private static IntPtr GetEflClassStatic()
72     {
73         return Efl.Ui.Spotlight.Util.efl_ui_spotlight_util_class_get();
74     }
75     /// <summary>Wrapper for native methods and virtual method delegates.
76     /// For internal use by generated code only.</summary>
77     public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods
78     {
79         private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule(    efl.Libs.Elementary);
80         /// <summary>Gets the list of Eo operations to override.</summary>
81         /// <returns>The list of Eo operations to be overload.</returns>
82         public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
83         {
84             var descs = new System.Collections.Generic.List<Efl_Op_Description>();
85             descs.AddRange(base.GetEoOps(type));
86             return descs;
87         }
88         /// <summary>Returns the Eo class for the native methods of this class.</summary>
89         /// <returns>The native class pointer.</returns>
90         public override IntPtr GetEflClass()
91         {
92             return Efl.Ui.Spotlight.Util.efl_ui_spotlight_util_class_get();
93         }
94
95         #pragma warning disable CA1707, CS1591, SA1300, SA1600
96
97         [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
98         private delegate Efl.Ui.Spotlight.Container efl_ui_spotlight_util_stack_gen_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.Widget parent);
99
100         [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
101         public delegate Efl.Ui.Spotlight.Container efl_ui_spotlight_util_stack_gen_api_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.Widget parent);
102
103         public static Efl.Eo.FunctionWrapper<efl_ui_spotlight_util_stack_gen_api_delegate> efl_ui_spotlight_util_stack_gen_ptr = new Efl.Eo.FunctionWrapper<efl_ui_spotlight_util_stack_gen_api_delegate>(Module, "efl_ui_spotlight_util_stack_gen");
104
105         private static Efl.Ui.Spotlight.Container stack_gen(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Widget parent)
106         {
107             Eina.Log.Debug("function efl_ui_spotlight_util_stack_gen was called");
108             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
109             if (ws != null)
110             {
111                                     Efl.Ui.Spotlight.Container _ret_var = default(Efl.Ui.Spotlight.Container);
112                 try
113                 {
114                     _ret_var = Util.StackGen(parent);
115                 }
116                 catch (Exception e)
117                 {
118                     Eina.Log.Warning($"Callback error: {e.ToString()}");
119                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
120                 }
121
122                         return _ret_var;
123
124             }
125             else
126             {
127                 return efl_ui_spotlight_util_stack_gen_ptr.Value.Delegate(parent);
128             }
129         }
130
131         #pragma warning restore CA1707, CS1591, SA1300, SA1600
132
133 }
134 }
135 }
136
137 }
138
139 }
140