private static void focus(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Object focus_elem) { Eina.Log.Debug("function efl_ui_focus_util_focus was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(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.Object focus_parent_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_focus_object_focus_parent_get was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd); if (wrapper != null) { Efl.Ui.Focus.Object _ret_var = default(Efl.Ui.Focus.Object); try { _ret_var = ((CalendarItem)wrapper).GetFocusParent(); } 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_object_focus_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)))); } }
/// <summary>Focus helper method</summary> /// <param name="focus_elem">Focus element</param> /// <returns></returns> public static void Focus(Efl.Ui.Focus.Object focus_elem) { Efl.Ui.Focus.UtilNativeInherit.efl_ui_focus_util_focus_ptr.Value.Delegate(focus_elem); Eina.Error.RaiseIfUnhandledException(); }