getCPtr() static private method

static private getCPtr ( MgHitResult obj ) : HandleRef
obj MgHitResult
return HandleRef
Esempio n. 1
0
        public override float hitTest(Point2d pt, float tol, MgHitResult res)
        {
            float ret = touchvgPINVOKE.MgGrid_hitTest(swigCPtr, Point2d.getCPtr(pt), tol, MgHitResult.getCPtr(res));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 2
0
        public MgShape hitTest(Box2d limits, MgHitResult res)
        {
            IntPtr  cPtr = touchvgPINVOKE.MgShapes_hitTest(swigCPtr, Box2d.getCPtr(limits), MgHitResult.getCPtr(res));
            MgShape ret  = (cPtr == IntPtr.Zero) ? null : new MgShape(cPtr, false);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }