Exemplo n.º 1
0
        protected virtual void Dispose(DisposeTypes type)
        {
            if (disposed)
            {
                return;
            }

            if (type == DisposeTypes.Explicit)
            {
                //Called by User
                //Release your own managed resources here.
                //You should release all of your own disposable objects here.
            }

            //Release your own unmanaged resources here.
            //You should not access any managed member here except static instance.
            //because the execution order of Finalizes is non-deterministic.

            if (swigCPtr.Handle != IntPtr.Zero)
            {
                if (swigCMemOwn)
                {
                    swigCMemOwn = false;
                    InterOp.delete_VisualEventSignal(swigCPtr);
                }
                swigCPtr = new HandleRef(null, IntPtr.Zero);
            }
            disposed = true;
        }
Exemplo n.º 2
0
 public VisualEventSignal() : this(InterOp.new_VisualEventSignal(), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 3
0
 public void Emit(View target, int visualIndex, int signalId)
 {
     InterOp.VisualEventSignal_Emit(swigCPtr, View.getCPtr(target), visualIndex, signalId);
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 4
0
        public uint GetConnectionCount()
        {
            uint ret = InterOp.VisualEventSignal_GetConnectionCount(swigCPtr);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 5
0
        public bool Empty()
        {
            bool ret = InterOp.VisualEventSignal_Empty(swigCPtr);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 6
0
 public void Disconnect(Delegate func)
 {
     IntPtr ip = Marshal.GetFunctionPointerForDelegate <Delegate>(func);
     {
         InterOp.VisualEventSignal_Disconnect(swigCPtr, new HandleRef(this, ip));
         if (NDalicPINVOKE.SWIGPendingException.Pending)
         {
             throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
     }
 }