/// <summary>Called to get the logical parent of widget</summary>
        /// <param name="widget">Object to find parent for</param>
        /// <returns>Parent of parameter object</returns>
        virtual public Efl.Ui.Focus.IObject FindLogicalParent(Efl.Ui.Focus.IObject widget)
        {
            var _ret_var = Efl.Ui.Focus.IParentProviderNativeInherit.efl_ui_focus_parent_provider_find_logical_parent_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), widget);

            Eina.Error.RaiseIfUnhandledException();
            return(_ret_var);
        }
        /// <summary>Called to get the logical parent of widget</summary>
        /// <param name="widget">Object to find parent for</param>
        /// <returns>Parent of parameter object</returns>
        public Efl.Ui.Focus.IObject FindLogicalParent(Efl.Ui.Focus.IObject widget)
        {
            var _ret_var = Efl.Ui.Focus.IParentProviderNativeInherit.efl_ui_focus_parent_provider_find_logical_parent_ptr.Value.Delegate(this.NativeHandle, widget);

            Eina.Error.RaiseIfUnhandledException();
            return(_ret_var);
        }
Esempio n. 3
0
 private static void focus(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus_elem)
 {
     Eina.Log.Debug("function efl_ui_focus_util_focus was called");
     Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
     if (wrapper != null)
     {
         try {
             Util.Focus(focus_elem);
         } catch (Exception e) {
             Eina.Log.Warning($"Callback error: {e.ToString()}");
             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
         }
     }
     else
     {
         efl_ui_focus_util_focus_ptr.Value.Delegate(focus_elem);
     }
 }
        private static Efl.Ui.Focus.IObject find_logical_parent(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject widget)
        {
            Eina.Log.Debug("function efl_ui_focus_parent_provider_find_logical_parent was called");

            Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
            if (wrapper != null)
            {
                Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject);
                try {
                    _ret_var = ((ParentProviderStandard)wrapper).FindLogicalParent(widget);
                } 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_parent_provider_find_logical_parent_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), widget));
            }
        }
 /// <summary>Focus helper method</summary>
 /// <param name="focus_elem">Focus element</param>
 public static void Focus(Efl.Ui.Focus.IObject focus_elem)
 {
     Efl.Ui.Focus.Util.NativeMethods.efl_ui_focus_util_focus_ptr.Value.Delegate(focus_elem);
     Eina.Error.RaiseIfUnhandledException();
 }