internal void ManagedCb(ref Efl.Event kw_event) { Efl.Event.NativeStruct _in_kw_event = kw_event; _cb(_cb_data, ref _in_kw_event); Eina.Error.RaiseIfUnhandledException(); kw_event = _in_kw_event; }
internal System.IntPtr ManagedCb(ref Efl.Event kw_event) { Efl.Event.NativeStruct _in_kw_event = kw_event; var _ret_var = _cb(_cb_data, ref _in_kw_event); Eina.Error.RaiseIfUnhandledException(); kw_event = _in_kw_event; return(_ret_var); }
internal static void Cb(IntPtr cb_data, Efl.Event.NativeStruct kw_event) { GCHandle handle = GCHandle.FromIntPtr(cb_data); EflThreadIOCall cb = (EflThreadIOCall)handle.Target; try { cb(kw_event); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } }
internal static System.IntPtr Cb(IntPtr cb_data, Efl.Event.NativeStruct kw_event) { GCHandle handle = GCHandle.FromIntPtr(cb_data); EflThreadIOCallSync cb = (EflThreadIOCallSync)handle.Target; System.IntPtr _ret_var = default(System.IntPtr); try { _ret_var = cb(kw_event); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return(_ret_var); }