Beispiel #1
0
        public bool zoomTo(Box2d rectWorld)
        {
            bool ret = touchvgPINVOKE.GiTransform_zoomTo__SWIG_2(swigCPtr, Box2d.getCPtr(rectWorld));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #2
0
        public static bool cubicSplinesIntersectBox(Box2d box, int n, Point2d knots, Vector2d knotvs)
        {
            bool ret = touchvgPINVOKE.mgnear_cubicSplinesIntersectBox__SWIG_2(Box2d.getCPtr(box), n, Point2d.getCPtr(knots), Vector2d.getCPtr(knotvs));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #3
0
        public bool isEqualTo(Box2d box)
        {
            bool ret = touchvgPINVOKE.Box2d_isEqualTo__SWIG_1(swigCPtr, Box2d.getCPtr(box));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #4
0
        public bool zoomTo(Box2d rectWorld, RECT_2D rcTo, bool adjust)
        {
            bool ret = touchvgPINVOKE.GiTransform_zoomTo__SWIG_0(swigCPtr, Box2d.getCPtr(rectWorld), RECT_2D.getCPtr(rcTo), adjust);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #5
0
        public Box2d offset(Box2d box)
        {
            Box2d ret = new Box2d(touchvgPINVOKE.Box2d_offset__SWIG_2(swigCPtr, Box2d.getCPtr(box)), true);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #6
0
        public Box2d unionWith(Box2d box)
        {
            Box2d ret = new Box2d(touchvgPINVOKE.Box2d_unionWith__SWIG_1(swigCPtr, Box2d.getCPtr(box)), false);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #7
0
        public bool contains(Box2d box, Tol tol)
        {
            bool ret = touchvgPINVOKE.Box2d_contains__SWIG_3(swigCPtr, Box2d.getCPtr(box), Tol.getCPtr(tol));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #8
0
        public static bool beziersIntersectBox(Box2d box, int count, Point2d points, bool closed)
        {
            bool ret = touchvgPINVOKE.mgnear_beziersIntersectBox__SWIG_0(Box2d.getCPtr(box), count, Point2d.getCPtr(points), closed);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #9
0
        public override bool hitTestBox(Box2d rect)
        {
            bool ret = touchvgPINVOKE.MgGrid_hitTestBox(swigCPtr, Box2d.getCPtr(rect));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #10
0
        public bool setClipWorld(Box2d rectWorld)
        {
            bool ret = touchvgPINVOKE.GiGraphics_setClipWorld(swigCPtr, Box2d.getCPtr(rectWorld));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #11
0
        public Box2d set(Box2d src)
        {
            Box2d ret = new Box2d(touchvgPINVOKE.Box2d_set__SWIG_1(swigCPtr, Box2d.getCPtr(src)), false);

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

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #13
0
        public bool drawRoundRect(GiContext ctx, Box2d rect, float rx)
        {
            bool ret = touchvgPINVOKE.GiGraphics_drawRoundRect__SWIG_2(swigCPtr, GiContext.getCPtr(ctx), Box2d.getCPtr(rect), rx);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #14
0
        public bool drawEllipse(GiContext ctx, Box2d rect)
        {
            bool ret = touchvgPINVOKE.GiGraphics_drawEllipse__SWIG_3(swigCPtr, GiContext.getCPtr(ctx), Box2d.getCPtr(rect));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #15
0
        public bool crossWithPath(MgPath path, Box2d box, Point2d ptCross)
        {
            bool ret = touchvgPINVOKE.MgPath_crossWithPath(swigCPtr, MgPath.getCPtr(path), Box2d.getCPtr(box), Point2d.getCPtr(ptCross));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #16
0
 private global::System.IntPtr SwigDirectorgetExtent()
 {
     return(Box2d.getCPtr(getExtent()).Handle);
 }
Beispiel #17
0
        public Box2d setWorldLimits(Box2d rect)
        {
            Box2d ret = new Box2d(touchvgPINVOKE.GiTransform_setWorldLimits(swigCPtr, Box2d.getCPtr(rect)), true);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #18
0
 public GiSaveClipBox(GiGraphics gs, Box2d rectWorld) : this(touchvgPINVOKE.new_GiSaveClipBox(GiGraphics.getCPtr(gs), Box2d.getCPtr(rectWorld)), true)
 {
     if (touchvgPINVOKE.SWIGPendingException.Pending)
     {
         throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #19
0
        public virtual bool showInSelect(MgMotion sender, int selState, MgShape shape, Box2d selbox)
        {
            bool ret = touchvgPINVOKE.MgActionDispatcher_showInSelect(swigCPtr, MgMotion.getCPtr(sender), selState, MgShape.getCPtr(shape), Box2d.getCPtr(selbox));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #20
0
        public static bool clipLine(Point2d pt1, Point2d pt2, Box2d box)
        {
            bool ret = touchvgPINVOKE.mglnrel_clipLine(Point2d.getCPtr(pt1), Point2d.getCPtr(pt2), Box2d.getCPtr(box));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #21
0
        public Box2d intersectWith(Box2d r1, Box2d r2)
        {
            Box2d ret = new Box2d(touchvgPINVOKE.Box2d_intersectWith__SWIG_0(swigCPtr, Box2d.getCPtr(r1), Box2d.getCPtr(r2)), false);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #22
0
        public virtual bool hitTestBox(Box2d rect)
        {
            bool ret = (SwigDerivedClassHasMethod("hitTestBox", swigMethodTypes21) ? touchvgPINVOKE.MgBaseShape_hitTestBoxSwigExplicitMgBaseShape(swigCPtr, Box2d.getCPtr(rect)) : touchvgPINVOKE.MgBaseShape_hitTestBox(swigCPtr, Box2d.getCPtr(rect)));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #23
0
 public override bool hitTestBox(Box2d rect) {
   bool ret = touchvgPINVOKE.MgImageShape_hitTestBox(swigCPtr, Box2d.getCPtr(rect));
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }