예제 #1
0
 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;
 }
예제 #2
0
    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);
    }
예제 #3
0
    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);
        }
    }
예제 #4
0
    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);
    }