Example #1
0
 internal void ManagedCb(Efl.Object obj, ref Efl.Ui.SelectionData seldata)
 {
     Efl.Ui.SelectionData.NativeStruct _in_seldata = seldata;
     _cb(_cb_data, obj, ref _in_seldata);
     Eina.Error.RaiseIfUnhandledException();
     seldata = _in_seldata;
 }
        internal void ManagedCb(Efl.Object obj, ref Efl.Ui.SelectionData seldata)
        {
            var _in_seldata = Efl.Ui.SelectionData_StructConversion.ToInternal(seldata);

            _cb(_cb_data, obj, ref _in_seldata);
            Eina.Error.RaiseIfUnhandledException();
            seldata = Efl.Ui.SelectionData_StructConversion.ToManaged(_in_seldata);
        }
 ///<summary>Constructor for DragItemContainerDrop.</summary>
 public DragItemContainerDrop(
     Efl.Canvas.Object Item    = default(Efl.Canvas.Object),
     Efl.Ui.SelectionData Data = default(Efl.Ui.SelectionData),
     Eina.Position2D Pos       = default(Eina.Position2D))
 {
     this.Item = Item;
     this.Data = Data;
     this.Pos  = Pos;
 }
Example #4
0
            internal static void Cb(IntPtr cb_data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Efl.Eo.MarshalEo <Efl.Eo.NonOwnTag>))] Efl.Object obj, ref Efl.Ui.SelectionData.NativeStruct seldata)
            {
                GCHandle           handle = GCHandle.FromIntPtr(cb_data);
                SelectionDataReady cb     = (SelectionDataReady)handle.Target;

                Efl.Ui.SelectionData _in_seldata = seldata;

                try {
                    cb(obj, ref _in_seldata);
                } catch (Exception e) {
                    Eina.Log.Warning($"Callback error: {e.ToString()}");
                    Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                }
                seldata = _in_seldata;
            }