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>This defines the inheriting widget as focus layer
15 /// A focus layer is the uppermost one which received input and handles all focus related events for as long as it exists and is visible. It's NOT possible to escape this layer with focus movement.
17 /// Once the object is hidden or destroyed the focus will go back to the mainwindow, where it was before.</summary>
18 [Efl.Ui.Focus.ILayerConcrete.NativeMethods]
19 public interface ILayer :
20 Efl.Ui.IWidgetFocusManager ,
21 Efl.Eo.IWrapper, IDisposable
23 /// <summary>Enable property</summary>
24 /// <returns><c>true</c> to set enable the layer <c>false</c> to disable it</returns>
26 /// <summary>Enable property</summary>
27 /// <param name="v"><c>true</c> to set enable the layer <c>false</c> to disable it</param>
28 void SetEnable(bool v);
29 /// <summary>Constructor for setting the behaviour of the layer</summary>
30 /// <param name="enable_on_visible"><c>true</c> means layer will set itself once the inheriting widget becomes visible, <c>false</c> means the layer isn't enabled automatically</param>
31 /// <param name="cycle">If <c>true</c> the focus will cycle in the layer, if <c>false</c></param>
32 void GetBehaviour(out bool enable_on_visible, out bool cycle);
33 /// <summary>Constructor for setting the behaviour of the layer</summary>
34 /// <param name="enable_on_visible"><c>true</c> means layer will set itself once the inheriting widget becomes visible, <c>false</c> means the layer isn't enabled automatically</param>
35 /// <param name="cycle">If <c>true</c> the focus will cycle in the layer, if <c>false</c></param>
36 void SetBehaviour(bool enable_on_visible, bool cycle);
37 /// <summary>Enable property</summary>
38 /// <value><c>true</c> to set enable the layer <c>false</c> to disable it</value>
44 /// <summary>This defines the inheriting widget as focus layer
45 /// A focus layer is the uppermost one which received input and handles all focus related events for as long as it exists and is visible. It's NOT possible to escape this layer with focus movement.
47 /// Once the object is hidden or destroyed the focus will go back to the mainwindow, where it was before.</summary>
48 sealed public class ILayerConcrete :
51 , Efl.Ui.IWidgetFocusManager, Efl.Ui.Focus.IManager
53 ///<summary>Pointer to the native class description.</summary>
54 public System.IntPtr NativeClass
58 if (((object)this).GetType() == typeof(ILayerConcrete))
60 return GetEflClassStatic();
64 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
69 private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>();
70 private readonly object eventLock = new object();
71 private System.IntPtr handle;
72 ///<summary>Pointer to the native instance.</summary>
73 public System.IntPtr NativeHandle
75 get { return handle; }
78 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
79 efl_ui_focus_layer_mixin_get();
80 /// <summary>Initializes a new instance of the <see cref="ILayer"/> class.
81 /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
82 private ILayerConcrete(System.IntPtr raw)
86 ///<summary>Destructor.</summary>
92 ///<summary>Releases the underlying native instance.</summary>
93 private void Dispose(bool disposing)
95 if (handle != System.IntPtr.Zero)
100 IntPtr gcHandlePtr = IntPtr.Zero;
101 if (eoEvents.Count != 0)
103 GCHandle gcHandle = GCHandle.Alloc(eoEvents);
104 gcHandlePtr = GCHandle.ToIntPtr(gcHandle);
109 Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr);
113 Monitor.Enter(Efl.All.InitLock);
114 if (Efl.All.MainLoopInitialized)
116 Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr);
119 Monitor.Exit(Efl.All.InitLock);
125 ///<summary>Releases the underlying native instance.</summary>
126 public void Dispose()
129 GC.SuppressFinalize(this);
132 /// <summary>Verifies if the given object is equal to this one.</summary>
133 /// <param name="instance">The object to compare to.</param>
134 /// <returns>True if both objects point to the same native object.</returns>
135 public override bool Equals(object instance)
137 var other = instance as Efl.Object;
142 return this.NativeHandle == other.NativeHandle;
145 /// <summary>Gets the hash code for this object based on the native pointer it points to.</summary>
146 /// <returns>The value of the pointer, to be used as the hash code of this object.</returns>
147 public override int GetHashCode()
149 return this.NativeHandle.ToInt32();
152 /// <summary>Turns the native pointer into a string representation.</summary>
153 /// <returns>A string with the type and the native pointer for this object.</returns>
154 public override String ToString()
156 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
159 ///<summary>Adds a new event handler, registering it to the native event. For internal use only.</summary>
160 ///<param name="lib">The name of the native library definining the event.</param>
161 ///<param name="key">The name of the native event.</param>
162 ///<param name="evtCaller">Delegate to be called by native code on event raising.</param>
163 ///<param name="evtDelegate">Managed delegate that will be called by evtCaller on event raising.</param>
164 private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate)
166 IntPtr desc = Efl.EventDescription.GetNative(lib, key);
167 if (desc == IntPtr.Zero)
169 Eina.Log.Error($"Failed to get native event {key}");
172 if (eoEvents.ContainsKey((desc, evtDelegate)))
174 Eina.Log.Warning($"Event proxy for event {key} already registered!");
178 IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller);
179 if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero))
181 Eina.Log.Error($"Failed to add event proxy for event {key}");
185 eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller);
186 Eina.Error.RaiseIfUnhandledException();
189 ///<summary>Removes the given event handler for the given event. For internal use only.</summary>
190 ///<param name="lib">The name of the native library definining the event.</param>
191 ///<param name="key">The name of the native event.</param>
192 ///<param name="evtDelegate">The delegate to be removed.</param>
193 private void RemoveNativeEventHandler(string lib, string key, object evtDelegate)
195 IntPtr desc = Efl.EventDescription.GetNative(lib, key);
196 if (desc == IntPtr.Zero)
198 Eina.Log.Error($"Failed to get native event {key}");
202 var evtPair = (desc, evtDelegate);
203 if (eoEvents.TryGetValue(evtPair, out var caller))
205 if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero))
207 Eina.Log.Error($"Failed to remove event proxy for event {key}");
211 eoEvents.Remove(evtPair);
212 Eina.Error.RaiseIfUnhandledException();
216 Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered.");
220 /// <summary>Redirect object has changed, the old manager is passed as an event argument.
221 /// (Since EFL 1.22)</summary>
222 public event EventHandler<Efl.Ui.Focus.IManagerRedirectChangedEvt_Args> RedirectChangedEvt
228 var wRef = new WeakReference(this);
229 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
231 var obj = wRef.Target as Efl.Eo.IWrapper;
234 Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args();
235 args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete);
238 value?.Invoke(obj, args);
242 Eina.Log.Error(e.ToString());
243 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
248 string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED";
249 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
257 string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED";
258 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
262 ///<summary>Method to raise event RedirectChangedEvt.</summary>
263 public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e)
265 var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED";
266 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
267 if (desc == IntPtr.Zero)
269 Eina.Log.Error($"Failed to get native event {key}");
273 IntPtr info = e.arg.NativeHandle;
274 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
276 /// <summary>After this event, the manager object will calculate relations in the graph. Can be used to add / remove children in a lazy fashion.
277 /// (Since EFL 1.22)</summary>
278 public event EventHandler FlushPreEvt
284 var wRef = new WeakReference(this);
285 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
287 var obj = wRef.Target as Efl.Eo.IWrapper;
290 EventArgs args = EventArgs.Empty;
293 value?.Invoke(obj, args);
297 Eina.Log.Error(e.ToString());
298 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
303 string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE";
304 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
312 string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE";
313 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
317 ///<summary>Method to raise event FlushPreEvt.</summary>
318 public void OnFlushPreEvt(EventArgs e)
320 var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE";
321 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
322 if (desc == IntPtr.Zero)
324 Eina.Log.Error($"Failed to get native event {key}");
328 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
330 /// <summary>Cached relationship calculation results have been invalidated.
331 /// (Since EFL 1.22)</summary>
332 public event EventHandler CoordsDirtyEvt
338 var wRef = new WeakReference(this);
339 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
341 var obj = wRef.Target as Efl.Eo.IWrapper;
344 EventArgs args = EventArgs.Empty;
347 value?.Invoke(obj, args);
351 Eina.Log.Error(e.ToString());
352 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
357 string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY";
358 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
366 string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY";
367 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
371 ///<summary>Method to raise event CoordsDirtyEvt.</summary>
372 public void OnCoordsDirtyEvt(EventArgs e)
374 var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY";
375 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
376 if (desc == IntPtr.Zero)
378 Eina.Log.Error($"Failed to get native event {key}");
382 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
384 /// <summary>The manager_focus property has changed. The previously focused object is passed as an event argument.
385 /// (Since EFL 1.22)</summary>
386 public event EventHandler<Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args> ManagerFocusChangedEvt
392 var wRef = new WeakReference(this);
393 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
395 var obj = wRef.Target as Efl.Eo.IWrapper;
398 Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args();
399 args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete);
402 value?.Invoke(obj, args);
406 Eina.Log.Error(e.ToString());
407 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
412 string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED";
413 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
421 string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED";
422 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
426 ///<summary>Method to raise event ManagerFocusChangedEvt.</summary>
427 public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e)
429 var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED";
430 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
431 if (desc == IntPtr.Zero)
433 Eina.Log.Error($"Failed to get native event {key}");
437 IntPtr info = e.arg.NativeHandle;
438 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
440 /// <summary>Called when this focus manager is frozen or thawed, even_info being <c>true</c> indicates that it is now frozen, <c>false</c> indicates that it is thawed.
441 /// (Since EFL 1.22)</summary>
442 public event EventHandler<Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args> DirtyLogicFreezeChangedEvt
448 var wRef = new WeakReference(this);
449 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
451 var obj = wRef.Target as Efl.Eo.IWrapper;
454 Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args();
455 args.arg = evt.Info != IntPtr.Zero;
458 value?.Invoke(obj, args);
462 Eina.Log.Error(e.ToString());
463 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
468 string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED";
469 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
477 string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED";
478 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
482 ///<summary>Method to raise event DirtyLogicFreezeChangedEvt.</summary>
483 public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e)
485 var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED";
486 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
487 if (desc == IntPtr.Zero)
489 Eina.Log.Error($"Failed to get native event {key}");
493 IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0);
496 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
500 Marshal.FreeHGlobal(info);
503 /// <summary>Enable property</summary>
504 /// <returns><c>true</c> to set enable the layer <c>false</c> to disable it</returns>
505 public bool GetEnable() {
506 var _ret_var = Efl.Ui.Focus.ILayerConcrete.NativeMethods.efl_ui_focus_layer_enable_get_ptr.Value.Delegate(this.NativeHandle);
507 Eina.Error.RaiseIfUnhandledException();
510 /// <summary>Enable property</summary>
511 /// <param name="v"><c>true</c> to set enable the layer <c>false</c> to disable it</param>
512 public void SetEnable(bool v) {
513 Efl.Ui.Focus.ILayerConcrete.NativeMethods.efl_ui_focus_layer_enable_set_ptr.Value.Delegate(this.NativeHandle,v);
514 Eina.Error.RaiseIfUnhandledException();
516 /// <summary>Constructor for setting the behaviour of the layer</summary>
517 /// <param name="enable_on_visible"><c>true</c> means layer will set itself once the inheriting widget becomes visible, <c>false</c> means the layer isn't enabled automatically</param>
518 /// <param name="cycle">If <c>true</c> the focus will cycle in the layer, if <c>false</c></param>
519 public void GetBehaviour(out bool enable_on_visible, out bool cycle) {
520 Efl.Ui.Focus.ILayerConcrete.NativeMethods.efl_ui_focus_layer_behaviour_get_ptr.Value.Delegate(this.NativeHandle,out enable_on_visible, out cycle);
521 Eina.Error.RaiseIfUnhandledException();
523 /// <summary>Constructor for setting the behaviour of the layer</summary>
524 /// <param name="enable_on_visible"><c>true</c> means layer will set itself once the inheriting widget becomes visible, <c>false</c> means the layer isn't enabled automatically</param>
525 /// <param name="cycle">If <c>true</c> the focus will cycle in the layer, if <c>false</c></param>
526 public void SetBehaviour(bool enable_on_visible, bool cycle) {
527 Efl.Ui.Focus.ILayerConcrete.NativeMethods.efl_ui_focus_layer_behaviour_set_ptr.Value.Delegate(this.NativeHandle,enable_on_visible, cycle);
528 Eina.Error.RaiseIfUnhandledException();
530 /// <summary>If the widget needs a focus manager, this function will be called.
531 /// It can be used and overriden to inject your own manager or set custom options on the focus manager.
532 /// (Since EFL 1.22)</summary>
533 /// <param name="root">The logical root object for focus.</param>
534 /// <returns>The focus manager.</returns>
535 public Efl.Ui.Focus.IManager FocusManagerCreate(Efl.Ui.Focus.IObject root) {
536 var _ret_var = Efl.Ui.IWidgetFocusManagerConcrete.NativeMethods.efl_ui_widget_focus_manager_create_ptr.Value.Delegate(this.NativeHandle,root);
537 Eina.Error.RaiseIfUnhandledException();
540 /// <summary>The element which is currently focused by this manager
541 /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When <c>focus</c> is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change.
542 /// (Since EFL 1.22)</summary>
543 /// <returns>Currently focused element.</returns>
544 public Efl.Ui.Focus.IObject GetManagerFocus() {
545 var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_get_ptr.Value.Delegate(this.NativeHandle);
546 Eina.Error.RaiseIfUnhandledException();
549 /// <summary>The element which is currently focused by this manager
550 /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When <c>focus</c> is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change.
551 /// (Since EFL 1.22)</summary>
552 /// <param name="focus">Currently focused element.</param>
553 public void SetManagerFocus(Efl.Ui.Focus.IObject focus) {
554 Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_set_ptr.Value.Delegate(this.NativeHandle,focus);
555 Eina.Error.RaiseIfUnhandledException();
557 /// <summary>Add another manager to serve the move requests.
558 /// If this value is set, all move requests are redirected to this manager object. Set it to <c>null</c> once nothing should be redirected anymore.
559 /// (Since EFL 1.22)</summary>
560 /// <returns>The redirect manager.</returns>
561 public Efl.Ui.Focus.IManager GetRedirect() {
562 var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(this.NativeHandle);
563 Eina.Error.RaiseIfUnhandledException();
566 /// <summary>Add another manager to serve the move requests.
567 /// If this value is set, all move requests are redirected to this manager object. Set it to <c>null</c> once nothing should be redirected anymore.
568 /// (Since EFL 1.22)</summary>
569 /// <param name="redirect">The redirect manager.</param>
570 public void SetRedirect(Efl.Ui.Focus.IManager redirect) {
571 Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(this.NativeHandle,redirect);
572 Eina.Error.RaiseIfUnhandledException();
574 /// <summary>The list of elements which are at the border of the graph.
575 /// This means one of the relations right,left or down,up are not set. This call flushes all changes. See <see cref="Efl.Ui.Focus.IManager.Move"/>
576 /// (Since EFL 1.22)</summary>
577 /// <returns>An iterator over the border objects.</returns>
578 public Eina.Iterator<Efl.Ui.Focus.IObject> GetBorderElements() {
579 var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(this.NativeHandle);
580 Eina.Error.RaiseIfUnhandledException();
581 return new Eina.Iterator<Efl.Ui.Focus.IObject>(_ret_var, false, false);
583 /// <summary>Get all elements that are at the border of the viewport
584 /// Every element returned by this is located inside the viewport rectangle, but has a right, left, down or up neighbor outside the viewport.
585 /// (Since EFL 1.22)</summary>
586 /// <param name="viewport">The rectangle defining the viewport.</param>
587 /// <returns>The list of border objects.</returns>
588 public Eina.Iterator<Efl.Ui.Focus.IObject> GetViewportElements(Eina.Rect viewport) {
589 Eina.Rect.NativeStruct _in_viewport = viewport;
590 var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(this.NativeHandle,_in_viewport);
591 Eina.Error.RaiseIfUnhandledException();
592 return new Eina.Iterator<Efl.Ui.Focus.IObject>(_ret_var, false, false);
594 /// <summary>Root node for all logical subtrees.
595 /// This property can only be set once.
596 /// (Since EFL 1.22)</summary>
597 /// <returns>Will be registered into this manager object.</returns>
598 public Efl.Ui.Focus.IObject GetRoot() {
599 var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_get_ptr.Value.Delegate(this.NativeHandle);
600 Eina.Error.RaiseIfUnhandledException();
603 /// <summary>Root node for all logical subtrees.
604 /// This property can only be set once.
605 /// (Since EFL 1.22)</summary>
606 /// <param name="root">Will be registered into this manager object.</param>
607 /// <returns>If <c>true</c>, this is the root node</returns>
608 public bool SetRoot(Efl.Ui.Focus.IObject root) {
609 var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_set_ptr.Value.Delegate(this.NativeHandle,root);
610 Eina.Error.RaiseIfUnhandledException();
613 /// <summary>Move the focus in the given direction.
614 /// This call flushes all changes. This means all changes between the last flush and now are computed.
615 /// (Since EFL 1.22)</summary>
616 /// <param name="direction">The direction to move to.</param>
617 /// <returns>The element which is now focused.</returns>
618 public Efl.Ui.Focus.IObject Move(Efl.Ui.Focus.Direction direction) {
619 var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_move_ptr.Value.Delegate(this.NativeHandle,direction);
620 Eina.Error.RaiseIfUnhandledException();
623 /// <summary>Return the object in the <c>direction</c> from <c>child</c>.
624 /// (Since EFL 1.22)</summary>
625 /// <param name="direction">Direction to move focus.</param>
626 /// <param name="child">The child to move from. Pass <c>null</c> to indicate the currently focused child.</param>
627 /// <param name="logical">Wether you want to have a logical node as result or a non-logical. Note, in a <see cref="Efl.Ui.Focus.IManager.Move"/> call no logical node will get focus.</param>
628 /// <returns>Object that would receive focus if moved in the given direction.</returns>
629 public Efl.Ui.Focus.IObject MoveRequest(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) {
630 var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_move_ptr.Value.Delegate(this.NativeHandle,direction, child, logical);
631 Eina.Error.RaiseIfUnhandledException();
634 /// <summary>Return the widget in the direction next.
635 /// The returned widget is a child of <c>root</c>. It's guaranteed that child will not be prepared once again, so you can call this function inside a <see cref="Efl.Ui.Focus.IObject.SetupOrder"/> call.
636 /// (Since EFL 1.22)</summary>
637 /// <param name="root">Parent for returned child.</param>
638 /// <returns>Child of passed parameter.</returns>
639 public Efl.Ui.Focus.IObject RequestSubchild(Efl.Ui.Focus.IObject root) {
640 var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(this.NativeHandle,root);
641 Eina.Error.RaiseIfUnhandledException();
644 /// <summary>This will fetch the data from a registered node.
645 /// Be aware this function will trigger a computation of all dirty nodes.
646 /// (Since EFL 1.22)</summary>
647 /// <param name="child">The child object to inspect.</param>
648 /// <returns>The list of relations starting from <c>child</c>.</returns>
649 public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) {
650 var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_fetch_ptr.Value.Delegate(this.NativeHandle,child);
651 Eina.Error.RaiseIfUnhandledException();
652 var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged<Efl.Ui.Focus.Relations>(_ret_var);
653 Marshal.FreeHGlobal(_ret_var);
656 /// <summary>Return the last logical object.
657 /// The returned object is the last object that would be returned if you start at the root and move the direction into next.
658 /// (Since EFL 1.22)</summary>
659 /// <returns>Last object.</returns>
660 public Efl.Ui.Focus.ManagerLogicalEndDetail LogicalEnd() {
661 var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_logical_end_ptr.Value.Delegate(this.NativeHandle);
662 Eina.Error.RaiseIfUnhandledException();
665 /// <summary>Reset the history stack of this manager object. This means the uppermost element will be unfocused, and all other elements will be removed from the remembered list.
666 /// You should focus another element immediately after calling this, in order to always have a focused object.
667 /// (Since EFL 1.22)</summary>
668 public void ResetHistory() {
669 Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_reset_history_ptr.Value.Delegate(this.NativeHandle);
670 Eina.Error.RaiseIfUnhandledException();
672 /// <summary>Remove the uppermost history element, and focus the previous one.
673 /// If there is an element that was focused before, it will be used. Otherwise, the best fitting element from the registered elements will be focused.
674 /// (Since EFL 1.22)</summary>
675 public void PopHistoryStack() {
676 Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(this.NativeHandle);
677 Eina.Error.RaiseIfUnhandledException();
679 /// <summary>Called when this manager is set as redirect.
680 /// In case that this is called as an result of a move call, <c>direction</c> and <c>entry</c> will be set to the direction of the move call, and the <c>entry</c> object will be set to the object that had this manager as redirect property.
681 /// (Since EFL 1.22)</summary>
682 /// <param name="direction">The direction in which this should be setup.</param>
683 /// <param name="entry">The object that caused this manager to be redirect.</param>
684 public void SetupOnFirstTouch(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) {
685 Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(this.NativeHandle,direction, entry);
686 Eina.Error.RaiseIfUnhandledException();
688 /// <summary>This disables the cache invalidation when an object is moved.
689 /// Even if an object is moved, the focus manager will not recalculate its relations. This can be used when you know that the set of widgets in the focus manager is moved the same way, so the relations between the widets in the set do not change and the complex calculations can be avoided. Use <see cref="Efl.Ui.Focus.IManager.DirtyLogicUnfreeze"/> to re-enable relationship calculation.
690 /// (Since EFL 1.22)</summary>
691 public void FreezeDirtyLogic() {
692 Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(this.NativeHandle);
693 Eina.Error.RaiseIfUnhandledException();
695 /// <summary>This enables the cache invalidation when an object is moved.
696 /// This is the counterpart to <see cref="Efl.Ui.Focus.IManager.FreezeDirtyLogic"/>.
697 /// (Since EFL 1.22)</summary>
698 public void DirtyLogicUnfreeze() {
699 Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(this.NativeHandle);
700 Eina.Error.RaiseIfUnhandledException();
702 /// <summary>Enable property</summary>
703 /// <value><c>true</c> to set enable the layer <c>false</c> to disable it</value>
705 get { return GetEnable(); }
706 set { SetEnable(value); }
708 /// <summary>The element which is currently focused by this manager
709 /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When <c>focus</c> is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change.
710 /// (Since EFL 1.22)</summary>
711 /// <value>Currently focused element.</value>
712 public Efl.Ui.Focus.IObject ManagerFocus {
713 get { return GetManagerFocus(); }
714 set { SetManagerFocus(value); }
716 /// <summary>Add another manager to serve the move requests.
717 /// If this value is set, all move requests are redirected to this manager object. Set it to <c>null</c> once nothing should be redirected anymore.
718 /// (Since EFL 1.22)</summary>
719 /// <value>The redirect manager.</value>
720 public Efl.Ui.Focus.IManager Redirect {
721 get { return GetRedirect(); }
722 set { SetRedirect(value); }
724 /// <summary>The list of elements which are at the border of the graph.
725 /// This means one of the relations right,left or down,up are not set. This call flushes all changes. See <see cref="Efl.Ui.Focus.IManager.Move"/>
726 /// (Since EFL 1.22)</summary>
727 /// <value>An iterator over the border objects.</value>
728 public Eina.Iterator<Efl.Ui.Focus.IObject> BorderElements {
729 get { return GetBorderElements(); }
731 /// <summary>Root node for all logical subtrees.
732 /// This property can only be set once.
733 /// (Since EFL 1.22)</summary>
734 /// <value>Will be registered into this manager object.</value>
735 public Efl.Ui.Focus.IObject Root {
736 get { return GetRoot(); }
737 set { SetRoot(value); }
739 private static IntPtr GetEflClassStatic()
741 return Efl.Ui.Focus.ILayerConcrete.efl_ui_focus_layer_mixin_get();
743 /// <summary>Wrapper for native methods and virtual method delegates.
744 /// For internal use by generated code only.</summary>
745 public class NativeMethods : Efl.Eo.NativeClass
747 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary);
748 /// <summary>Gets the list of Eo operations to override.</summary>
749 /// <returns>The list of Eo operations to be overload.</returns>
750 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
752 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
753 var methods = Efl.Eo.Globals.GetUserMethods(type);
755 if (efl_ui_focus_layer_enable_get_static_delegate == null)
757 efl_ui_focus_layer_enable_get_static_delegate = new efl_ui_focus_layer_enable_get_delegate(enable_get);
760 if (methods.FirstOrDefault(m => m.Name == "GetEnable") != null)
762 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_enable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_enable_get_static_delegate) });
765 if (efl_ui_focus_layer_enable_set_static_delegate == null)
767 efl_ui_focus_layer_enable_set_static_delegate = new efl_ui_focus_layer_enable_set_delegate(enable_set);
770 if (methods.FirstOrDefault(m => m.Name == "SetEnable") != null)
772 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_enable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_enable_set_static_delegate) });
775 if (efl_ui_focus_layer_behaviour_get_static_delegate == null)
777 efl_ui_focus_layer_behaviour_get_static_delegate = new efl_ui_focus_layer_behaviour_get_delegate(behaviour_get);
780 if (methods.FirstOrDefault(m => m.Name == "GetBehaviour") != null)
782 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_behaviour_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_behaviour_get_static_delegate) });
785 if (efl_ui_focus_layer_behaviour_set_static_delegate == null)
787 efl_ui_focus_layer_behaviour_set_static_delegate = new efl_ui_focus_layer_behaviour_set_delegate(behaviour_set);
790 if (methods.FirstOrDefault(m => m.Name == "SetBehaviour") != null)
792 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_behaviour_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_behaviour_set_static_delegate) });
795 if (efl_ui_widget_focus_manager_create_static_delegate == null)
797 efl_ui_widget_focus_manager_create_static_delegate = new efl_ui_widget_focus_manager_create_delegate(focus_manager_create);
800 if (methods.FirstOrDefault(m => m.Name == "FocusManagerCreate") != null)
802 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_manager_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_manager_create_static_delegate) });
805 if (efl_ui_focus_manager_focus_get_static_delegate == null)
807 efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get);
810 if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null)
812 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate) });
815 if (efl_ui_focus_manager_focus_set_static_delegate == null)
817 efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set);
820 if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null)
822 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate) });
825 if (efl_ui_focus_manager_redirect_get_static_delegate == null)
827 efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get);
830 if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null)
832 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate) });
835 if (efl_ui_focus_manager_redirect_set_static_delegate == null)
837 efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set);
840 if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null)
842 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate) });
845 if (efl_ui_focus_manager_border_elements_get_static_delegate == null)
847 efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get);
850 if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null)
852 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate) });
855 if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null)
857 efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get);
860 if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null)
862 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate) });
865 if (efl_ui_focus_manager_root_get_static_delegate == null)
867 efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get);
870 if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null)
872 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate) });
875 if (efl_ui_focus_manager_root_set_static_delegate == null)
877 efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set);
880 if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null)
882 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate) });
885 if (efl_ui_focus_manager_move_static_delegate == null)
887 efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move);
890 if (methods.FirstOrDefault(m => m.Name == "Move") != null)
892 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate) });
895 if (efl_ui_focus_manager_request_move_static_delegate == null)
897 efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move);
900 if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null)
902 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate) });
905 if (efl_ui_focus_manager_request_subchild_static_delegate == null)
907 efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild);
910 if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null)
912 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate) });
915 if (efl_ui_focus_manager_fetch_static_delegate == null)
917 efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch);
920 if (methods.FirstOrDefault(m => m.Name == "Fetch") != null)
922 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate) });
925 if (efl_ui_focus_manager_logical_end_static_delegate == null)
927 efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end);
930 if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null)
932 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate) });
935 if (efl_ui_focus_manager_reset_history_static_delegate == null)
937 efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history);
940 if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null)
942 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate) });
945 if (efl_ui_focus_manager_pop_history_stack_static_delegate == null)
947 efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack);
950 if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null)
952 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate) });
955 if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null)
957 efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch);
960 if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null)
962 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate) });
965 if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null)
967 efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze);
970 if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null)
972 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate) });
975 if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null)
977 efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze);
980 if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null)
982 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate) });
987 /// <summary>Returns the Eo class for the native methods of this class.</summary>
988 /// <returns>The native class pointer.</returns>
989 public override IntPtr GetEflClass()
991 return Efl.Ui.Focus.ILayerConcrete.efl_ui_focus_layer_mixin_get();
994 #pragma warning disable CA1707, SA1300, SA1600
996 [return: MarshalAs(UnmanagedType.U1)]
997 private delegate bool efl_ui_focus_layer_enable_get_delegate(System.IntPtr obj, System.IntPtr pd);
999 [return: MarshalAs(UnmanagedType.U1)]
1000 public delegate bool efl_ui_focus_layer_enable_get_api_delegate(System.IntPtr obj);
1002 public static Efl.Eo.FunctionWrapper<efl_ui_focus_layer_enable_get_api_delegate> efl_ui_focus_layer_enable_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_layer_enable_get_api_delegate>(Module, "efl_ui_focus_layer_enable_get");
1004 private static bool enable_get(System.IntPtr obj, System.IntPtr pd)
1006 Eina.Log.Debug("function efl_ui_focus_layer_enable_get was called");
1007 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1008 if (wrapper != null)
1010 bool _ret_var = default(bool);
1013 _ret_var = ((ILayerConcrete)wrapper).GetEnable();
1017 Eina.Log.Warning($"Callback error: {e.ToString()}");
1018 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1026 return efl_ui_focus_layer_enable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1030 private static efl_ui_focus_layer_enable_get_delegate efl_ui_focus_layer_enable_get_static_delegate;
1033 private delegate void efl_ui_focus_layer_enable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool v);
1036 public delegate void efl_ui_focus_layer_enable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool v);
1038 public static Efl.Eo.FunctionWrapper<efl_ui_focus_layer_enable_set_api_delegate> efl_ui_focus_layer_enable_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_layer_enable_set_api_delegate>(Module, "efl_ui_focus_layer_enable_set");
1040 private static void enable_set(System.IntPtr obj, System.IntPtr pd, bool v)
1042 Eina.Log.Debug("function efl_ui_focus_layer_enable_set was called");
1043 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1044 if (wrapper != null)
1049 ((ILayerConcrete)wrapper).SetEnable(v);
1053 Eina.Log.Warning($"Callback error: {e.ToString()}");
1054 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1061 efl_ui_focus_layer_enable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v);
1065 private static efl_ui_focus_layer_enable_set_delegate efl_ui_focus_layer_enable_set_static_delegate;
1068 private delegate void efl_ui_focus_layer_behaviour_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] out bool cycle);
1071 public delegate void efl_ui_focus_layer_behaviour_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] out bool cycle);
1073 public static Efl.Eo.FunctionWrapper<efl_ui_focus_layer_behaviour_get_api_delegate> efl_ui_focus_layer_behaviour_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_layer_behaviour_get_api_delegate>(Module, "efl_ui_focus_layer_behaviour_get");
1075 private static void behaviour_get(System.IntPtr obj, System.IntPtr pd, out bool enable_on_visible, out bool cycle)
1077 Eina.Log.Debug("function efl_ui_focus_layer_behaviour_get was called");
1078 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1079 if (wrapper != null)
1081 enable_on_visible = default(bool); cycle = default(bool);
1084 ((ILayerConcrete)wrapper).GetBehaviour(out enable_on_visible, out cycle);
1088 Eina.Log.Warning($"Callback error: {e.ToString()}");
1089 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1096 efl_ui_focus_layer_behaviour_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out enable_on_visible, out cycle);
1100 private static efl_ui_focus_layer_behaviour_get_delegate efl_ui_focus_layer_behaviour_get_static_delegate;
1103 private delegate void efl_ui_focus_layer_behaviour_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] bool cycle);
1106 public delegate void efl_ui_focus_layer_behaviour_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] bool cycle);
1108 public static Efl.Eo.FunctionWrapper<efl_ui_focus_layer_behaviour_set_api_delegate> efl_ui_focus_layer_behaviour_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_layer_behaviour_set_api_delegate>(Module, "efl_ui_focus_layer_behaviour_set");
1110 private static void behaviour_set(System.IntPtr obj, System.IntPtr pd, bool enable_on_visible, bool cycle)
1112 Eina.Log.Debug("function efl_ui_focus_layer_behaviour_set was called");
1113 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1114 if (wrapper != null)
1119 ((ILayerConcrete)wrapper).SetBehaviour(enable_on_visible, cycle);
1123 Eina.Log.Warning($"Callback error: {e.ToString()}");
1124 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1131 efl_ui_focus_layer_behaviour_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable_on_visible, cycle);
1135 private static efl_ui_focus_layer_behaviour_set_delegate efl_ui_focus_layer_behaviour_set_static_delegate;
1137 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1138 private delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.Focus.IObject root);
1140 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1141 public delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.Focus.IObject root);
1143 public static Efl.Eo.FunctionWrapper<efl_ui_widget_focus_manager_create_api_delegate> efl_ui_widget_focus_manager_create_ptr = new Efl.Eo.FunctionWrapper<efl_ui_widget_focus_manager_create_api_delegate>(Module, "efl_ui_widget_focus_manager_create");
1145 private static Efl.Ui.Focus.IManager focus_manager_create(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root)
1147 Eina.Log.Debug("function efl_ui_widget_focus_manager_create was called");
1148 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1149 if (wrapper != null)
1151 Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager);
1154 _ret_var = ((ILayerConcrete)wrapper).FocusManagerCreate(root);
1158 Eina.Log.Warning($"Callback error: {e.ToString()}");
1159 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1167 return efl_ui_widget_focus_manager_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root);
1171 private static efl_ui_widget_focus_manager_create_delegate efl_ui_widget_focus_manager_create_static_delegate;
1173 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1174 private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd);
1176 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1177 public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj);
1179 public static Efl.Eo.FunctionWrapper<efl_ui_focus_manager_focus_get_api_delegate> efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_manager_focus_get_api_delegate>(Module, "efl_ui_focus_manager_focus_get");
1181 private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd)
1183 Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called");
1184 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1185 if (wrapper != null)
1187 Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject);
1190 _ret_var = ((ILayerConcrete)wrapper).GetManagerFocus();
1194 Eina.Log.Warning($"Callback error: {e.ToString()}");
1195 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1203 return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1207 private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate;
1210 private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.Focus.IObject focus);
1213 public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.Focus.IObject focus);
1215 public static Efl.Eo.FunctionWrapper<efl_ui_focus_manager_focus_set_api_delegate> efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_manager_focus_set_api_delegate>(Module, "efl_ui_focus_manager_focus_set");
1217 private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus)
1219 Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called");
1220 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1221 if (wrapper != null)
1226 ((ILayerConcrete)wrapper).SetManagerFocus(focus);
1230 Eina.Log.Warning($"Callback error: {e.ToString()}");
1231 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1238 efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus);
1242 private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate;
1244 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1245 private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd);
1247 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1248 public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj);
1250 public static Efl.Eo.FunctionWrapper<efl_ui_focus_manager_redirect_get_api_delegate> efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_manager_redirect_get_api_delegate>(Module, "efl_ui_focus_manager_redirect_get");
1252 private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd)
1254 Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called");
1255 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1256 if (wrapper != null)
1258 Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager);
1261 _ret_var = ((ILayerConcrete)wrapper).GetRedirect();
1265 Eina.Log.Warning($"Callback error: {e.ToString()}");
1266 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1274 return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1278 private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate;
1281 private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.Focus.IManager redirect);
1284 public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.Focus.IManager redirect);
1286 public static Efl.Eo.FunctionWrapper<efl_ui_focus_manager_redirect_set_api_delegate> efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_manager_redirect_set_api_delegate>(Module, "efl_ui_focus_manager_redirect_set");
1288 private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect)
1290 Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called");
1291 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1292 if (wrapper != null)
1297 ((ILayerConcrete)wrapper).SetRedirect(redirect);
1301 Eina.Log.Warning($"Callback error: {e.ToString()}");
1302 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1309 efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect);
1313 private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate;
1316 private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd);
1319 public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj);
1321 public static Efl.Eo.FunctionWrapper<efl_ui_focus_manager_border_elements_get_api_delegate> efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_manager_border_elements_get_api_delegate>(Module, "efl_ui_focus_manager_border_elements_get");
1323 private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd)
1325 Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called");
1326 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1327 if (wrapper != null)
1329 Eina.Iterator<Efl.Ui.Focus.IObject> _ret_var = default(Eina.Iterator<Efl.Ui.Focus.IObject>);
1332 _ret_var = ((ILayerConcrete)wrapper).GetBorderElements();
1336 Eina.Log.Warning($"Callback error: {e.ToString()}");
1337 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1340 return _ret_var.Handle;
1345 return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1349 private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate;
1352 private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport);
1355 public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport);
1357 public static Efl.Eo.FunctionWrapper<efl_ui_focus_manager_viewport_elements_get_api_delegate> efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_manager_viewport_elements_get_api_delegate>(Module, "efl_ui_focus_manager_viewport_elements_get");
1359 private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport)
1361 Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called");
1362 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1363 if (wrapper != null)
1365 Eina.Rect _in_viewport = viewport;
1366 Eina.Iterator<Efl.Ui.Focus.IObject> _ret_var = default(Eina.Iterator<Efl.Ui.Focus.IObject>);
1369 _ret_var = ((ILayerConcrete)wrapper).GetViewportElements(_in_viewport);
1373 Eina.Log.Warning($"Callback error: {e.ToString()}");
1374 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1377 return _ret_var.Handle;
1382 return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport);
1386 private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate;
1388 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1389 private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd);
1391 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1392 public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj);
1394 public static Efl.Eo.FunctionWrapper<efl_ui_focus_manager_root_get_api_delegate> efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_manager_root_get_api_delegate>(Module, "efl_ui_focus_manager_root_get");
1396 private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd)
1398 Eina.Log.Debug("function efl_ui_focus_manager_root_get was called");
1399 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1400 if (wrapper != null)
1402 Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject);
1405 _ret_var = ((ILayerConcrete)wrapper).GetRoot();
1409 Eina.Log.Warning($"Callback error: {e.ToString()}");
1410 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1418 return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1422 private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate;
1424 [return: MarshalAs(UnmanagedType.U1)]
1425 private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.Focus.IObject root);
1427 [return: MarshalAs(UnmanagedType.U1)]
1428 public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.Focus.IObject root);
1430 public static Efl.Eo.FunctionWrapper<efl_ui_focus_manager_root_set_api_delegate> efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_manager_root_set_api_delegate>(Module, "efl_ui_focus_manager_root_set");
1432 private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root)
1434 Eina.Log.Debug("function efl_ui_focus_manager_root_set was called");
1435 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1436 if (wrapper != null)
1438 bool _ret_var = default(bool);
1441 _ret_var = ((ILayerConcrete)wrapper).SetRoot(root);
1445 Eina.Log.Warning($"Callback error: {e.ToString()}");
1446 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1454 return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root);
1458 private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate;
1460 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1461 private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction);
1463 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1464 public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction);
1466 public static Efl.Eo.FunctionWrapper<efl_ui_focus_manager_move_api_delegate> efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_manager_move_api_delegate>(Module, "efl_ui_focus_manager_move");
1468 private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction)
1470 Eina.Log.Debug("function efl_ui_focus_manager_move was called");
1471 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1472 if (wrapper != null)
1474 Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject);
1477 _ret_var = ((ILayerConcrete)wrapper).Move(direction);
1481 Eina.Log.Warning($"Callback error: {e.ToString()}");
1482 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1490 return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction);
1494 private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate;
1496 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1497 private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical);
1499 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1500 public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical);
1502 public static Efl.Eo.FunctionWrapper<efl_ui_focus_manager_request_move_api_delegate> efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_manager_request_move_api_delegate>(Module, "efl_ui_focus_manager_request_move");
1504 private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical)
1506 Eina.Log.Debug("function efl_ui_focus_manager_request_move was called");
1507 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1508 if (wrapper != null)
1510 Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject);
1513 _ret_var = ((ILayerConcrete)wrapper).MoveRequest(direction, child, logical);
1517 Eina.Log.Warning($"Callback error: {e.ToString()}");
1518 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1526 return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical);
1530 private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate;
1532 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1533 private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.Focus.IObject root);
1535 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1536 public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.Focus.IObject root);
1538 public static Efl.Eo.FunctionWrapper<efl_ui_focus_manager_request_subchild_api_delegate> efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_manager_request_subchild_api_delegate>(Module, "efl_ui_focus_manager_request_subchild");
1540 private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root)
1542 Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called");
1543 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1544 if (wrapper != null)
1546 Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject);
1549 _ret_var = ((ILayerConcrete)wrapper).RequestSubchild(root);
1553 Eina.Log.Warning($"Callback error: {e.ToString()}");
1554 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1562 return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root);
1566 private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate;
1569 private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.Focus.IObject child);
1572 public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.Focus.IObject child);
1574 public static Efl.Eo.FunctionWrapper<efl_ui_focus_manager_fetch_api_delegate> efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_manager_fetch_api_delegate>(Module, "efl_ui_focus_manager_fetch");
1576 private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child)
1578 Eina.Log.Debug("function efl_ui_focus_manager_fetch was called");
1579 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1580 if (wrapper != null)
1582 Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations);
1585 _ret_var = ((ILayerConcrete)wrapper).Fetch(child);
1589 Eina.Log.Warning($"Callback error: {e.ToString()}");
1590 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1593 return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var);
1598 return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child);
1602 private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate;
1605 private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd);
1608 public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj);
1610 public static Efl.Eo.FunctionWrapper<efl_ui_focus_manager_logical_end_api_delegate> efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_manager_logical_end_api_delegate>(Module, "efl_ui_focus_manager_logical_end");
1612 private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd)
1614 Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called");
1615 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1616 if (wrapper != null)
1618 Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail);
1621 _ret_var = ((ILayerConcrete)wrapper).LogicalEnd();
1625 Eina.Log.Warning($"Callback error: {e.ToString()}");
1626 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1634 return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1638 private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate;
1641 private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd);
1644 public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj);
1646 public static Efl.Eo.FunctionWrapper<efl_ui_focus_manager_reset_history_api_delegate> efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_manager_reset_history_api_delegate>(Module, "efl_ui_focus_manager_reset_history");
1648 private static void reset_history(System.IntPtr obj, System.IntPtr pd)
1650 Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called");
1651 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1652 if (wrapper != null)
1657 ((ILayerConcrete)wrapper).ResetHistory();
1661 Eina.Log.Warning($"Callback error: {e.ToString()}");
1662 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1669 efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1673 private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate;
1676 private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd);
1679 public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj);
1681 public static Efl.Eo.FunctionWrapper<efl_ui_focus_manager_pop_history_stack_api_delegate> efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_manager_pop_history_stack_api_delegate>(Module, "efl_ui_focus_manager_pop_history_stack");
1683 private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd)
1685 Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called");
1686 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1687 if (wrapper != null)
1692 ((ILayerConcrete)wrapper).PopHistoryStack();
1696 Eina.Log.Warning($"Callback error: {e.ToString()}");
1697 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1704 efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1708 private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate;
1711 private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.Focus.IObject entry);
1714 public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.Focus.IObject entry);
1716 public static Efl.Eo.FunctionWrapper<efl_ui_focus_manager_setup_on_first_touch_api_delegate> efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_manager_setup_on_first_touch_api_delegate>(Module, "efl_ui_focus_manager_setup_on_first_touch");
1718 private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry)
1720 Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called");
1721 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1722 if (wrapper != null)
1727 ((ILayerConcrete)wrapper).SetupOnFirstTouch(direction, entry);
1731 Eina.Log.Warning($"Callback error: {e.ToString()}");
1732 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1739 efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry);
1743 private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate;
1746 private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd);
1749 public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj);
1751 public static Efl.Eo.FunctionWrapper<efl_ui_focus_manager_dirty_logic_freeze_api_delegate> efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_manager_dirty_logic_freeze_api_delegate>(Module, "efl_ui_focus_manager_dirty_logic_freeze");
1753 private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd)
1755 Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called");
1756 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1757 if (wrapper != null)
1762 ((ILayerConcrete)wrapper).FreezeDirtyLogic();
1766 Eina.Log.Warning($"Callback error: {e.ToString()}");
1767 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1774 efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1778 private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate;
1781 private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd);
1784 public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj);
1786 public static Efl.Eo.FunctionWrapper<efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate> efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate>(Module, "efl_ui_focus_manager_dirty_logic_unfreeze");
1788 private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd)
1790 Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called");
1791 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1792 if (wrapper != null)
1797 ((ILayerConcrete)wrapper).DirtyLogicUnfreeze();
1801 Eina.Log.Warning($"Callback error: {e.ToString()}");
1802 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1809 efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1813 private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate;
1815 #pragma warning restore CA1707, SA1300, SA1600