///<summary>Method to raise event ItemSelectedEvt.</summary> public void On_ItemSelectedEvt(Efl.Ui.ISelectableItemSelectedEvt_Args e) { EventHandler <Efl.Ui.ISelectableItemSelectedEvt_Args> evt; lock (eventLock) { evt = (EventHandler <Efl.Ui.ISelectableItemSelectedEvt_Args>)eventHandlers[ItemSelectedEvtKey]; } evt?.Invoke(this, e); }
private void on_ItemSelectedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) { Efl.Ui.ISelectableItemSelectedEvt_Args args = new Efl.Ui.ISelectableItemSelectedEvt_Args(); args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); try { On_ItemSelectedEvt(args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } }
///<summary>Method to raise event ItemSelectedEvt.</summary> public void OnItemSelectedEvt(Efl.Ui.ISelectableItemSelectedEvt_Args e) { var key = "_EFL_UI_EVENT_ITEM_SELECTED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = e.arg.NativeHandle; Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); }