Inheritance: global::System.IDisposable
コード例 #1
0
ファイル: MgShapes.cs プロジェクト: pankajcg/TouchVG
 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;
 }
コード例 #2
0
ファイル: MgEllipse.cs プロジェクト: vvhh2002/TouchVG
 public override float hitTest(Point2d pt, float tol, MgHitResult res)
 {
     float ret = touchvgPINVOKE.MgEllipse_hitTest(swigCPtr, Point2d.getCPtr(pt), tol, MgHitResult.getCPtr(res));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
コード例 #3
0
ファイル: MgHitResult.cs プロジェクト: stonelin129/Touchvg
 internal static HandleRef getCPtr(MgHitResult obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }