Exemplo n.º 1
0
        ///<summary>Method to raise event DragStartDownEvt.</summary>
        public void On_DragStartDownEvt(Efl.Ui.IDraggableDragStartDownEvt_Args e)
        {
            EventHandler <Efl.Ui.IDraggableDragStartDownEvt_Args> evt;

            lock (eventLock) {
                evt = (EventHandler <Efl.Ui.IDraggableDragStartDownEvt_Args>)eventHandlers[DragStartDownEvtKey];
            }
            evt?.Invoke(this, e);
        }
Exemplo n.º 2
0
 private void on_DragStartDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
 {
     Efl.Ui.IDraggableDragStartDownEvt_Args args = new Efl.Ui.IDraggableDragStartDownEvt_Args();
     args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object);
     try {
         On_DragStartDownEvt(args);
     } catch (Exception e) {
         Eina.Log.Error(e.ToString());
         Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
     }
 }
Exemplo n.º 3
0
            /// <summary>Method to raise event DragStartDownEvt.</summary>
            public void OnDragStartDownEvt(Efl.Ui.IDraggableDragStartDownEvt_Args e)
            {
                var    key  = "_EFL_UI_EVENT_DRAG_START_DOWN";
                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);
            }