1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.Threading;
7 using System.ComponentModel;
14 [Efl.Ui.Spotlight.Util.NativeMethods]
15 [Efl.Eo.BindingEntity]
16 public class Util : Efl.Eo.EoWrapper
18 ///<summary>Pointer to the native class description.</summary>
19 public override System.IntPtr NativeClass
23 if (((object)this).GetType() == typeof(Util))
25 return GetEflClassStatic();
29 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
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)
41 FinishInstantiation();
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)
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)
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)
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();
71 private static IntPtr GetEflClassStatic()
73 return Efl.Ui.Spotlight.Util.efl_ui_spotlight_util_class_get();
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
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)
84 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
85 descs.AddRange(base.GetEoOps(type));
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()
92 return Efl.Ui.Spotlight.Util.efl_ui_spotlight_util_class_get();
95 #pragma warning disable CA1707, CS1591, SA1300, SA1600
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);
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);
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");
105 private static Efl.Ui.Spotlight.Container stack_gen(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Widget parent)
107 Eina.Log.Debug("function efl_ui_spotlight_util_stack_gen was called");
108 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
111 Efl.Ui.Spotlight.Container _ret_var = default(Efl.Ui.Spotlight.Container);
114 _ret_var = Util.StackGen(parent);
118 Eina.Log.Warning($"Callback error: {e.ToString()}");
119 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
127 return efl_ui_spotlight_util_stack_gen_ptr.Value.Delegate(parent);
131 #pragma warning restore CA1707, CS1591, SA1300, SA1600