///<summary>Method to raise event CircularDependencyEvt.</summary> public void On_CircularDependencyEvt(Efl.Layout.ICalcCircularDependencyEvt_Args e) { EventHandler <Efl.Layout.ICalcCircularDependencyEvt_Args> evt; lock (eventLock) { evt = (EventHandler <Efl.Layout.ICalcCircularDependencyEvt_Args>)eventHandlers[CircularDependencyEvtKey]; } evt?.Invoke(this, e); }
private void on_CircularDependencyEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) { Efl.Layout.ICalcCircularDependencyEvt_Args args = new Efl.Layout.ICalcCircularDependencyEvt_Args(); args.arg = new Eina.Array <System.String>(evt.Info, false, false); try { On_CircularDependencyEvt(args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } }
/// <summary>Method to raise event CircularDependencyEvt.</summary> public void OnCircularDependencyEvt(Efl.Layout.ICalcCircularDependencyEvt_Args e) { var key = "_EFL_LAYOUT_EVENT_CIRCULAR_DEPENDENCY"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Edje, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = e.arg.Handle; Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); }