Пример #1
0
        ///<summary>Method to raise event DragStartRightEvt.</summary>
        public void On_DragStartRightEvt(Efl.Ui.IDraggableDragStartRightEvt_Args e)
        {
            EventHandler <Efl.Ui.IDraggableDragStartRightEvt_Args> evt;

            lock (eventLock) {
                evt = (EventHandler <Efl.Ui.IDraggableDragStartRightEvt_Args>)eventHandlers[DragStartRightEvtKey];
            }
            evt?.Invoke(this, e);
        }
Пример #2
0
 private void on_DragStartRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
 {
     Efl.Ui.IDraggableDragStartRightEvt_Args args = new Efl.Ui.IDraggableDragStartRightEvt_Args();
     args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object);
     try {
         On_DragStartRightEvt(args);
     } catch (Exception e) {
         Eina.Log.Error(e.ToString());
         Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
     }
 }
Пример #3
0
            /// <summary>Method to raise event DragStartRightEvt.</summary>
            public void OnDragStartRightEvt(Efl.Ui.IDraggableDragStartRightEvt_Args e)
            {
                var    key  = "_EFL_UI_EVENT_DRAG_START_RIGHT";
                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);
            }