///<summary>Method to raise event ItemUnselectedEvt.</summary> public void On_ItemUnselectedEvt(Efl.Ui.ISelectableItemUnselectedEvt_Args e) { EventHandler <Efl.Ui.ISelectableItemUnselectedEvt_Args> evt; lock (eventLock) { evt = (EventHandler <Efl.Ui.ISelectableItemUnselectedEvt_Args>)eventHandlers[ItemUnselectedEvtKey]; } evt?.Invoke(this, e); }
private void on_ItemUnselectedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) { Efl.Ui.ISelectableItemUnselectedEvt_Args args = new Efl.Ui.ISelectableItemUnselectedEvt_Args(); args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); try { On_ItemUnselectedEvt(args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } }
///<summary>Method to raise event ItemUnselectedEvt.</summary> public void OnItemUnselectedEvt(Efl.Ui.ISelectableItemUnselectedEvt_Args e) { var key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; 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); }