2 #pragma warning disable CS1591
4 using System.Runtime.InteropServices;
5 using System.Collections.Generic;
7 using System.Threading;
8 using System.ComponentModel;
15 /// <summary>Interface for managing focus objects
16 /// This interface is built in order to support movement of the focus property in a set of widgets. The movement of the focus property can happen in a tree manner, or a graph manner. The movement is also keeping track of the history of focused elements. The tree interpretation differentiates between logical and non-logical widgets, a logical widget cannot receive focus whereas a non-logical one can.
17 /// (Since EFL 1.22)</summary>
18 [Efl.Ui.Focus.IManagerConcrete.NativeMethods]
19 [Efl.Eo.BindingEntity]
20 public interface IManager :
21 Efl.Eo.IWrapper, IDisposable
23 /// <summary>The element which is currently focused by this manager
24 /// 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.
25 /// (Since EFL 1.22)</summary>
26 /// <returns>Currently focused element.</returns>
27 Efl.Ui.Focus.IObject GetManagerFocus();
28 /// <summary>The element which is currently focused by this manager
29 /// 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.
30 /// (Since EFL 1.22)</summary>
31 /// <param name="focus">Currently focused element.</param>
32 void SetManagerFocus(Efl.Ui.Focus.IObject focus);
33 /// <summary>Add another manager to serve the move requests.
34 /// 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.
35 /// (Since EFL 1.22)</summary>
36 /// <returns>The redirect manager.</returns>
37 Efl.Ui.Focus.IManager GetRedirect();
38 /// <summary>Add another manager to serve the move requests.
39 /// 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.
40 /// (Since EFL 1.22)</summary>
41 /// <param name="redirect">The redirect manager.</param>
42 void SetRedirect(Efl.Ui.Focus.IManager redirect);
43 /// <summary>The list of elements which are at the border of the graph.
44 /// 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"/>
45 /// (Since EFL 1.22)</summary>
46 /// <returns>An iterator over the border objects.</returns>
47 Eina.Iterator<Efl.Ui.Focus.IObject> GetBorderElements();
48 /// <summary>Get all elements that are at the border of the viewport
49 /// Every element returned by this is located inside the viewport rectangle, but has a right, left, down or up neighbor outside the viewport.
50 /// (Since EFL 1.22)</summary>
51 /// <param name="viewport">The rectangle defining the viewport.</param>
52 /// <returns>The list of border objects.</returns>
53 Eina.Iterator<Efl.Ui.Focus.IObject> GetViewportElements(Eina.Rect viewport);
54 /// <summary>Root node for all logical subtrees.
55 /// This property can only be set once.
56 /// (Since EFL 1.22)</summary>
57 /// <returns>Will be registered into this manager object.</returns>
58 Efl.Ui.Focus.IObject GetRoot();
59 /// <summary>Root node for all logical subtrees.
60 /// This property can only be set once.
61 /// (Since EFL 1.22)</summary>
62 /// <param name="root">Will be registered into this manager object.</param>
63 /// <returns>If <c>true</c>, this is the root node</returns>
64 bool SetRoot(Efl.Ui.Focus.IObject root);
65 /// <summary>Move the focus in the given direction.
66 /// This call flushes all changes. This means all changes between the last flush and now are computed.
67 /// (Since EFL 1.22)</summary>
68 /// <param name="direction">The direction to move to.</param>
69 /// <returns>The element which is now focused.</returns>
70 Efl.Ui.Focus.IObject Move(Efl.Ui.Focus.Direction direction);
71 /// <summary>Return the object in the <c>direction</c> from <c>child</c>.
72 /// (Since EFL 1.22)</summary>
73 /// <param name="direction">Direction to move focus.</param>
74 /// <param name="child">The child to move from. Pass <c>null</c> to indicate the currently focused child.</param>
75 /// <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>
76 /// <returns>Object that would receive focus if moved in the given direction.</returns>
77 Efl.Ui.Focus.IObject MoveRequest(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical);
78 /// <summary>Return the widget in the direction next.
79 /// 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.
80 /// (Since EFL 1.22)</summary>
81 /// <param name="root">Parent for returned child.</param>
82 /// <returns>Child of passed parameter.</returns>
83 Efl.Ui.Focus.IObject RequestSubchild(Efl.Ui.Focus.IObject root);
84 /// <summary>This will fetch the data from a registered node.
85 /// Be aware this function will trigger a computation of all dirty nodes.
88 /// <b>This is a BETA method</b>. It can be modified or removed in the future. Do not use it for product development.</summary>
89 /// <param name="child">The child object to inspect.</param>
90 /// <returns>The list of relations starting from <c>child</c>.</returns>
91 Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child);
92 /// <summary>Return the last logical object.
93 /// The returned object is the last object that would be returned if you start at the root and move the direction into next.
94 /// (Since EFL 1.22)</summary>
95 /// <returns>Last object.</returns>
96 Efl.Ui.Focus.ManagerLogicalEndDetail LogicalEnd();
97 /// <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.
98 /// You should focus another element immediately after calling this, in order to always have a focused object.
99 /// (Since EFL 1.22)</summary>
101 /// <summary>Remove the uppermost history element, and focus the previous one.
102 /// 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.
103 /// (Since EFL 1.22)</summary>
104 void PopHistoryStack();
105 /// <summary>Called when this manager is set as redirect.
106 /// 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.
107 /// (Since EFL 1.22)</summary>
108 /// <param name="direction">The direction in which this should be setup.</param>
109 /// <param name="entry">The object that caused this manager to be redirect.</param>
110 void SetupOnFirstTouch(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry);
111 /// <summary>This disables the cache invalidation when an object is moved.
112 /// 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.
113 /// (Since EFL 1.22)</summary>
114 void FreezeDirtyLogic();
115 /// <summary>This enables the cache invalidation when an object is moved.
116 /// This is the counterpart to <see cref="Efl.Ui.Focus.IManager.FreezeDirtyLogic"/>.
117 /// (Since EFL 1.22)</summary>
118 void DirtyLogicUnfreeze();
119 /// <summary>Redirect object has changed, the old manager is passed as an event argument.
120 /// (Since EFL 1.22)</summary>
121 /// <value><see cref="Efl.Ui.Focus.IManagerRedirectChangedEvt_Args"/></value>
122 event EventHandler<Efl.Ui.Focus.IManagerRedirectChangedEvt_Args> RedirectChangedEvt;
123 /// <summary>After this event, the manager object will calculate relations in the graph. Can be used to add / remove children in a lazy fashion.
124 /// (Since EFL 1.22)</summary>
125 event EventHandler FlushPreEvt;
126 /// <summary>Cached relationship calculation results have been invalidated.
127 /// (Since EFL 1.22)</summary>
128 event EventHandler CoordsDirtyEvt;
129 /// <summary>The manager_focus property has changed. The previously focused object is passed as an event argument.
130 /// (Since EFL 1.22)</summary>
131 /// <value><see cref="Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args"/></value>
132 event EventHandler<Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args> ManagerFocusChangedEvt;
133 /// <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.
134 /// (Since EFL 1.22)</summary>
135 /// <value><see cref="Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args"/></value>
136 event EventHandler<Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args> DirtyLogicFreezeChangedEvt;
137 /// <summary>The element which is currently focused by this manager
138 /// 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.
139 /// (Since EFL 1.22)</summary>
140 /// <value>Currently focused element.</value>
141 Efl.Ui.Focus.IObject ManagerFocus {
145 /// <summary>Add another manager to serve the move requests.
146 /// 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.
147 /// (Since EFL 1.22)</summary>
148 /// <value>The redirect manager.</value>
149 Efl.Ui.Focus.IManager Redirect {
153 /// <summary>The list of elements which are at the border of the graph.
154 /// 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"/>
155 /// (Since EFL 1.22)</summary>
156 /// <value>An iterator over the border objects.</value>
157 Eina.Iterator<Efl.Ui.Focus.IObject> BorderElements {
160 /// <summary>Root node for all logical subtrees.
161 /// This property can only be set once.
162 /// (Since EFL 1.22)</summary>
163 /// <value>Will be registered into this manager object.</value>
164 Efl.Ui.Focus.IObject Root {
169 /// <summary>Event argument wrapper for event <see cref="Efl.Ui.Focus.IManager.RedirectChangedEvt"/>.</summary>
170 [Efl.Eo.BindingEntity]
171 public class IManagerRedirectChangedEvt_Args : EventArgs {
172 /// <summary>Actual event payload.</summary>
173 /// <value>Redirect object has changed, the old manager is passed as an event argument.</value>
174 public Efl.Ui.Focus.IManager arg { get; set; }
176 /// <summary>Event argument wrapper for event <see cref="Efl.Ui.Focus.IManager.ManagerFocusChangedEvt"/>.</summary>
177 [Efl.Eo.BindingEntity]
178 public class IManagerManagerFocusChangedEvt_Args : EventArgs {
179 /// <summary>Actual event payload.</summary>
180 /// <value>The manager_focus property has changed. The previously focused object is passed as an event argument.</value>
181 public Efl.Ui.Focus.IObject arg { get; set; }
183 /// <summary>Event argument wrapper for event <see cref="Efl.Ui.Focus.IManager.DirtyLogicFreezeChangedEvt"/>.</summary>
184 [Efl.Eo.BindingEntity]
185 public class IManagerDirtyLogicFreezeChangedEvt_Args : EventArgs {
186 /// <summary>Actual event payload.</summary>
187 /// <value>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.</value>
188 public bool arg { get; set; }
190 /// <summary>Interface for managing focus objects
191 /// This interface is built in order to support movement of the focus property in a set of widgets. The movement of the focus property can happen in a tree manner, or a graph manner. The movement is also keeping track of the history of focused elements. The tree interpretation differentiates between logical and non-logical widgets, a logical widget cannot receive focus whereas a non-logical one can.
192 /// (Since EFL 1.22)</summary>
193 sealed public class IManagerConcrete :
198 /// <summary>Pointer to the native class description.</summary>
199 public override System.IntPtr NativeClass
203 if (((object)this).GetType() == typeof(IManagerConcrete))
205 return GetEflClassStatic();
209 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
214 /// <summary>Subclasses should override this constructor if they are expected to be instantiated from native code.
215 /// Do not call this constructor directly.</summary>
216 /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
217 private IManagerConcrete(ConstructingHandle ch) : base(ch)
221 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
222 efl_ui_focus_manager_interface_get();
223 /// <summary>Initializes a new instance of the <see cref="IManager"/> class.
224 /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
225 /// <param name="wh">The native pointer to be wrapped.</param>
226 private IManagerConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
230 /// <summary>Redirect object has changed, the old manager is passed as an event argument.
231 /// (Since EFL 1.22)</summary>
232 /// <value><see cref="Efl.Ui.Focus.IManagerRedirectChangedEvt_Args"/></value>
233 public event EventHandler<Efl.Ui.Focus.IManagerRedirectChangedEvt_Args> RedirectChangedEvt
237 lock (eflBindingEventLock)
239 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
241 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
244 Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args();
245 args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete);
248 value?.Invoke(obj, args);
252 Eina.Log.Error(e.ToString());
253 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
258 string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED";
259 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
265 lock (eflBindingEventLock)
267 string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED";
268 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
272 /// <summary>Method to raise event RedirectChangedEvt.</summary>
273 public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e)
275 var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED";
276 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
277 if (desc == IntPtr.Zero)
279 Eina.Log.Error($"Failed to get native event {key}");
283 IntPtr info = e.arg.NativeHandle;
284 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
286 /// <summary>After this event, the manager object will calculate relations in the graph. Can be used to add / remove children in a lazy fashion.
287 /// (Since EFL 1.22)</summary>
288 public event EventHandler FlushPreEvt
292 lock (eflBindingEventLock)
294 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
296 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
299 EventArgs args = EventArgs.Empty;
302 value?.Invoke(obj, args);
306 Eina.Log.Error(e.ToString());
307 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
312 string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE";
313 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
319 lock (eflBindingEventLock)
321 string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE";
322 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
326 /// <summary>Method to raise event FlushPreEvt.</summary>
327 public void OnFlushPreEvt(EventArgs e)
329 var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE";
330 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
331 if (desc == IntPtr.Zero)
333 Eina.Log.Error($"Failed to get native event {key}");
337 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
339 /// <summary>Cached relationship calculation results have been invalidated.
340 /// (Since EFL 1.22)</summary>
341 public event EventHandler CoordsDirtyEvt
345 lock (eflBindingEventLock)
347 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
349 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
352 EventArgs args = EventArgs.Empty;
355 value?.Invoke(obj, args);
359 Eina.Log.Error(e.ToString());
360 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
365 string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY";
366 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
372 lock (eflBindingEventLock)
374 string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY";
375 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
379 /// <summary>Method to raise event CoordsDirtyEvt.</summary>
380 public void OnCoordsDirtyEvt(EventArgs e)
382 var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY";
383 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
384 if (desc == IntPtr.Zero)
386 Eina.Log.Error($"Failed to get native event {key}");
390 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
392 /// <summary>The manager_focus property has changed. The previously focused object is passed as an event argument.
393 /// (Since EFL 1.22)</summary>
394 /// <value><see cref="Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args"/></value>
395 public event EventHandler<Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args> ManagerFocusChangedEvt
399 lock (eflBindingEventLock)
401 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
403 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
406 Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args();
407 args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete);
410 value?.Invoke(obj, args);
414 Eina.Log.Error(e.ToString());
415 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
420 string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED";
421 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
427 lock (eflBindingEventLock)
429 string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED";
430 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
434 /// <summary>Method to raise event ManagerFocusChangedEvt.</summary>
435 public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e)
437 var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED";
438 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
439 if (desc == IntPtr.Zero)
441 Eina.Log.Error($"Failed to get native event {key}");
445 IntPtr info = e.arg.NativeHandle;
446 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
448 /// <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.
449 /// (Since EFL 1.22)</summary>
450 /// <value><see cref="Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args"/></value>
451 public event EventHandler<Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args> DirtyLogicFreezeChangedEvt
455 lock (eflBindingEventLock)
457 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
459 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
462 Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args();
463 args.arg = Marshal.ReadByte(evt.Info) != 0;
466 value?.Invoke(obj, args);
470 Eina.Log.Error(e.ToString());
471 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
476 string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED";
477 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
483 lock (eflBindingEventLock)
485 string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED";
486 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
490 /// <summary>Method to raise event DirtyLogicFreezeChangedEvt.</summary>
491 public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e)
493 var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED";
494 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
495 if (desc == IntPtr.Zero)
497 Eina.Log.Error($"Failed to get native event {key}");
501 IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0);
504 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
508 Marshal.FreeHGlobal(info);
511 /// <summary>The element which is currently focused by this manager
512 /// 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.
513 /// (Since EFL 1.22)</summary>
514 /// <returns>Currently focused element.</returns>
515 public Efl.Ui.Focus.IObject GetManagerFocus() {
516 var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_get_ptr.Value.Delegate(this.NativeHandle);
517 Eina.Error.RaiseIfUnhandledException();
520 /// <summary>The element which is currently focused by this manager
521 /// 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.
522 /// (Since EFL 1.22)</summary>
523 /// <param name="focus">Currently focused element.</param>
524 public void SetManagerFocus(Efl.Ui.Focus.IObject focus) {
525 Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_set_ptr.Value.Delegate(this.NativeHandle,focus);
526 Eina.Error.RaiseIfUnhandledException();
528 /// <summary>Add another manager to serve the move requests.
529 /// 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.
530 /// (Since EFL 1.22)</summary>
531 /// <returns>The redirect manager.</returns>
532 public Efl.Ui.Focus.IManager GetRedirect() {
533 var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(this.NativeHandle);
534 Eina.Error.RaiseIfUnhandledException();
537 /// <summary>Add another manager to serve the move requests.
538 /// 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.
539 /// (Since EFL 1.22)</summary>
540 /// <param name="redirect">The redirect manager.</param>
541 public void SetRedirect(Efl.Ui.Focus.IManager redirect) {
542 Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(this.NativeHandle,redirect);
543 Eina.Error.RaiseIfUnhandledException();
545 /// <summary>The list of elements which are at the border of the graph.
546 /// 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"/>
547 /// (Since EFL 1.22)</summary>
548 /// <returns>An iterator over the border objects.</returns>
549 public Eina.Iterator<Efl.Ui.Focus.IObject> GetBorderElements() {
550 var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(this.NativeHandle);
551 Eina.Error.RaiseIfUnhandledException();
552 return new Eina.Iterator<Efl.Ui.Focus.IObject>(_ret_var, false);
554 /// <summary>Get all elements that are at the border of the viewport
555 /// Every element returned by this is located inside the viewport rectangle, but has a right, left, down or up neighbor outside the viewport.
556 /// (Since EFL 1.22)</summary>
557 /// <param name="viewport">The rectangle defining the viewport.</param>
558 /// <returns>The list of border objects.</returns>
559 public Eina.Iterator<Efl.Ui.Focus.IObject> GetViewportElements(Eina.Rect viewport) {
560 Eina.Rect.NativeStruct _in_viewport = viewport;
561 var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(this.NativeHandle,_in_viewport);
562 Eina.Error.RaiseIfUnhandledException();
563 return new Eina.Iterator<Efl.Ui.Focus.IObject>(_ret_var, false);
565 /// <summary>Root node for all logical subtrees.
566 /// This property can only be set once.
567 /// (Since EFL 1.22)</summary>
568 /// <returns>Will be registered into this manager object.</returns>
569 public Efl.Ui.Focus.IObject GetRoot() {
570 var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_get_ptr.Value.Delegate(this.NativeHandle);
571 Eina.Error.RaiseIfUnhandledException();
574 /// <summary>Root node for all logical subtrees.
575 /// This property can only be set once.
576 /// (Since EFL 1.22)</summary>
577 /// <param name="root">Will be registered into this manager object.</param>
578 /// <returns>If <c>true</c>, this is the root node</returns>
579 public bool SetRoot(Efl.Ui.Focus.IObject root) {
580 var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_set_ptr.Value.Delegate(this.NativeHandle,root);
581 Eina.Error.RaiseIfUnhandledException();
584 /// <summary>Move the focus in the given direction.
585 /// This call flushes all changes. This means all changes between the last flush and now are computed.
586 /// (Since EFL 1.22)</summary>
587 /// <param name="direction">The direction to move to.</param>
588 /// <returns>The element which is now focused.</returns>
589 public Efl.Ui.Focus.IObject Move(Efl.Ui.Focus.Direction direction) {
590 var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_move_ptr.Value.Delegate(this.NativeHandle,direction);
591 Eina.Error.RaiseIfUnhandledException();
594 /// <summary>Return the object in the <c>direction</c> from <c>child</c>.
595 /// (Since EFL 1.22)</summary>
596 /// <param name="direction">Direction to move focus.</param>
597 /// <param name="child">The child to move from. Pass <c>null</c> to indicate the currently focused child.</param>
598 /// <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>
599 /// <returns>Object that would receive focus if moved in the given direction.</returns>
600 public Efl.Ui.Focus.IObject MoveRequest(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) {
601 var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_move_ptr.Value.Delegate(this.NativeHandle,direction, child, logical);
602 Eina.Error.RaiseIfUnhandledException();
605 /// <summary>Return the widget in the direction next.
606 /// 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.
607 /// (Since EFL 1.22)</summary>
608 /// <param name="root">Parent for returned child.</param>
609 /// <returns>Child of passed parameter.</returns>
610 public Efl.Ui.Focus.IObject RequestSubchild(Efl.Ui.Focus.IObject root) {
611 var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(this.NativeHandle,root);
612 Eina.Error.RaiseIfUnhandledException();
615 /// <summary>This will fetch the data from a registered node.
616 /// Be aware this function will trigger a computation of all dirty nodes.
619 /// <b>This is a BETA method</b>. It can be modified or removed in the future. Do not use it for product development.</summary>
620 /// <param name="child">The child object to inspect.</param>
621 /// <returns>The list of relations starting from <c>child</c>.</returns>
622 public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) {
623 var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_fetch_ptr.Value.Delegate(this.NativeHandle,child);
624 Eina.Error.RaiseIfUnhandledException();
625 var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged<Efl.Ui.Focus.Relations>(_ret_var);
626 Marshal.FreeHGlobal(_ret_var);
629 /// <summary>Return the last logical object.
630 /// The returned object is the last object that would be returned if you start at the root and move the direction into next.
631 /// (Since EFL 1.22)</summary>
632 /// <returns>Last object.</returns>
633 public Efl.Ui.Focus.ManagerLogicalEndDetail LogicalEnd() {
634 var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_logical_end_ptr.Value.Delegate(this.NativeHandle);
635 Eina.Error.RaiseIfUnhandledException();
638 /// <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.
639 /// You should focus another element immediately after calling this, in order to always have a focused object.
640 /// (Since EFL 1.22)</summary>
641 public void ResetHistory() {
642 Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_reset_history_ptr.Value.Delegate(this.NativeHandle);
643 Eina.Error.RaiseIfUnhandledException();
645 /// <summary>Remove the uppermost history element, and focus the previous one.
646 /// 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.
647 /// (Since EFL 1.22)</summary>
648 public void PopHistoryStack() {
649 Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(this.NativeHandle);
650 Eina.Error.RaiseIfUnhandledException();
652 /// <summary>Called when this manager is set as redirect.
653 /// 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.
654 /// (Since EFL 1.22)</summary>
655 /// <param name="direction">The direction in which this should be setup.</param>
656 /// <param name="entry">The object that caused this manager to be redirect.</param>
657 public void SetupOnFirstTouch(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) {
658 Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(this.NativeHandle,direction, entry);
659 Eina.Error.RaiseIfUnhandledException();
661 /// <summary>This disables the cache invalidation when an object is moved.
662 /// 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.
663 /// (Since EFL 1.22)</summary>
664 public void FreezeDirtyLogic() {
665 Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(this.NativeHandle);
666 Eina.Error.RaiseIfUnhandledException();
668 /// <summary>This enables the cache invalidation when an object is moved.
669 /// This is the counterpart to <see cref="Efl.Ui.Focus.IManager.FreezeDirtyLogic"/>.
670 /// (Since EFL 1.22)</summary>
671 public void DirtyLogicUnfreeze() {
672 Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(this.NativeHandle);
673 Eina.Error.RaiseIfUnhandledException();
675 /// <summary>The element which is currently focused by this manager
676 /// 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.
677 /// (Since EFL 1.22)</summary>
678 /// <value>Currently focused element.</value>
679 public Efl.Ui.Focus.IObject ManagerFocus {
680 get { return GetManagerFocus(); }
681 set { SetManagerFocus(value); }
683 /// <summary>Add another manager to serve the move requests.
684 /// 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.
685 /// (Since EFL 1.22)</summary>
686 /// <value>The redirect manager.</value>
687 public Efl.Ui.Focus.IManager Redirect {
688 get { return GetRedirect(); }
689 set { SetRedirect(value); }
691 /// <summary>The list of elements which are at the border of the graph.
692 /// 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"/>
693 /// (Since EFL 1.22)</summary>
694 /// <value>An iterator over the border objects.</value>
695 public Eina.Iterator<Efl.Ui.Focus.IObject> BorderElements {
696 get { return GetBorderElements(); }
698 /// <summary>Root node for all logical subtrees.
699 /// This property can only be set once.
700 /// (Since EFL 1.22)</summary>
701 /// <value>Will be registered into this manager object.</value>
702 public Efl.Ui.Focus.IObject Root {
703 get { return GetRoot(); }
704 set { SetRoot(value); }
706 private static IntPtr GetEflClassStatic()
708 return Efl.Ui.Focus.IManagerConcrete.efl_ui_focus_manager_interface_get();
710 /// <summary>Wrapper for native methods and virtual method delegates.
711 /// For internal use by generated code only.</summary>
712 public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods
714 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary);
715 /// <summary>Gets the list of Eo operations to override.</summary>
716 /// <returns>The list of Eo operations to be overload.</returns>
717 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
719 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
720 var methods = Efl.Eo.Globals.GetUserMethods(type);
722 if (efl_ui_focus_manager_focus_get_static_delegate == null)
724 efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get);
727 if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null)
729 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) });
732 if (efl_ui_focus_manager_focus_set_static_delegate == null)
734 efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set);
737 if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null)
739 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) });
742 if (efl_ui_focus_manager_redirect_get_static_delegate == null)
744 efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get);
747 if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null)
749 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) });
752 if (efl_ui_focus_manager_redirect_set_static_delegate == null)
754 efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set);
757 if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null)
759 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) });
762 if (efl_ui_focus_manager_border_elements_get_static_delegate == null)
764 efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get);
767 if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null)
769 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) });
772 if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null)
774 efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get);
777 if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null)
779 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) });
782 if (efl_ui_focus_manager_root_get_static_delegate == null)
784 efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get);
787 if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null)
789 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) });
792 if (efl_ui_focus_manager_root_set_static_delegate == null)
794 efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set);
797 if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null)
799 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) });
802 if (efl_ui_focus_manager_move_static_delegate == null)
804 efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move);
807 if (methods.FirstOrDefault(m => m.Name == "Move") != null)
809 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) });
812 if (efl_ui_focus_manager_request_move_static_delegate == null)
814 efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move);
817 if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null)
819 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) });
822 if (efl_ui_focus_manager_request_subchild_static_delegate == null)
824 efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild);
827 if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null)
829 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) });
832 if (efl_ui_focus_manager_fetch_static_delegate == null)
834 efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch);
837 if (methods.FirstOrDefault(m => m.Name == "Fetch") != null)
839 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) });
842 if (efl_ui_focus_manager_logical_end_static_delegate == null)
844 efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end);
847 if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null)
849 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) });
852 if (efl_ui_focus_manager_reset_history_static_delegate == null)
854 efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history);
857 if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null)
859 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) });
862 if (efl_ui_focus_manager_pop_history_stack_static_delegate == null)
864 efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack);
867 if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null)
869 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) });
872 if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null)
874 efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch);
877 if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null)
879 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) });
882 if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null)
884 efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze);
887 if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null)
889 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) });
892 if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null)
894 efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze);
897 if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null)
899 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) });
904 /// <summary>Returns the Eo class for the native methods of this class.</summary>
905 /// <returns>The native class pointer.</returns>
906 public override IntPtr GetEflClass()
908 return Efl.Ui.Focus.IManagerConcrete.efl_ui_focus_manager_interface_get();
911 #pragma warning disable CA1707, CS1591, SA1300, SA1600
913 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
914 private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd);
916 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
917 public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj);
919 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");
921 private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd)
923 Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called");
924 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
927 Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject);
930 _ret_var = ((IManager)ws.Target).GetManagerFocus();
934 Eina.Log.Warning($"Callback error: {e.ToString()}");
935 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
943 return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
947 private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate;
950 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);
953 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);
955 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");
957 private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus)
959 Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called");
960 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
966 ((IManager)ws.Target).SetManagerFocus(focus);
970 Eina.Log.Warning($"Callback error: {e.ToString()}");
971 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
978 efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus);
982 private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate;
984 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
985 private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd);
987 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
988 public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj);
990 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");
992 private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd)
994 Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called");
995 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
998 Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager);
1001 _ret_var = ((IManager)ws.Target).GetRedirect();
1005 Eina.Log.Warning($"Callback error: {e.ToString()}");
1006 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1014 return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1018 private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate;
1021 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);
1024 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);
1026 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");
1028 private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect)
1030 Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called");
1031 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1037 ((IManager)ws.Target).SetRedirect(redirect);
1041 Eina.Log.Warning($"Callback error: {e.ToString()}");
1042 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1049 efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect);
1053 private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate;
1056 private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd);
1059 public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj);
1061 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");
1063 private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd)
1065 Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called");
1066 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1069 Eina.Iterator<Efl.Ui.Focus.IObject> _ret_var = default(Eina.Iterator<Efl.Ui.Focus.IObject>);
1072 _ret_var = ((IManager)ws.Target).GetBorderElements();
1076 Eina.Log.Warning($"Callback error: {e.ToString()}");
1077 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1080 return _ret_var.Handle;
1085 return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1089 private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate;
1092 private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport);
1095 public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport);
1097 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");
1099 private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport)
1101 Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called");
1102 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1105 Eina.Rect _in_viewport = viewport;
1106 Eina.Iterator<Efl.Ui.Focus.IObject> _ret_var = default(Eina.Iterator<Efl.Ui.Focus.IObject>);
1109 _ret_var = ((IManager)ws.Target).GetViewportElements(_in_viewport);
1113 Eina.Log.Warning($"Callback error: {e.ToString()}");
1114 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1117 return _ret_var.Handle;
1122 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);
1126 private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate;
1128 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1129 private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd);
1131 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1132 public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj);
1134 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");
1136 private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd)
1138 Eina.Log.Debug("function efl_ui_focus_manager_root_get was called");
1139 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1142 Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject);
1145 _ret_var = ((IManager)ws.Target).GetRoot();
1149 Eina.Log.Warning($"Callback error: {e.ToString()}");
1150 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1158 return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1162 private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate;
1164 [return: MarshalAs(UnmanagedType.U1)]
1165 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);
1167 [return: MarshalAs(UnmanagedType.U1)]
1168 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);
1170 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");
1172 private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root)
1174 Eina.Log.Debug("function efl_ui_focus_manager_root_set was called");
1175 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1178 bool _ret_var = default(bool);
1181 _ret_var = ((IManager)ws.Target).SetRoot(root);
1185 Eina.Log.Warning($"Callback error: {e.ToString()}");
1186 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1194 return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root);
1198 private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate;
1200 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1201 private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction);
1203 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1204 public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction);
1206 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");
1208 private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction)
1210 Eina.Log.Debug("function efl_ui_focus_manager_move was called");
1211 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1214 Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject);
1217 _ret_var = ((IManager)ws.Target).Move(direction);
1221 Eina.Log.Warning($"Callback error: {e.ToString()}");
1222 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1230 return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction);
1234 private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate;
1236 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1237 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);
1239 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1240 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);
1242 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");
1244 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)
1246 Eina.Log.Debug("function efl_ui_focus_manager_request_move was called");
1247 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1250 Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject);
1253 _ret_var = ((IManager)ws.Target).MoveRequest(direction, child, logical);
1257 Eina.Log.Warning($"Callback error: {e.ToString()}");
1258 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1266 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);
1270 private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate;
1272 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1273 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);
1275 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1276 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);
1278 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");
1280 private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root)
1282 Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called");
1283 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1286 Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject);
1289 _ret_var = ((IManager)ws.Target).RequestSubchild(root);
1293 Eina.Log.Warning($"Callback error: {e.ToString()}");
1294 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1302 return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root);
1306 private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate;
1309 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);
1312 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);
1314 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");
1316 private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child)
1318 Eina.Log.Debug("function efl_ui_focus_manager_fetch was called");
1319 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1322 Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations);
1325 _ret_var = ((IManager)ws.Target).Fetch(child);
1329 Eina.Log.Warning($"Callback error: {e.ToString()}");
1330 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1333 return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var);
1338 return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child);
1342 private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate;
1345 private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd);
1348 public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj);
1350 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");
1352 private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd)
1354 Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called");
1355 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1358 Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail);
1361 _ret_var = ((IManager)ws.Target).LogicalEnd();
1365 Eina.Log.Warning($"Callback error: {e.ToString()}");
1366 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1374 return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1378 private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate;
1381 private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd);
1384 public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj);
1386 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");
1388 private static void reset_history(System.IntPtr obj, System.IntPtr pd)
1390 Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called");
1391 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1397 ((IManager)ws.Target).ResetHistory();
1401 Eina.Log.Warning($"Callback error: {e.ToString()}");
1402 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1409 efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1413 private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate;
1416 private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd);
1419 public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj);
1421 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");
1423 private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd)
1425 Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called");
1426 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1432 ((IManager)ws.Target).PopHistoryStack();
1436 Eina.Log.Warning($"Callback error: {e.ToString()}");
1437 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1444 efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1448 private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate;
1451 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);
1454 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);
1456 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");
1458 private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry)
1460 Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called");
1461 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1467 ((IManager)ws.Target).SetupOnFirstTouch(direction, entry);
1471 Eina.Log.Warning($"Callback error: {e.ToString()}");
1472 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1479 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);
1483 private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate;
1486 private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd);
1489 public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj);
1491 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");
1493 private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd)
1495 Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called");
1496 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1502 ((IManager)ws.Target).FreezeDirtyLogic();
1506 Eina.Log.Warning($"Callback error: {e.ToString()}");
1507 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1514 efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1518 private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate;
1521 private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd);
1524 public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj);
1526 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");
1528 private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd)
1530 Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called");
1531 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1537 ((IManager)ws.Target).DirtyLogicUnfreeze();
1541 Eina.Log.Warning($"Callback error: {e.ToString()}");
1542 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1549 efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1553 private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate;
1555 #pragma warning restore CA1707, CS1591, SA1300, SA1600
1566 #pragma warning disable CS1591
1567 public static class Efl_Ui_FocusIManagerConcrete_ExtensionMethods {
1568 public static Efl.BindableProperty<Efl.Ui.Focus.IObject> ManagerFocus<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Ui.Focus.IManager, T>magic = null) where T : Efl.Ui.Focus.IManager {
1569 return new Efl.BindableProperty<Efl.Ui.Focus.IObject>("manager_focus", fac);
1572 public static Efl.BindableProperty<Efl.Ui.Focus.IManager> Redirect<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Ui.Focus.IManager, T>magic = null) where T : Efl.Ui.Focus.IManager {
1573 return new Efl.BindableProperty<Efl.Ui.Focus.IManager>("redirect", fac);
1578 public static Efl.BindableProperty<Efl.Ui.Focus.IObject> Root<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Ui.Focus.IManager, T>magic = null) where T : Efl.Ui.Focus.IManager {
1579 return new Efl.BindableProperty<Efl.Ui.Focus.IObject>("root", fac);
1583 #pragma warning restore CS1591
1591 /// <summary>Structure holding the graph of relations between focusable objects.</summary>
1592 [StructLayout(LayoutKind.Sequential)]
1593 [Efl.Eo.BindingEntity]
1594 public struct Relations
1596 /// <summary>List of objects on the right side</summary>
1597 public Eina.List<Efl.Ui.Focus.IObject> Right;
1598 /// <summary>List of objects on the left side</summary>
1599 public Eina.List<Efl.Ui.Focus.IObject> Left;
1600 /// <summary>List of objects above</summary>
1601 public Eina.List<Efl.Ui.Focus.IObject> Top;
1602 /// <summary>List of objects below</summary>
1603 public Eina.List<Efl.Ui.Focus.IObject> Down;
1604 /// <summary>Next object</summary>
1605 public Efl.Ui.Focus.IObject Next;
1606 /// <summary>Previous object</summary>
1607 public Efl.Ui.Focus.IObject Prev;
1608 /// <summary>Parent object</summary>
1609 public Efl.Ui.Focus.IObject Parent;
1610 /// <summary>Redirect manager</summary>
1611 public Efl.Ui.Focus.IManager Redirect;
1612 /// <summary>The node where this is the information from</summary>
1613 public Efl.Ui.Focus.IObject Node;
1614 /// <summary><c>true</c> if this node is only logical</summary>
1615 public bool Logical;
1616 /// <summary>The position in the history stack</summary>
1617 public int Position_in_history;
1618 /// <summary>Constructor for Relations.</summary>
1619 /// <param name="Right">List of objects on the right side</param>;
1620 /// <param name="Left">List of objects on the left side</param>;
1621 /// <param name="Top">List of objects above</param>;
1622 /// <param name="Down">List of objects below</param>;
1623 /// <param name="Next">Next object</param>;
1624 /// <param name="Prev">Previous object</param>;
1625 /// <param name="Parent">Parent object</param>;
1626 /// <param name="Redirect">Redirect manager</param>;
1627 /// <param name="Node">The node where this is the information from</param>;
1628 /// <param name="Logical"><c>true</c> if this node is only logical</param>;
1629 /// <param name="Position_in_history">The position in the history stack</param>;
1631 Eina.List<Efl.Ui.Focus.IObject> Right = default(Eina.List<Efl.Ui.Focus.IObject>),
1632 Eina.List<Efl.Ui.Focus.IObject> Left = default(Eina.List<Efl.Ui.Focus.IObject>),
1633 Eina.List<Efl.Ui.Focus.IObject> Top = default(Eina.List<Efl.Ui.Focus.IObject>),
1634 Eina.List<Efl.Ui.Focus.IObject> Down = default(Eina.List<Efl.Ui.Focus.IObject>),
1635 Efl.Ui.Focus.IObject Next = default(Efl.Ui.Focus.IObject),
1636 Efl.Ui.Focus.IObject Prev = default(Efl.Ui.Focus.IObject),
1637 Efl.Ui.Focus.IObject Parent = default(Efl.Ui.Focus.IObject),
1638 Efl.Ui.Focus.IManager Redirect = default(Efl.Ui.Focus.IManager),
1639 Efl.Ui.Focus.IObject Node = default(Efl.Ui.Focus.IObject),
1640 bool Logical = default(bool),
1641 int Position_in_history = default(int) )
1649 this.Parent = Parent;
1650 this.Redirect = Redirect;
1652 this.Logical = Logical;
1653 this.Position_in_history = Position_in_history;
1656 /// <summary>Implicit conversion to the managed representation from a native pointer.</summary>
1657 /// <param name="ptr">Native pointer to be converted.</param>
1658 public static implicit operator Relations(IntPtr ptr)
1660 var tmp = (Relations.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Relations.NativeStruct));
1664 #pragma warning disable CS1591
1666 /// <summary>Internal wrapper for struct Relations.</summary>
1667 [StructLayout(LayoutKind.Sequential)]
1668 public struct NativeStruct
1671 public System.IntPtr Right;
1673 public System.IntPtr Left;
1675 public System.IntPtr Top;
1677 public System.IntPtr Down;
1678 /// <summary>Internal wrapper for field Next</summary>
1679 public System.IntPtr Next;
1680 /// <summary>Internal wrapper for field Prev</summary>
1681 public System.IntPtr Prev;
1682 /// <summary>Internal wrapper for field Parent</summary>
1683 public System.IntPtr Parent;
1684 /// <summary>Internal wrapper for field Redirect</summary>
1685 public System.IntPtr Redirect;
1686 /// <summary>Internal wrapper for field Node</summary>
1687 public System.IntPtr Node;
1688 /// <summary>Internal wrapper for field Logical</summary>
1689 public System.Byte Logical;
1691 public int Position_in_history;
1692 /// <summary>Implicit conversion to the internal/marshalling representation.</summary>
1693 public static implicit operator Relations.NativeStruct(Relations _external_struct)
1695 var _internal_struct = new Relations.NativeStruct();
1696 _internal_struct.Right = _external_struct.Right.Handle;
1697 _internal_struct.Left = _external_struct.Left.Handle;
1698 _internal_struct.Top = _external_struct.Top.Handle;
1699 _internal_struct.Down = _external_struct.Down.Handle;
1700 _internal_struct.Next = _external_struct.Next?.NativeHandle ?? System.IntPtr.Zero;
1701 _internal_struct.Prev = _external_struct.Prev?.NativeHandle ?? System.IntPtr.Zero;
1702 _internal_struct.Parent = _external_struct.Parent?.NativeHandle ?? System.IntPtr.Zero;
1703 _internal_struct.Redirect = _external_struct.Redirect?.NativeHandle ?? System.IntPtr.Zero;
1704 _internal_struct.Node = _external_struct.Node?.NativeHandle ?? System.IntPtr.Zero;
1705 _internal_struct.Logical = _external_struct.Logical ? (byte)1 : (byte)0;
1706 _internal_struct.Position_in_history = _external_struct.Position_in_history;
1707 return _internal_struct;
1710 /// <summary>Implicit conversion to the managed representation.</summary>
1711 public static implicit operator Relations(Relations.NativeStruct _internal_struct)
1713 var _external_struct = new Relations();
1714 _external_struct.Right = new Eina.List<Efl.Ui.Focus.IObject>(_internal_struct.Right, false, false);
1715 _external_struct.Left = new Eina.List<Efl.Ui.Focus.IObject>(_internal_struct.Left, false, false);
1716 _external_struct.Top = new Eina.List<Efl.Ui.Focus.IObject>(_internal_struct.Top, false, false);
1717 _external_struct.Down = new Eina.List<Efl.Ui.Focus.IObject>(_internal_struct.Down, false, false);
1719 _external_struct.Next = (Efl.Ui.Focus.IObjectConcrete) Efl.Eo.Globals.CreateWrapperFor(_internal_struct.Next);
1721 _external_struct.Prev = (Efl.Ui.Focus.IObjectConcrete) Efl.Eo.Globals.CreateWrapperFor(_internal_struct.Prev);
1723 _external_struct.Parent = (Efl.Ui.Focus.IObjectConcrete) Efl.Eo.Globals.CreateWrapperFor(_internal_struct.Parent);
1725 _external_struct.Redirect = (Efl.Ui.Focus.IManagerConcrete) Efl.Eo.Globals.CreateWrapperFor(_internal_struct.Redirect);
1727 _external_struct.Node = (Efl.Ui.Focus.IObjectConcrete) Efl.Eo.Globals.CreateWrapperFor(_internal_struct.Node);
1728 _external_struct.Logical = _internal_struct.Logical != 0;
1729 _external_struct.Position_in_history = _internal_struct.Position_in_history;
1730 return _external_struct;
1735 #pragma warning restore CS1591
1751 /// <summary>Structure holding the focus object with extra information on logical end
1752 /// (Since EFL 1.22)</summary>
1753 [StructLayout(LayoutKind.Sequential)]
1754 [Efl.Eo.BindingEntity]
1755 public struct ManagerLogicalEndDetail
1757 /// <summary><c>true</c> if element is registered as regular element in the <see cref="Efl.Ui.Focus.IManager"/> obejct, <c>false</c> otherwise</summary>
1758 public bool Is_regular_end;
1759 /// <summary>The last element of the logical chain in the <see cref="Efl.Ui.Focus.IManager"/></summary>
1760 public Efl.Ui.Focus.IObject Element;
1761 /// <summary>Constructor for ManagerLogicalEndDetail.</summary>
1762 /// <param name="Is_regular_end"><c>true</c> if element is registered as regular element in the <see cref="Efl.Ui.Focus.IManager"/> obejct, <c>false</c> otherwise</param>;
1763 /// <param name="Element">The last element of the logical chain in the <see cref="Efl.Ui.Focus.IManager"/></param>;
1764 public ManagerLogicalEndDetail(
1765 bool Is_regular_end = default(bool),
1766 Efl.Ui.Focus.IObject Element = default(Efl.Ui.Focus.IObject) )
1768 this.Is_regular_end = Is_regular_end;
1769 this.Element = Element;
1772 /// <summary>Implicit conversion to the managed representation from a native pointer.</summary>
1773 /// <param name="ptr">Native pointer to be converted.</param>
1774 public static implicit operator ManagerLogicalEndDetail(IntPtr ptr)
1776 var tmp = (ManagerLogicalEndDetail.NativeStruct)Marshal.PtrToStructure(ptr, typeof(ManagerLogicalEndDetail.NativeStruct));
1780 #pragma warning disable CS1591
1782 /// <summary>Internal wrapper for struct ManagerLogicalEndDetail.</summary>
1783 [StructLayout(LayoutKind.Sequential)]
1784 public struct NativeStruct
1786 /// <summary>Internal wrapper for field Is_regular_end</summary>
1787 public System.Byte Is_regular_end;
1788 /// <summary>Internal wrapper for field Element</summary>
1789 public System.IntPtr Element;
1790 /// <summary>Implicit conversion to the internal/marshalling representation.</summary>
1791 public static implicit operator ManagerLogicalEndDetail.NativeStruct(ManagerLogicalEndDetail _external_struct)
1793 var _internal_struct = new ManagerLogicalEndDetail.NativeStruct();
1794 _internal_struct.Is_regular_end = _external_struct.Is_regular_end ? (byte)1 : (byte)0;
1795 _internal_struct.Element = _external_struct.Element?.NativeHandle ?? System.IntPtr.Zero;
1796 return _internal_struct;
1799 /// <summary>Implicit conversion to the managed representation.</summary>
1800 public static implicit operator ManagerLogicalEndDetail(ManagerLogicalEndDetail.NativeStruct _internal_struct)
1802 var _external_struct = new ManagerLogicalEndDetail();
1803 _external_struct.Is_regular_end = _internal_struct.Is_regular_end != 0;
1805 _external_struct.Element = (Efl.Ui.Focus.IObjectConcrete) Efl.Eo.Globals.CreateWrapperFor(_internal_struct.Element);
1806 return _external_struct;
1811 #pragma warning restore CS1591