示例#1
0
        ///<summary>Method to raise event ContentRemovedEvt.</summary>
        public void On_ContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e)
        {
            EventHandler <Efl.IContainerContentRemovedEvt_Args> evt;

            lock (eventLock) {
                evt = (EventHandler <Efl.IContainerContentRemovedEvt_Args>)eventHandlers[ContentRemovedEvtKey];
            }
            evt?.Invoke(this, e);
        }
示例#2
0
 private void on_ContentRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
 {
     Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args();
     args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete);
     try {
         On_ContentRemovedEvt(args);
     } catch (Exception e) {
         Eina.Log.Error(e.ToString());
         Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
     }
 }
示例#3
0
        ///<summary>Method to raise event ContentRemovedEvt.</summary>
        public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e)
        {
            var    key  = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED";
            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);
        }