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;
        }
 public VisualEventSignal() : this(InterOp.new_VisualEventSignal(), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 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();
     }
 }
        public uint GetConnectionCount()
        {
            uint ret = InterOp.VisualEventSignal_GetConnectionCount(swigCPtr);

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

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
 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();
         }
     }
 }