2 #pragma warning disable CS1591
4 using System.Runtime.InteropServices;
5 using System.Collections.Generic;
7 using System.Threading;
8 using System.ComponentModel;
15 /// <remarks>This is a <b>BETA</b> class. It can be modified or removed in the future. Do not use it for product development.</remarks>
16 [Efl.Ui.Spotlight.Util.NativeMethods]
17 [Efl.Eo.BindingEntity]
18 public class Util : Efl.Eo.EoWrapper
20 /// <summary>Pointer to the native class description.</summary>
21 public override System.IntPtr NativeClass
25 if (((object)this).GetType() == typeof(Util))
27 return GetEflClassStatic();
31 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
36 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
37 efl_ui_spotlight_util_class_get();
38 /// <summary>Initializes a new instance of the <see cref="Util"/> class.</summary>
39 /// <param name="parent">Parent instance.</param>
40 public Util(Efl.Object parent= null
41 ) : base(efl_ui_spotlight_util_class_get(), parent)
43 FinishInstantiation();
46 /// <summary>Subclasses should override this constructor if they are expected to be instantiated from native code.
47 /// Do not call this constructor directly.</summary>
48 /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
49 protected Util(ConstructingHandle ch) : base(ch)
53 /// <summary>Initializes a new instance of the <see cref="Util"/> class.
54 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
55 /// <param name="wh">The native pointer to be wrapped.</param>
56 protected Util(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
60 /// <summary>Initializes a new instance of the <see cref="Util"/> class.
61 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
62 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
63 /// <param name="parent">The Efl.Object parent of this instance.</param>
64 protected Util(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
68 /// <summary>Get a preconfigured stack obejct</summary>
69 public static Efl.Ui.Spotlight.Container StackGen(Efl.Ui.Widget parent) {
70 var _ret_var = Efl.Ui.Spotlight.Util.NativeMethods.efl_ui_spotlight_util_stack_gen_ptr.Value.Delegate(parent);
71 Eina.Error.RaiseIfUnhandledException();
74 private static IntPtr GetEflClassStatic()
76 return Efl.Ui.Spotlight.Util.efl_ui_spotlight_util_class_get();
78 /// <summary>Wrapper for native methods and virtual method delegates.
79 /// For internal use by generated code only.</summary>
80 public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods
82 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary);
83 /// <summary>Gets the list of Eo operations to override.</summary>
84 /// <returns>The list of Eo operations to be overload.</returns>
85 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
87 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
88 descs.AddRange(base.GetEoOps(type));
91 /// <summary>Returns the Eo class for the native methods of this class.</summary>
92 /// <returns>The native class pointer.</returns>
93 public override IntPtr GetEflClass()
95 return Efl.Ui.Spotlight.Util.efl_ui_spotlight_util_class_get();
98 #pragma warning disable CA1707, CS1591, SA1300, SA1600
100 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
101 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);
103 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
104 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);
106 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");
108 private static Efl.Ui.Spotlight.Container stack_gen(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Widget parent)
110 Eina.Log.Debug("function efl_ui_spotlight_util_stack_gen was called");
111 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
114 Efl.Ui.Spotlight.Container _ret_var = default(Efl.Ui.Spotlight.Container);
117 _ret_var = Util.StackGen(parent);
121 Eina.Log.Warning($"Callback error: {e.ToString()}");
122 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
130 return efl_ui_spotlight_util_stack_gen_ptr.Value.Delegate(parent);
134 #pragma warning restore CA1707, CS1591, SA1300, SA1600
145 #pragma warning disable CS1591
146 public static class Efl_Ui_SpotlightUtil_ExtensionMethods {
148 #pragma warning restore CS1591