#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; using System.Threading; using System.ComponentModel; namespace Efl { namespace Ui { namespace Focus { /// Calculates the directions of Efl.Ui.Focus.Direction /// Each registered item will get an other registered object in each direction. You can get items for the currently focused item if you call request move. /// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Focus.ManagerCalc.NativeMethods] [Efl.Eo.BindingEntity] public class ManagerCalc : Efl.Object, Efl.Ui.Focus.IManager { /// Pointer to the native class description. public override System.IntPtr NativeClass { get { if (((object)this).GetType() == typeof(ManagerCalc)) { return GetEflClassStatic(); } else { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; } } } [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_focus_manager_calc_class_get(); /// Initializes a new instance of the class. /// Parent instance. public ManagerCalc(Efl.Object parent= null ) : base(efl_ui_focus_manager_calc_class_get(), parent) { FinishInstantiation(); } /// Subclasses should override this constructor if they are expected to be instantiated from native code. /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected ManagerCalc(ConstructingHandle ch) : base(ch) { } /// Initializes a new instance of the class. /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. /// The native pointer to be wrapped. protected ManagerCalc(Efl.Eo.Globals.WrappingHandle wh) : base(wh) { } /// Initializes a new instance of the class. /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. /// The pointer to the base native Eo class. /// The Efl.Object parent of this instance. protected ManagerCalc(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) { } /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) /// public event EventHandler RedirectChangedEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event RedirectChangedEvt. public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = e.arg.NativeHandle; Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// After this event, the manager object will calculate relations in the graph. Can be used to add / remove children in a lazy fashion. /// (Since EFL 1.22) public event EventHandler FlushPreEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event FlushPreEvt. public void OnFlushPreEvt(EventArgs e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Cached relationship calculation results have been invalidated. /// (Since EFL 1.22) public event EventHandler CoordsDirtyEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event CoordsDirtyEvt. public void OnCoordsDirtyEvt(EventArgs e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// The manager_focus property has changed. The previously focused object is passed as an event argument. /// (Since EFL 1.22) /// public event EventHandler ManagerFocusChangedEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event ManagerFocusChangedEvt. public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = e.arg.NativeHandle; Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. /// (Since EFL 1.22) /// public event EventHandler DirtyLogicFreezeChangedEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); args.arg = Marshal.ReadByte(evt.Info) != 0; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event DirtyLogicFreezeChangedEvt. public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); try { Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } finally { Marshal.FreeHGlobal(info); } } /// Register a new item in the graph. /// parent can not be null, it will be used as the parent in the logical tree. redirect will be set as redirect property on that manager, once child gets focused. /// The object to register /// The parent to use in the logical tree /// The redirect manager to set once this child is focused can be NULL for no redirect /// true if successful, false otherwise virtual public bool Register(Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IObject parent, Efl.Ui.Focus.IManager redirect) { var _ret_var = Efl.Ui.Focus.ManagerCalc.NativeMethods.efl_ui_focus_manager_calc_register_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),child, parent, redirect); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Register a new item only for the logical parent. /// The item can never get focus, it just helps to build a tree out of the items that are. /// The object to register /// The parent to use in the logical tree /// The redirect manager to set once this child is focused can be null for no redirect /// true if successful, false otherwise virtual public bool RegisterLogical(Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IObject parent, Efl.Ui.Focus.IManager redirect) { var _ret_var = Efl.Ui.Focus.ManagerCalc.NativeMethods.efl_ui_focus_manager_calc_register_logical_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),child, parent, redirect); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set a new redirect object for the given child. /// Once child is focused the redirect manager will be set in the redirect property. Set redirect to null if nothing should happen. /// The child to update /// Once child is focused this element will be set as redirect /// true if successful, false otherwise virtual public bool UpdateRedirect(Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IManager redirect) { var _ret_var = Efl.Ui.Focus.ManagerCalc.NativeMethods.efl_ui_focus_manager_calc_update_redirect_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),child, redirect); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set a new logical parent for the given child. /// The child to update /// The parent which now will be the logical parent of child /// true if successful, false otherwise virtual public bool UpdateParent(Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IObject parent) { var _ret_var = Efl.Ui.Focus.ManagerCalc.NativeMethods.efl_ui_focus_manager_calc_update_parent_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),child, parent); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Give the list of children a different order. /// the parent to update /// the list with the new order /// true if successful, false otherwise virtual public bool UpdateChildren(Efl.Ui.Focus.IObject parent, Eina.List children) { var _in_children = children.Handle; children.Own = false; var _ret_var = Efl.Ui.Focus.ManagerCalc.NativeMethods.efl_ui_focus_manager_calc_update_children_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),parent, _in_children); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Give the given order to the parent's child. /// Children from the list which are not true children are ignored. /// the parent to update /// the order of items virtual public void UpdateOrder(Efl.Ui.Focus.IObject parent, Eina.List children) { var _in_children = children.Handle; children.Own = false; Efl.Ui.Focus.ManagerCalc.NativeMethods.efl_ui_focus_manager_calc_update_order_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),parent, _in_children); Eina.Error.RaiseIfUnhandledException(); } /// Unregister the given item from the focus graph. /// The child to unregister. virtual public void Unregister(Efl.Ui.Focus.IObject child) { Efl.Ui.Focus.ManagerCalc.NativeMethods.efl_ui_focus_manager_calc_unregister_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),child); Eina.Error.RaiseIfUnhandledException(); } /// The element which is currently focused by this manager /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus 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. /// (Since EFL 1.22) /// Currently focused element. virtual public Efl.Ui.Focus.IObject GetManagerFocus() { var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The element which is currently focused by this manager /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus 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. /// (Since EFL 1.22) /// Currently focused element. virtual public void SetManagerFocus(Efl.Ui.Focus.IObject focus) { Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),focus); Eina.Error.RaiseIfUnhandledException(); } /// Add another manager to serve the move requests. /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. /// (Since EFL 1.22) /// The redirect manager. virtual public Efl.Ui.Focus.IManager GetRedirect() { var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Add another manager to serve the move requests. /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. /// (Since EFL 1.22) /// The redirect manager. virtual public void SetRedirect(Efl.Ui.Focus.IManager redirect) { Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),redirect); Eina.Error.RaiseIfUnhandledException(); } /// The list of elements which are at the border of the graph. /// This means one of the relations right,left or down,up are not set. This call flushes all changes. See /// (Since EFL 1.22) /// An iterator over the border objects. virtual public Eina.Iterator GetBorderElements() { var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false); } /// Get all elements that are at the border of the viewport /// Every element returned by this is located inside the viewport rectangle, but has a right, left, down or up neighbor outside the viewport. /// (Since EFL 1.22) /// The rectangle defining the viewport. /// The list of border objects. virtual public Eina.Iterator GetViewportElements(Eina.Rect viewport) { Eina.Rect.NativeStruct _in_viewport = viewport; var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_viewport); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false); } /// Root node for all logical subtrees. /// This property can only be set once. /// (Since EFL 1.22) /// Will be registered into this manager object. virtual public Efl.Ui.Focus.IObject GetRoot() { var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Root node for all logical subtrees. /// This property can only be set once. /// (Since EFL 1.22) /// Will be registered into this manager object. /// If true, this is the root node virtual public bool SetRoot(Efl.Ui.Focus.IObject root) { var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Move the focus in the given direction. /// This call flushes all changes. This means all changes between the last flush and now are computed. /// (Since EFL 1.22) /// The direction to move to. /// The element which is now focused. virtual public Efl.Ui.Focus.IObject Move(Efl.Ui.Focus.Direction direction) { var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_move_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),direction); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Return the object in the direction from child. /// (Since EFL 1.22) /// Direction to move focus. /// The child to move from. Pass null to indicate the currently focused child. /// Wether you want to have a logical node as result or a non-logical. Note, in a call no logical node will get focus. /// Object that would receive focus if moved in the given direction. virtual public Efl.Ui.Focus.IObject MoveRequest(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_move_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),direction, child, logical); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Return the widget in the direction next. /// The returned widget is a child of root. It's guaranteed that child will not be prepared once again, so you can call this function inside a call. /// (Since EFL 1.22) /// Parent for returned child. /// Child of passed parameter. virtual public Efl.Ui.Focus.IObject RequestSubchild(Efl.Ui.Focus.IObject root) { var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This will fetch the data from a registered node. /// Be aware this function will trigger a computation of all dirty nodes. /// (Since EFL 1.22) /// /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The child object to inspect. /// The list of relations starting from child. virtual public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_fetch_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),child); Eina.Error.RaiseIfUnhandledException(); var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged(_ret_var); Marshal.FreeHGlobal(_ret_var); return __ret_tmp; } /// Return the last logical object. /// The returned object is the last object that would be returned if you start at the root and move the direction into next. /// (Since EFL 1.22) /// Last object. virtual public Efl.Ui.Focus.ManagerLogicalEndDetail LogicalEnd() { var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_logical_end_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// 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. /// You should focus another element immediately after calling this, in order to always have a focused object. /// (Since EFL 1.22) virtual public void ResetHistory() { Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_reset_history_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } /// Remove the uppermost history element, and focus the previous one. /// 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. /// (Since EFL 1.22) virtual public void PopHistoryStack() { Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } /// Called when this manager is set as redirect. /// In case that this is called as an result of a move call, direction and entry will be set to the direction of the move call, and the entry object will be set to the object that had this manager as redirect property. /// (Since EFL 1.22) /// The direction in which this should be setup. /// The object that caused this manager to be redirect. virtual public void SetupOnFirstTouch(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),direction, entry); Eina.Error.RaiseIfUnhandledException(); } /// This disables the cache invalidation when an object is moved. /// 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 to re-enable relationship calculation. /// (Since EFL 1.22) virtual public void FreezeDirtyLogic() { Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } /// This enables the cache invalidation when an object is moved. /// This is the counterpart to . /// (Since EFL 1.22) virtual public void DirtyLogicUnfreeze() { Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } /// The element which is currently focused by this manager /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus 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. /// (Since EFL 1.22) /// Currently focused element. public Efl.Ui.Focus.IObject ManagerFocus { get { return GetManagerFocus(); } set { SetManagerFocus(value); } } /// Add another manager to serve the move requests. /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. /// (Since EFL 1.22) /// The redirect manager. public Efl.Ui.Focus.IManager Redirect { get { return GetRedirect(); } set { SetRedirect(value); } } /// The list of elements which are at the border of the graph. /// This means one of the relations right,left or down,up are not set. This call flushes all changes. See /// (Since EFL 1.22) /// An iterator over the border objects. public Eina.Iterator BorderElements { get { return GetBorderElements(); } } /// Root node for all logical subtrees. /// This property can only be set once. /// (Since EFL 1.22) /// Will be registered into this manager object. public Efl.Ui.Focus.IObject Root { get { return GetRoot(); } set { SetRoot(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Focus.ManagerCalc.efl_ui_focus_manager_calc_class_get(); } /// Wrapper for native methods and virtual method delegates. /// For internal use by generated code only. public new class NativeMethods : Efl.Object.NativeMethods { private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); /// Gets the list of Eo operations to override. /// The list of Eo operations to be overload. public override System.Collections.Generic.List GetEoOps(System.Type type) { var descs = new System.Collections.Generic.List(); var methods = Efl.Eo.Globals.GetUserMethods(type); if (efl_ui_focus_manager_calc_register_static_delegate == null) { efl_ui_focus_manager_calc_register_static_delegate = new efl_ui_focus_manager_calc_register_delegate(register); } if (methods.FirstOrDefault(m => m.Name == "Register") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_calc_register"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_calc_register_static_delegate) }); } if (efl_ui_focus_manager_calc_register_logical_static_delegate == null) { efl_ui_focus_manager_calc_register_logical_static_delegate = new efl_ui_focus_manager_calc_register_logical_delegate(register_logical); } if (methods.FirstOrDefault(m => m.Name == "RegisterLogical") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_calc_register_logical"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_calc_register_logical_static_delegate) }); } if (efl_ui_focus_manager_calc_update_redirect_static_delegate == null) { efl_ui_focus_manager_calc_update_redirect_static_delegate = new efl_ui_focus_manager_calc_update_redirect_delegate(update_redirect); } if (methods.FirstOrDefault(m => m.Name == "UpdateRedirect") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_calc_update_redirect"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_calc_update_redirect_static_delegate) }); } if (efl_ui_focus_manager_calc_update_parent_static_delegate == null) { efl_ui_focus_manager_calc_update_parent_static_delegate = new efl_ui_focus_manager_calc_update_parent_delegate(update_parent); } if (methods.FirstOrDefault(m => m.Name == "UpdateParent") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_calc_update_parent"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_calc_update_parent_static_delegate) }); } if (efl_ui_focus_manager_calc_update_children_static_delegate == null) { efl_ui_focus_manager_calc_update_children_static_delegate = new efl_ui_focus_manager_calc_update_children_delegate(update_children); } if (methods.FirstOrDefault(m => m.Name == "UpdateChildren") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_calc_update_children"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_calc_update_children_static_delegate) }); } if (efl_ui_focus_manager_calc_update_order_static_delegate == null) { efl_ui_focus_manager_calc_update_order_static_delegate = new efl_ui_focus_manager_calc_update_order_delegate(update_order); } if (methods.FirstOrDefault(m => m.Name == "UpdateOrder") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_calc_update_order"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_calc_update_order_static_delegate) }); } if (efl_ui_focus_manager_calc_unregister_static_delegate == null) { efl_ui_focus_manager_calc_unregister_static_delegate = new efl_ui_focus_manager_calc_unregister_delegate(unregister); } if (methods.FirstOrDefault(m => m.Name == "Unregister") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_calc_unregister"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_calc_unregister_static_delegate) }); } if (efl_ui_focus_manager_focus_get_static_delegate == null) { efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); } if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) { 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) }); } if (efl_ui_focus_manager_focus_set_static_delegate == null) { efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); } if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) { 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) }); } if (efl_ui_focus_manager_redirect_get_static_delegate == null) { efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); } if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) { 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) }); } if (efl_ui_focus_manager_redirect_set_static_delegate == null) { efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); } if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) { 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) }); } if (efl_ui_focus_manager_border_elements_get_static_delegate == null) { efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); } if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) { 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) }); } if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) { efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); } if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) { 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) }); } if (efl_ui_focus_manager_root_get_static_delegate == null) { efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); } if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) { 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) }); } if (efl_ui_focus_manager_root_set_static_delegate == null) { efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); } if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) { 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) }); } if (efl_ui_focus_manager_move_static_delegate == null) { efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); } if (methods.FirstOrDefault(m => m.Name == "Move") != null) { 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) }); } if (efl_ui_focus_manager_request_move_static_delegate == null) { efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); } if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) { 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) }); } if (efl_ui_focus_manager_request_subchild_static_delegate == null) { efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); } if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) { 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) }); } if (efl_ui_focus_manager_fetch_static_delegate == null) { efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); } if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) { 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) }); } if (efl_ui_focus_manager_logical_end_static_delegate == null) { efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); } if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) { 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) }); } if (efl_ui_focus_manager_reset_history_static_delegate == null) { efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); } if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) { 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) }); } if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) { efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); } if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) { 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) }); } if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) { efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); } if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) { 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) }); } if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) { efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); } if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) { 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) }); } if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) { efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); } if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) { 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) }); } descs.AddRange(base.GetEoOps(type)); return descs; } /// Returns the Eo class for the native methods of this class. /// The native class pointer. public override IntPtr GetEflClass() { return Efl.Ui.Focus.ManagerCalc.efl_ui_focus_manager_calc_class_get(); } #pragma warning disable CA1707, CS1591, SA1300, SA1600 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_manager_calc_register_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject parent, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_manager_calc_register_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject parent, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_calc_register_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_calc_register"); private static bool register(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IObject parent, Efl.Ui.Focus.IManager redirect) { Eina.Log.Debug("function efl_ui_focus_manager_calc_register was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((ManagerCalc)ws.Target).Register(child, parent, redirect); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_focus_manager_calc_register_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, parent, redirect); } } private static efl_ui_focus_manager_calc_register_delegate efl_ui_focus_manager_calc_register_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_manager_calc_register_logical_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject parent, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_manager_calc_register_logical_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject parent, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_calc_register_logical_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_calc_register_logical"); private static bool register_logical(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IObject parent, Efl.Ui.Focus.IManager redirect) { Eina.Log.Debug("function efl_ui_focus_manager_calc_register_logical was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((ManagerCalc)ws.Target).RegisterLogical(child, parent, redirect); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_focus_manager_calc_register_logical_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, parent, redirect); } } private static efl_ui_focus_manager_calc_register_logical_delegate efl_ui_focus_manager_calc_register_logical_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_manager_calc_update_redirect_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_manager_calc_update_redirect_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_calc_update_redirect_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_calc_update_redirect"); private static bool update_redirect(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IManager redirect) { Eina.Log.Debug("function efl_ui_focus_manager_calc_update_redirect was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((ManagerCalc)ws.Target).UpdateRedirect(child, redirect); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_focus_manager_calc_update_redirect_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, redirect); } } private static efl_ui_focus_manager_calc_update_redirect_delegate efl_ui_focus_manager_calc_update_redirect_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_manager_calc_update_parent_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject parent); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_manager_calc_update_parent_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject parent); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_calc_update_parent_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_calc_update_parent"); private static bool update_parent(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IObject parent) { Eina.Log.Debug("function efl_ui_focus_manager_calc_update_parent was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((ManagerCalc)ws.Target).UpdateParent(child, parent); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_focus_manager_calc_update_parent_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, parent); } } private static efl_ui_focus_manager_calc_update_parent_delegate efl_ui_focus_manager_calc_update_parent_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_manager_calc_update_children_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject parent, System.IntPtr children); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_manager_calc_update_children_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject parent, System.IntPtr children); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_calc_update_children_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_calc_update_children"); private static bool update_children(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject parent, System.IntPtr children) { Eina.Log.Debug("function efl_ui_focus_manager_calc_update_children was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { var _in_children = new Eina.List(children, true, false); bool _ret_var = default(bool); try { _ret_var = ((ManagerCalc)ws.Target).UpdateChildren(parent, _in_children); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_focus_manager_calc_update_children_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), parent, children); } } private static efl_ui_focus_manager_calc_update_children_delegate efl_ui_focus_manager_calc_update_children_static_delegate; private delegate void efl_ui_focus_manager_calc_update_order_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject parent, System.IntPtr children); public delegate void efl_ui_focus_manager_calc_update_order_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject parent, System.IntPtr children); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_calc_update_order_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_calc_update_order"); private static void update_order(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject parent, System.IntPtr children) { Eina.Log.Debug("function efl_ui_focus_manager_calc_update_order was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { var _in_children = new Eina.List(children, true, false); try { ((ManagerCalc)ws.Target).UpdateOrder(parent, _in_children); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_focus_manager_calc_update_order_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), parent, children); } } private static efl_ui_focus_manager_calc_update_order_delegate efl_ui_focus_manager_calc_update_order_static_delegate; private delegate void efl_ui_focus_manager_calc_unregister_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); public delegate void efl_ui_focus_manager_calc_unregister_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_calc_unregister_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_calc_unregister"); private static void unregister(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) { Eina.Log.Debug("function efl_ui_focus_manager_calc_unregister was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((ManagerCalc)ws.Target).Unregister(child); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_focus_manager_calc_unregister_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); } } private static efl_ui_focus_manager_calc_unregister_delegate efl_ui_focus_manager_calc_unregister_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_get"); private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); try { _ret_var = ((ManagerCalc)ws.Target).GetManagerFocus(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; 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.Ui.Focus.IObject focus); public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_set"); private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) { Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((ManagerCalc)ws.Target).SetManagerFocus(focus); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); } } private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_get"); private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); try { _ret_var = ((ManagerCalc)ws.Target).GetRedirect(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; 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.Ui.Focus.IManager redirect); public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_set"); private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) { Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((ManagerCalc)ws.Target).SetRedirect(redirect); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); } } private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_border_elements_get"); private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Iterator _ret_var = default(Eina.Iterator); try { _ret_var = ((ManagerCalc)ws.Target).GetBorderElements(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var.Handle; } else { return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_viewport_elements_get"); private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) { Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Rect _in_viewport = viewport; Eina.Iterator _ret_var = default(Eina.Iterator); try { _ret_var = ((ManagerCalc)ws.Target).GetViewportElements(_in_viewport); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var.Handle; } else { 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); } } private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_get"); private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); try { _ret_var = ((ManagerCalc)ws.Target).GetRoot(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; [return: MarshalAs(UnmanagedType.U1)] 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.Ui.Focus.IObject root); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_set"); private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) { Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((ManagerCalc)ws.Target).SetRoot(root); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); } } private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_move"); private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) { Eina.Log.Debug("function efl_ui_focus_manager_move was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); try { _ret_var = ((ManagerCalc)ws.Target).Move(direction); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); } } private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] 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.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] 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.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_move"); 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) { Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); try { _ret_var = ((ManagerCalc)ws.Target).MoveRequest(direction, child, logical); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { 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); } } private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] 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.Ui.Focus.IObject root); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] 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.Ui.Focus.IObject root); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_subchild"); private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) { Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); try { _ret_var = ((ManagerCalc)ws.Target).RequestSubchild(root); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); } } private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; 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.Ui.Focus.IObject child); public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_fetch"); private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) { Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); try { _ret_var = ((ManagerCalc)ws.Target).Fetch(child); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); } else { return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); } } private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_logical_end"); private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); try { _ret_var = ((ManagerCalc)ws.Target).LogicalEnd(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_reset_history"); private static void reset_history(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((ManagerCalc)ws.Target).ResetHistory(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_pop_history_stack"); private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((ManagerCalc)ws.Target).PopHistoryStack(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; 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.Ui.Focus.IObject entry); 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.Ui.Focus.IObject entry); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_setup_on_first_touch"); private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((ManagerCalc)ws.Target).SetupOnFirstTouch(direction, entry); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { 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); } } private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_freeze"); private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((ManagerCalc)ws.Target).FreezeDirtyLogic(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((ManagerCalc)ws.Target).DirtyLogicUnfreeze(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; #pragma warning restore CA1707, CS1591, SA1300, SA1600 } } } } } #if EFL_BETA #pragma warning disable CS1591 public static class Efl_Ui_FocusManagerCalc_ExtensionMethods { public static Efl.BindableProperty ManagerFocus(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Focus.ManagerCalc { return new Efl.BindableProperty("manager_focus", fac); } public static Efl.BindableProperty Redirect(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Focus.ManagerCalc { return new Efl.BindableProperty("redirect", fac); } public static Efl.BindableProperty Root(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Focus.ManagerCalc { return new Efl.BindableProperty("root", fac); } } #pragma warning restore CS1591 #endif