1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.Threading;
7 using System.ComponentModel;
14 ///<summary>Event argument wrapper for event <see cref="Efl.Ui.Spotlight.Manager.PosUpdateEvt"/>.</summary>
15 [Efl.Eo.BindingEntity]
16 public class ManagerPosUpdateEvt_Args : EventArgs {
17 ///<summary>Actual event payload.</summary>
18 public double arg { get; set; }
20 /// <summary>Manager object used by <see cref="Efl.Ui.Spotlight.Container"/> to handle rendering and animation of its sub-widgets, and user interaction.
21 /// For instance, changes to the current sub-widget in the spotlight (<see cref="Efl.Ui.Spotlight.Container.ActiveIndex"/>) can be animated with a transition. This object can also handle user interaction. For example, dragging the sub-widget to one side to get to a different sub-widget (like an smartphone home screen). Such user interactions should end up setting a new <see cref="Efl.Ui.Spotlight.Container.ActiveIndex"/>. During a transition, the evolution of the current position should be exposed by emitting <c>pos_update</c> events.</summary>
22 [Efl.Ui.Spotlight.Manager.NativeMethods]
23 [Efl.Eo.BindingEntity]
24 public abstract class Manager : Efl.Object
26 ///<summary>Pointer to the native class description.</summary>
27 public override System.IntPtr NativeClass
31 if (((object)this).GetType() == typeof(Manager))
33 return GetEflClassStatic();
37 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
42 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
43 efl_ui_spotlight_manager_class_get();
44 /// <summary>Initializes a new instance of the <see cref="Manager"/> class.</summary>
45 /// <param name="parent">Parent instance.</param>
46 public Manager(Efl.Object parent= null
47 ) : base(efl_ui_spotlight_manager_class_get(), parent)
49 FinishInstantiation();
52 /// <summary>Constructor to be used when objects are expected to be constructed from native code.</summary>
53 /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
54 protected Manager(ConstructingHandle ch) : base(ch)
58 /// <summary>Initializes a new instance of the <see cref="Manager"/> class.
59 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
60 /// <param name="wh">The native pointer to be wrapped.</param>
61 protected Manager(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
65 [Efl.Eo.PrivateNativeClass]
66 private class ManagerRealized : Manager
68 private ManagerRealized(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
72 /// <summary>Initializes a new instance of the <see cref="Manager"/> class.
73 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
74 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
75 /// <param name="parent">The Efl.Object parent of this instance.</param>
76 protected Manager(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
80 /// <summary>Index of the sub-widget currently being displayed. Fractional values indicate a position in-between sub-widgets. For instance, when transitioning from sub-widget 2 to sub-widget 3, this event should be emitted with monotonically increasing values ranging from 2.0 to 3.0. Animations can perform any movement they want, but the reported <c>pos_update</c> must move in the same direction.</summary>
81 public event EventHandler<Efl.Ui.Spotlight.ManagerPosUpdateEvt_Args> PosUpdateEvt
85 lock (eflBindingEventLock)
87 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
89 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
92 Efl.Ui.Spotlight.ManagerPosUpdateEvt_Args args = new Efl.Ui.Spotlight.ManagerPosUpdateEvt_Args();
93 args.arg = Eina.PrimitiveConversion.PointerToManaged<double>(evt.Info);
96 value?.Invoke(obj, args);
100 Eina.Log.Error(e.ToString());
101 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
106 string key = "_EFL_UI_SPOTLIGHT_MANAGER_EVENT_POS_UPDATE";
107 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
113 lock (eflBindingEventLock)
115 string key = "_EFL_UI_SPOTLIGHT_MANAGER_EVENT_POS_UPDATE";
116 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
120 ///<summary>Method to raise event PosUpdateEvt.</summary>
121 public void OnPosUpdateEvt(Efl.Ui.Spotlight.ManagerPosUpdateEvt_Args e)
123 var key = "_EFL_UI_SPOTLIGHT_MANAGER_EVENT_POS_UPDATE";
124 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
125 if (desc == IntPtr.Zero)
127 Eina.Log.Error($"Failed to get native event {key}");
131 IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg);
134 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
138 Marshal.FreeHGlobal(info);
141 /// <summary>Will be called whenever the <see cref="Efl.Ui.Spotlight.Container.SpotlightSize"/> changes so the <see cref="Efl.Ui.Spotlight.Manager"/> can update itself.</summary>
142 /// <param name="size">The new size of the sub-widgets.</param>
143 virtual public void SetSize(Eina.Size2D size) {
144 Eina.Size2D.NativeStruct _in_size = size;
145 Efl.Ui.Spotlight.Manager.NativeMethods.efl_ui_spotlight_manager_size_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_size);
146 Eina.Error.RaiseIfUnhandledException();
148 /// <summary>This flag can be used to disable animations.</summary>
149 /// <returns><c>true</c> if you want animations to happen, <c>false</c> otherwise.</returns>
150 virtual public bool GetAnimationEnabled() {
151 var _ret_var = Efl.Ui.Spotlight.Manager.NativeMethods.efl_ui_spotlight_manager_animation_enabled_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
152 Eina.Error.RaiseIfUnhandledException();
155 /// <summary>This flag can be used to disable animations.</summary>
156 /// <param name="enable"><c>true</c> if you want animations to happen, <c>false</c> otherwise.</param>
157 virtual public void SetAnimationEnabled(bool enable) {
158 Efl.Ui.Spotlight.Manager.NativeMethods.efl_ui_spotlight_manager_animation_enabled_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),enable);
159 Eina.Error.RaiseIfUnhandledException();
161 /// <summary>This method is called the first time an <see cref="Efl.Ui.Spotlight.Manager"/> is assigned to an <see cref="Efl.Ui.Spotlight.Container"/>, binding them together. The manager can read the current content of the container, subscribe to events, or do any initialization it requires.</summary>
162 /// <param name="spotlight">The container to bind the manager to.</param>
163 /// <param name="group">The graphical group where the views should be added with <see cref="Efl.Canvas.Group.AddGroupMember"/> and removed with <see cref="Efl.Canvas.Group.GroupMemberRemove"/>.</param>
164 virtual public void Bind(Efl.Ui.Spotlight.Container spotlight, Efl.Canvas.Group group) {
165 Efl.Ui.Spotlight.Manager.NativeMethods.efl_ui_spotlight_manager_bind_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),spotlight, group);
166 Eina.Error.RaiseIfUnhandledException();
168 /// <summary>A <c>subobj</c> has been added at position <c>index</c> in the bound container.
169 /// The manager should check the container's <see cref="Efl.Ui.Spotlight.Container.ActiveIndex"/> since indices might have shifted due to the insertion of the new object.</summary>
170 /// <param name="subobj">The new object that has been added to the container.</param>
171 /// <param name="index">The index of the new object in the container's list.</param>
172 virtual public void AddContent(Efl.Gfx.IEntity subobj, int index) {
173 Efl.Ui.Spotlight.Manager.NativeMethods.efl_ui_spotlight_manager_content_add_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, index);
174 Eina.Error.RaiseIfUnhandledException();
176 /// <summary>The <c>subobj</c> at position <c>index</c> in the bound container has been removed.
177 /// The manager should check the container's <see cref="Efl.Ui.Spotlight.Container.ActiveIndex"/> since indices might have shifted due to the removal of the object.</summary>
178 /// <param name="subobj">The object being removed from the container.</param>
179 /// <param name="index">The index this object had in the container's list.</param>
180 virtual public void DelContent(Efl.Gfx.IEntity subobj, int index) {
181 Efl.Ui.Spotlight.Manager.NativeMethods.efl_ui_spotlight_manager_content_del_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, index);
182 Eina.Error.RaiseIfUnhandledException();
184 /// <summary>Switch from one sub-widget to another. If there was no previous sub-widget, <c>from</c> might be -1. This function should display an animation if the <see cref="Efl.Ui.Spotlight.Manager"/> supports them.</summary>
185 /// <param name="from">Index of the starting sub-widget in the container's list. Might be -1 if unknown.</param>
186 /// <param name="to">Index of the target sub-widget in the container's list.</param>
187 virtual public void SwitchTo(int from, int to) {
188 Efl.Ui.Spotlight.Manager.NativeMethods.efl_ui_spotlight_manager_switch_to_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),from, to);
189 Eina.Error.RaiseIfUnhandledException();
191 /// <summary>Will be called whenever the <see cref="Efl.Ui.Spotlight.Container.SpotlightSize"/> changes so the <see cref="Efl.Ui.Spotlight.Manager"/> can update itself.</summary>
192 /// <value>The new size of the sub-widgets.</value>
193 public Eina.Size2D Size {
194 set { SetSize(value); }
196 /// <summary>This flag can be used to disable animations.</summary>
197 /// <value><c>true</c> if you want animations to happen, <c>false</c> otherwise.</value>
198 public bool AnimationEnabled {
199 get { return GetAnimationEnabled(); }
200 set { SetAnimationEnabled(value); }
202 private static IntPtr GetEflClassStatic()
204 return Efl.Ui.Spotlight.Manager.efl_ui_spotlight_manager_class_get();
206 /// <summary>Wrapper for native methods and virtual method delegates.
207 /// For internal use by generated code only.</summary>
208 public new class NativeMethods : Efl.Object.NativeMethods
210 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary);
211 /// <summary>Gets the list of Eo operations to override.</summary>
212 /// <returns>The list of Eo operations to be overload.</returns>
213 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
215 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
216 var methods = Efl.Eo.Globals.GetUserMethods(type);
218 if (efl_ui_spotlight_manager_size_set_static_delegate == null)
220 efl_ui_spotlight_manager_size_set_static_delegate = new efl_ui_spotlight_manager_size_set_delegate(size_set);
223 if (methods.FirstOrDefault(m => m.Name == "SetSize") != null)
225 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spotlight_manager_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spotlight_manager_size_set_static_delegate) });
228 if (efl_ui_spotlight_manager_animation_enabled_get_static_delegate == null)
230 efl_ui_spotlight_manager_animation_enabled_get_static_delegate = new efl_ui_spotlight_manager_animation_enabled_get_delegate(animation_enabled_get);
233 if (methods.FirstOrDefault(m => m.Name == "GetAnimationEnabled") != null)
235 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spotlight_manager_animation_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spotlight_manager_animation_enabled_get_static_delegate) });
238 if (efl_ui_spotlight_manager_animation_enabled_set_static_delegate == null)
240 efl_ui_spotlight_manager_animation_enabled_set_static_delegate = new efl_ui_spotlight_manager_animation_enabled_set_delegate(animation_enabled_set);
243 if (methods.FirstOrDefault(m => m.Name == "SetAnimationEnabled") != null)
245 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spotlight_manager_animation_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spotlight_manager_animation_enabled_set_static_delegate) });
248 if (efl_ui_spotlight_manager_bind_static_delegate == null)
250 efl_ui_spotlight_manager_bind_static_delegate = new efl_ui_spotlight_manager_bind_delegate(bind);
253 if (methods.FirstOrDefault(m => m.Name == "Bind") != null)
255 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spotlight_manager_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spotlight_manager_bind_static_delegate) });
258 if (efl_ui_spotlight_manager_content_add_static_delegate == null)
260 efl_ui_spotlight_manager_content_add_static_delegate = new efl_ui_spotlight_manager_content_add_delegate(content_add);
263 if (methods.FirstOrDefault(m => m.Name == "AddContent") != null)
265 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spotlight_manager_content_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spotlight_manager_content_add_static_delegate) });
268 if (efl_ui_spotlight_manager_content_del_static_delegate == null)
270 efl_ui_spotlight_manager_content_del_static_delegate = new efl_ui_spotlight_manager_content_del_delegate(content_del);
273 if (methods.FirstOrDefault(m => m.Name == "DelContent") != null)
275 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spotlight_manager_content_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spotlight_manager_content_del_static_delegate) });
278 if (efl_ui_spotlight_manager_switch_to_static_delegate == null)
280 efl_ui_spotlight_manager_switch_to_static_delegate = new efl_ui_spotlight_manager_switch_to_delegate(switch_to);
283 if (methods.FirstOrDefault(m => m.Name == "SwitchTo") != null)
285 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spotlight_manager_switch_to"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spotlight_manager_switch_to_static_delegate) });
288 descs.AddRange(base.GetEoOps(type));
291 /// <summary>Returns the Eo class for the native methods of this class.</summary>
292 /// <returns>The native class pointer.</returns>
293 public override IntPtr GetEflClass()
295 return Efl.Ui.Spotlight.Manager.efl_ui_spotlight_manager_class_get();
298 #pragma warning disable CA1707, CS1591, SA1300, SA1600
301 private delegate void efl_ui_spotlight_manager_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size);
304 public delegate void efl_ui_spotlight_manager_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size);
306 public static Efl.Eo.FunctionWrapper<efl_ui_spotlight_manager_size_set_api_delegate> efl_ui_spotlight_manager_size_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_spotlight_manager_size_set_api_delegate>(Module, "efl_ui_spotlight_manager_size_set");
308 private static void size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size)
310 Eina.Log.Debug("function efl_ui_spotlight_manager_size_set was called");
311 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
314 Eina.Size2D _in_size = size;
318 ((Manager)ws.Target).SetSize(_in_size);
322 Eina.Log.Warning($"Callback error: {e.ToString()}");
323 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
330 efl_ui_spotlight_manager_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size);
334 private static efl_ui_spotlight_manager_size_set_delegate efl_ui_spotlight_manager_size_set_static_delegate;
336 [return: MarshalAs(UnmanagedType.U1)]
337 private delegate bool efl_ui_spotlight_manager_animation_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd);
339 [return: MarshalAs(UnmanagedType.U1)]
340 public delegate bool efl_ui_spotlight_manager_animation_enabled_get_api_delegate(System.IntPtr obj);
342 public static Efl.Eo.FunctionWrapper<efl_ui_spotlight_manager_animation_enabled_get_api_delegate> efl_ui_spotlight_manager_animation_enabled_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_spotlight_manager_animation_enabled_get_api_delegate>(Module, "efl_ui_spotlight_manager_animation_enabled_get");
344 private static bool animation_enabled_get(System.IntPtr obj, System.IntPtr pd)
346 Eina.Log.Debug("function efl_ui_spotlight_manager_animation_enabled_get was called");
347 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
350 bool _ret_var = default(bool);
353 _ret_var = ((Manager)ws.Target).GetAnimationEnabled();
357 Eina.Log.Warning($"Callback error: {e.ToString()}");
358 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
366 return efl_ui_spotlight_manager_animation_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
370 private static efl_ui_spotlight_manager_animation_enabled_get_delegate efl_ui_spotlight_manager_animation_enabled_get_static_delegate;
373 private delegate void efl_ui_spotlight_manager_animation_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable);
376 public delegate void efl_ui_spotlight_manager_animation_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable);
378 public static Efl.Eo.FunctionWrapper<efl_ui_spotlight_manager_animation_enabled_set_api_delegate> efl_ui_spotlight_manager_animation_enabled_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_spotlight_manager_animation_enabled_set_api_delegate>(Module, "efl_ui_spotlight_manager_animation_enabled_set");
380 private static void animation_enabled_set(System.IntPtr obj, System.IntPtr pd, bool enable)
382 Eina.Log.Debug("function efl_ui_spotlight_manager_animation_enabled_set was called");
383 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
389 ((Manager)ws.Target).SetAnimationEnabled(enable);
393 Eina.Log.Warning($"Callback error: {e.ToString()}");
394 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
401 efl_ui_spotlight_manager_animation_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable);
405 private static efl_ui_spotlight_manager_animation_enabled_set_delegate efl_ui_spotlight_manager_animation_enabled_set_static_delegate;
408 private delegate void efl_ui_spotlight_manager_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.Spotlight.Container spotlight, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Canvas.Group group);
411 public delegate void efl_ui_spotlight_manager_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.Spotlight.Container spotlight, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Canvas.Group group);
413 public static Efl.Eo.FunctionWrapper<efl_ui_spotlight_manager_bind_api_delegate> efl_ui_spotlight_manager_bind_ptr = new Efl.Eo.FunctionWrapper<efl_ui_spotlight_manager_bind_api_delegate>(Module, "efl_ui_spotlight_manager_bind");
415 private static void bind(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Spotlight.Container spotlight, Efl.Canvas.Group group)
417 Eina.Log.Debug("function efl_ui_spotlight_manager_bind was called");
418 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
424 ((Manager)ws.Target).Bind(spotlight, group);
428 Eina.Log.Warning($"Callback error: {e.ToString()}");
429 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
436 efl_ui_spotlight_manager_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), spotlight, group);
440 private static efl_ui_spotlight_manager_bind_delegate efl_ui_spotlight_manager_bind_static_delegate;
443 private delegate void efl_ui_spotlight_manager_content_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj, int index);
446 public delegate void efl_ui_spotlight_manager_content_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj, int index);
448 public static Efl.Eo.FunctionWrapper<efl_ui_spotlight_manager_content_add_api_delegate> efl_ui_spotlight_manager_content_add_ptr = new Efl.Eo.FunctionWrapper<efl_ui_spotlight_manager_content_add_api_delegate>(Module, "efl_ui_spotlight_manager_content_add");
450 private static void content_add(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index)
452 Eina.Log.Debug("function efl_ui_spotlight_manager_content_add was called");
453 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
459 ((Manager)ws.Target).AddContent(subobj, index);
463 Eina.Log.Warning($"Callback error: {e.ToString()}");
464 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
471 efl_ui_spotlight_manager_content_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index);
475 private static efl_ui_spotlight_manager_content_add_delegate efl_ui_spotlight_manager_content_add_static_delegate;
478 private delegate void efl_ui_spotlight_manager_content_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj, int index);
481 public delegate void efl_ui_spotlight_manager_content_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj, int index);
483 public static Efl.Eo.FunctionWrapper<efl_ui_spotlight_manager_content_del_api_delegate> efl_ui_spotlight_manager_content_del_ptr = new Efl.Eo.FunctionWrapper<efl_ui_spotlight_manager_content_del_api_delegate>(Module, "efl_ui_spotlight_manager_content_del");
485 private static void content_del(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index)
487 Eina.Log.Debug("function efl_ui_spotlight_manager_content_del was called");
488 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
494 ((Manager)ws.Target).DelContent(subobj, index);
498 Eina.Log.Warning($"Callback error: {e.ToString()}");
499 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
506 efl_ui_spotlight_manager_content_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index);
510 private static efl_ui_spotlight_manager_content_del_delegate efl_ui_spotlight_manager_content_del_static_delegate;
513 private delegate void efl_ui_spotlight_manager_switch_to_delegate(System.IntPtr obj, System.IntPtr pd, int from, int to);
516 public delegate void efl_ui_spotlight_manager_switch_to_api_delegate(System.IntPtr obj, int from, int to);
518 public static Efl.Eo.FunctionWrapper<efl_ui_spotlight_manager_switch_to_api_delegate> efl_ui_spotlight_manager_switch_to_ptr = new Efl.Eo.FunctionWrapper<efl_ui_spotlight_manager_switch_to_api_delegate>(Module, "efl_ui_spotlight_manager_switch_to");
520 private static void switch_to(System.IntPtr obj, System.IntPtr pd, int from, int to)
522 Eina.Log.Debug("function efl_ui_spotlight_manager_switch_to was called");
523 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
529 ((Manager)ws.Target).SwitchTo(from, to);
533 Eina.Log.Warning($"Callback error: {e.ToString()}");
534 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
541 efl_ui_spotlight_manager_switch_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from, to);
545 private static efl_ui_spotlight_manager_switch_to_delegate efl_ui_spotlight_manager_switch_to_static_delegate;
547 #pragma warning restore CA1707, CS1591, SA1300, SA1600