Inheritance: touchvg.core.MgObject
Beispiel #1
0
        public MgShape addShape(MgMotion sender)
        {
            IntPtr  cPtr = touchvgPINVOKE.MgCommandDraw_addShape__SWIG_1(swigCPtr, MgMotion.getCPtr(sender));
            MgShape ret  = (cPtr == IntPtr.Zero) ? null : new MgShape(cPtr, false);

            return(ret);
        }
Beispiel #2
0
        public MgShape dynshape()
        {
            IntPtr  cPtr = touchvgPINVOKE.MgCommandDraw_dynshape(swigCPtr);
            MgShape ret  = (cPtr == IntPtr.Zero) ? null : new MgShape(cPtr, false);

            return(ret);
        }
Beispiel #3
0
        public virtual MgShape createShape(int type)
        {
            IntPtr  cPtr = touchvgPINVOKE.MgShapeFactory_createShape(swigCPtr, type);
            MgShape ret  = (cPtr == IntPtr.Zero) ? null : new MgShape(cPtr, false);

            return(ret);
        }
Beispiel #4
0
        public virtual MgShape addImageShape(MgMotion sender, string name, float xc, float yc, float w, float h)
        {
            IntPtr  cPtr = touchvgPINVOKE.MgCmdManager_addImageShape__SWIG_1(swigCPtr, MgMotion.getCPtr(sender), name, xc, yc, w, h);
            MgShape ret  = (cPtr == IntPtr.Zero) ? null : new MgShape(cPtr, false);

            return(ret);
        }
Beispiel #5
0
        public MgShape getNext()
        {
            IntPtr  cPtr = touchvgPINVOKE.MgShapeIterator_getNext(swigCPtr);
            MgShape ret  = (cPtr == IntPtr.Zero) ? null : new MgShape(cPtr, false);

            return(ret);
        }
Beispiel #6
0
        public MgShape getOwnerShape()
        {
            IntPtr  cPtr = touchvgPINVOKE.MgComposite_getOwnerShape(swigCPtr);
            MgShape ret  = (cPtr == IntPtr.Zero) ? null : new MgShape(cPtr, false);

            return(ret);
        }
Beispiel #7
0
        public MgShape getLastShape()
        {
            IntPtr  cPtr = touchvgPINVOKE.MgShapes_getLastShape(swigCPtr);
            MgShape ret  = (cPtr == IntPtr.Zero) ? null : new MgShape(cPtr, false);

            return(ret);
        }
Beispiel #8
0
 public MgShape addShape(MgShape src)
 {
     IntPtr cPtr = touchvgPINVOKE.MgShapes_addShape(swigCPtr, MgShape.getCPtr(src));
     MgShape ret = (cPtr == IntPtr.Zero) ? null : new MgShape(cPtr, false);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Beispiel #9
0
        public static MgShape getParentShape(MgShape shape)
        {
            IntPtr  cPtr = touchvgPINVOKE.MgShapes_getParentShape(MgShape.getCPtr(shape));
            MgShape ret  = (cPtr == IntPtr.Zero) ? null : new MgShape(cPtr, false);

            return(ret);
        }
Beispiel #10
0
        public MgShape findShapeByType(int type)
        {
            IntPtr  cPtr = touchvgPINVOKE.MgShapes_findShapeByType(swigCPtr, type);
            MgShape ret  = (cPtr == IntPtr.Zero) ? null : new MgShape(cPtr, false);

            return(ret);
        }
Beispiel #11
0
        public MgShape findShape(int sid)
        {
            IntPtr  cPtr = touchvgPINVOKE.MgShapeDoc_findShape(swigCPtr, sid);
            MgShape ret  = (cPtr == IntPtr.Zero) ? null : new MgShape(cPtr, false);

            return(ret);
        }
Beispiel #12
0
        public MgShape addShapeByType(MgShapeFactory factory, int type)
        {
            IntPtr  cPtr = touchvgPINVOKE.MgShapes_addShapeByType(swigCPtr, MgShapeFactory.getCPtr(factory), type);
            MgShape ret  = (cPtr == IntPtr.Zero) ? null : new MgShape(cPtr, false);

            return(ret);
        }
Beispiel #13
0
        public MgShape get(int index)
        {
            IntPtr  cPtr = touchvgPINVOKE.ConstShapes_get(swigCPtr, index);
            MgShape ret  = (cPtr == IntPtr.Zero) ? null : new MgShape(cPtr, false);

            return(ret);
        }
Beispiel #14
0
        public static MgShape findShapeByImageID(MgShapes shapes, string name)
        {
            IntPtr  cPtr = touchvgPINVOKE.MgImageShape_findShapeByImageID(MgShapes.getCPtr(shapes), name);
            MgShape ret  = (cPtr == IntPtr.Zero) ? null : new MgShape(cPtr, false);

            return(ret);
        }
Beispiel #15
0
        public override int addShapeActions(MgMotion arg0, Ints arg1, int n, MgShape arg3)
        {
            int ret = (SwigDerivedClassHasMethod("addShapeActions", swigMethodTypes4) ? touchvgPINVOKE.CmdObserverDefault_addShapeActionsSwigExplicitCmdObserverDefault(swigCPtr, MgMotion.getCPtr(arg0), Ints.getCPtr(arg1), n, MgShape.getCPtr(arg3)) : touchvgPINVOKE.CmdObserverDefault_addShapeActions(swigCPtr, MgMotion.getCPtr(arg0), Ints.getCPtr(arg1), n, MgShape.getCPtr(arg3)));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #16
0
        public virtual int addShapeActions(MgMotion sender, Ints actions, int n, MgShape sp)
        {
            int ret = touchvgPINVOKE.CmdObserver_addShapeActions(swigCPtr, MgMotion.getCPtr(sender), Ints.getCPtr(actions), n, MgShape.getCPtr(sp));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #17
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 #18
0
 public override void onShapeMoved(MgMotion sender, MgShape sp, int segment)
 {
     if (SwigDerivedClassHasMethod("onShapeMoved", swigMethodTypes17))
     {
         touchvgPINVOKE.CmdObserverDefault_onShapeMovedSwigExplicitCmdObserverDefault(swigCPtr, MgMotion.getCPtr(sender), MgShape.getCPtr(sp), segment);
     }
     else
     {
         touchvgPINVOKE.CmdObserverDefault_onShapeMoved(swigCPtr, MgMotion.getCPtr(sender), MgShape.getCPtr(sp), segment);
     }
 }
Beispiel #19
0
 public override void drawInSelectCommand(MgMotion sender, MgShape sp, int handleIndex, GiGraphics gs)
 {
     if (SwigDerivedClassHasMethod("drawInSelectCommand", swigMethodTypes8))
     {
         touchvgPINVOKE.CmdObserverDefault_drawInSelectCommandSwigExplicitCmdObserverDefault(swigCPtr, MgMotion.getCPtr(sender), MgShape.getCPtr(sp), handleIndex, GiGraphics.getCPtr(gs));
     }
     else
     {
         touchvgPINVOKE.CmdObserverDefault_drawInSelectCommand(swigCPtr, MgMotion.getCPtr(sender), MgShape.getCPtr(sp), handleIndex, GiGraphics.getCPtr(gs));
     }
 }
Beispiel #20
0
 public override void setOwner(MgShape owner)
 {
     if (SwigDerivedClassHasMethod("setOwner", swigMethodTypes7))
     {
         touchvgPINVOKE.MgComposite_setOwnerSwigExplicitMgComposite(swigCPtr, MgShape.getCPtr(owner));
     }
     else
     {
         touchvgPINVOKE.MgComposite_setOwner(swigCPtr, MgShape.getCPtr(owner));
     }
 }
Beispiel #21
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);
        }
Beispiel #22
0
        public MgShape addShape(MgShape src)
        {
            IntPtr  cPtr = touchvgPINVOKE.MgShapes_addShape(swigCPtr, MgShape.getCPtr(src));
            MgShape ret  = (cPtr == IntPtr.Zero) ? null : new MgShape(cPtr, false);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #23
0
 public virtual void setOwner(MgShape owner)
 {
     if (SwigDerivedClassHasMethod("setOwner", swigMethodTypes7))
     {
         touchvgPINVOKE.MgBaseShape_setOwnerSwigExplicitMgBaseShape(swigCPtr, MgShape.getCPtr(owner));
     }
     else
     {
         touchvgPINVOKE.MgBaseShape_setOwner(swigCPtr, MgShape.getCPtr(owner));
     }
 }
Beispiel #24
0
 public ConstShapes(MgShape v1, MgShape v2) : this(touchvgPINVOKE.new_ConstShapes__SWIG_2(MgShape.getCPtr(v1), MgShape.getCPtr(v2)), true)
 {
 }
Beispiel #25
0
 internal static HandleRef getCPtr(MgShape obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Beispiel #26
0
 public virtual bool shapeWillDeleted(MgShape shape) {
   bool ret = touchvgPINVOKE.MgView_shapeWillDeleted(swigCPtr, MgShape.getCPtr(shape));
   return ret;
 }
Beispiel #27
0
 public virtual bool onShapeCanTransform(MgMotion sender, MgShape sp) {
   bool ret = touchvgPINVOKE.CmdObserver_onShapeCanTransform(swigCPtr, MgMotion.getCPtr(sender), MgShape.getCPtr(sp));
   return ret;
 }
 public override bool onShapeCanRotated(MgMotion sender, MgShape sp) {
   bool ret = (SwigDerivedClassHasMethod("onShapeCanRotated", swigMethodTypes13) ? touchvgPINVOKE.CmdObserverDefault_onShapeCanRotatedSwigExplicitCmdObserverDefault(swigCPtr, MgMotion.getCPtr(sender), MgShape.getCPtr(sp)) : touchvgPINVOKE.CmdObserverDefault_onShapeCanRotated(swigCPtr, MgMotion.getCPtr(sender), MgShape.getCPtr(sp)));
   return ret;
 }
 public override void drawInSelectCommand(MgMotion sender, MgShape sp, int handleIndex, GiGraphics gs) {
   if (SwigDerivedClassHasMethod("drawInSelectCommand", swigMethodTypes8)) touchvgPINVOKE.CmdObserverDefault_drawInSelectCommandSwigExplicitCmdObserverDefault(swigCPtr, MgMotion.getCPtr(sender), MgShape.getCPtr(sp), handleIndex, GiGraphics.getCPtr(gs)); else touchvgPINVOKE.CmdObserverDefault_drawInSelectCommand(swigCPtr, MgMotion.getCPtr(sender), MgShape.getCPtr(sp), handleIndex, GiGraphics.getCPtr(gs));
 }
Beispiel #30
0
 public override void setOwner(MgShape owner)
 {
     if (SwigDerivedClassHasMethod("setOwner", swigMethodTypes7)) touchvgPINVOKE.MgComposite_setOwnerSwigExplicitMgComposite(swigCPtr, MgShape.getCPtr(owner)); else touchvgPINVOKE.MgComposite_setOwner(swigCPtr, MgShape.getCPtr(owner));
 }
Beispiel #31
0
 public virtual void drawInSelectCommand(MgMotion sender, MgShape sp, int handleIndex, GiGraphics gs) {
   touchvgPINVOKE.CmdObserver_drawInSelectCommand(swigCPtr, MgMotion.getCPtr(sender), MgShape.getCPtr(sp), handleIndex, GiGraphics.getCPtr(gs));
 }
Beispiel #32
0
        public virtual bool canOffsetShapeAlone(MgShape shape)
        {
            bool ret = (SwigDerivedClassHasMethod("canOffsetShapeAlone", swigMethodTypes33) ? touchvgPINVOKE.MgComposite_canOffsetShapeAloneSwigExplicitMgComposite(swigCPtr, MgShape.getCPtr(shape)) : touchvgPINVOKE.MgComposite_canOffsetShapeAlone(swigCPtr, MgShape.getCPtr(shape)));

            return(ret);
        }
Beispiel #33
0
 public virtual bool onShapeWillDeleted(MgMotion sender, MgShape sp) {
   bool ret = touchvgPINVOKE.CmdObserver_onShapeWillDeleted(swigCPtr, MgMotion.getCPtr(sender), MgShape.getCPtr(sp));
   return ret;
 }
Beispiel #34
0
 public virtual void onShapeDeleted(MgMotion sender, MgShape sp) {
   touchvgPINVOKE.CmdObserver_onShapeDeleted(swigCPtr, MgMotion.getCPtr(sender), MgShape.getCPtr(sp));
 }
Beispiel #35
0
 public virtual void shapeMoved(MgShape shape, int segment) {
   touchvgPINVOKE.MgView_shapeMoved(swigCPtr, MgShape.getCPtr(shape), segment);
 }
Beispiel #36
0
 public virtual bool shapeCanUngroup(MgShape shape) {
   bool ret = touchvgPINVOKE.MgView_shapeCanUngroup(swigCPtr, MgShape.getCPtr(shape));
   return ret;
 }
Beispiel #37
0
 public virtual bool removeShape(MgShape shape) {
   bool ret = touchvgPINVOKE.MgView_removeShape(swigCPtr, MgShape.getCPtr(shape));
   return ret;
 }
 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 #39
0
 public void set(int index, MgShape v1, MgShape v2)
 {
     touchvgPINVOKE.ConstShapes_set__SWIG_1(swigCPtr, index, MgShape.getCPtr(v1), MgShape.getCPtr(v2));
 }
Beispiel #40
0
 public virtual void setOwner(MgShape owner)
 {
     if (SwigDerivedClassHasMethod("setOwner", swigMethodTypes7)) touchvgPINVOKE.MgBaseShape_setOwnerSwigExplicitMgBaseShape(swigCPtr, MgShape.getCPtr(owner)); else touchvgPINVOKE.MgBaseShape_setOwner(swigCPtr, MgShape.getCPtr(owner));
 }
 public override int addShapeActions(MgMotion arg0, Ints arg1, int n, MgShape arg3) {
   int ret = (SwigDerivedClassHasMethod("addShapeActions", swigMethodTypes4) ? touchvgPINVOKE.CmdObserverDefault_addShapeActionsSwigExplicitCmdObserverDefault(swigCPtr, MgMotion.getCPtr(arg0), Ints.getCPtr(arg1), n, MgShape.getCPtr(arg3)) : touchvgPINVOKE.CmdObserverDefault_addShapeActions(swigCPtr, MgMotion.getCPtr(arg0), Ints.getCPtr(arg1), n, MgShape.getCPtr(arg3)));
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Beispiel #42
0
 public bool updateShape(MgShape shape)
 {
     bool ret = touchvgPINVOKE.MgShapes_updateShape__SWIG_1(swigCPtr, MgShape.getCPtr(shape));
     return ret;
 }
 public override void onShapeDeleted(MgMotion sender, MgShape sp) {
   if (SwigDerivedClassHasMethod("onShapeDeleted", swigMethodTypes12)) touchvgPINVOKE.CmdObserverDefault_onShapeDeletedSwigExplicitCmdObserverDefault(swigCPtr, MgMotion.getCPtr(sender), MgShape.getCPtr(sp)); else touchvgPINVOKE.CmdObserverDefault_onShapeDeleted(swigCPtr, MgMotion.getCPtr(sender), MgShape.getCPtr(sp));
 }
Beispiel #44
0
        public bool saveShape(MgStorage s, MgShape shape, int index)
        {
            bool ret = touchvgPINVOKE.MgShapes_saveShape(swigCPtr, MgStorage.getCPtr(s), MgShape.getCPtr(shape), index);

            return(ret);
        }
Beispiel #45
0
 public virtual void onShapeMoved(MgMotion sender, MgShape sp, int segment) {
   touchvgPINVOKE.CmdObserver_onShapeMoved(swigCPtr, MgMotion.getCPtr(sender), MgShape.getCPtr(sp), segment);
 }
Beispiel #46
0
        public bool addShapeDirect(MgShape shape)
        {
            bool ret = touchvgPINVOKE.MgShapes_addShapeDirect(swigCPtr, MgShape.getCPtr(shape));

            return(ret);
        }
Beispiel #47
0
 public static MgShape getParentShape(MgShape shape)
 {
     IntPtr cPtr = touchvgPINVOKE.MgShapes_getParentShape(MgShape.getCPtr(shape));
     MgShape ret = (cPtr == IntPtr.Zero) ? null : new MgShape(cPtr, false);
     return ret;
 }
Beispiel #48
0
 public virtual void shapeAdded(MgShape shape) {
   touchvgPINVOKE.MgView_shapeAdded(swigCPtr, MgShape.getCPtr(shape));
 }
Beispiel #49
0
 public virtual int addShapeActions(MgMotion sender, Ints actions, int n, MgShape sp) {
   int ret = touchvgPINVOKE.CmdObserver_addShapeActions(swigCPtr, MgMotion.getCPtr(sender), Ints.getCPtr(actions), n, MgShape.getCPtr(sp));
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Beispiel #50
0
 public bool addShapeDirect(MgShape shape)
 {
     bool ret = touchvgPINVOKE.MgShapes_addShapeDirect__SWIG_1(swigCPtr, MgShape.getCPtr(shape));
     return ret;
 }
Beispiel #51
0
        public bool updateShape(MgShape shape)
        {
            bool ret = touchvgPINVOKE.MgShapes_updateShape__SWIG_1(swigCPtr, MgShape.getCPtr(shape));

            return(ret);
        }
Beispiel #52
0
 public ConstShapes(MgShape v1, MgShape v2)
     : this(touchvgPINVOKE.new_ConstShapes__SWIG_2(MgShape.getCPtr(v1), MgShape.getCPtr(v2)), true)
 {
 }
Beispiel #53
0
 public bool addShapeToGroup(MgShape shape)
 {
     bool ret = touchvgPINVOKE.MgGroup_addShapeToGroup(swigCPtr, MgShape.getCPtr(shape));
     return ret;
 }
Beispiel #54
0
 public ConstShapes(MgShape v1, MgShape v2, MgShape v3, MgShape v4)
     : this(touchvgPINVOKE.new_ConstShapes__SWIG_3(MgShape.getCPtr(v1), MgShape.getCPtr(v2), MgShape.getCPtr(v3), MgShape.getCPtr(v4)), true)
 {
 }
Beispiel #55
0
 public ConstShapes(MgShape v1, MgShape v2, MgShape v3, MgShape v4) : this(touchvgPINVOKE.new_ConstShapes__SWIG_3(MgShape.getCPtr(v1), MgShape.getCPtr(v2), MgShape.getCPtr(v3), MgShape.getCPtr(v4)), true)
 {
 }
Beispiel #56
0
 public void set(int index, MgShape value)
 {
     touchvgPINVOKE.ConstShapes_set__SWIG_0(swigCPtr, index, MgShape.getCPtr(value));
 }
Beispiel #57
0
 public void set(int index, MgShape value)
 {
     touchvgPINVOKE.ConstShapes_set__SWIG_0(swigCPtr, index, MgShape.getCPtr(value));
 }
Beispiel #58
0
 public void set(int index, MgShape v1, MgShape v2)
 {
     touchvgPINVOKE.ConstShapes_set__SWIG_1(swigCPtr, index, MgShape.getCPtr(v1), MgShape.getCPtr(v2));
 }
Beispiel #59
0
 public bool saveShape(MgStorage s, MgShape shape, int index)
 {
     bool ret = touchvgPINVOKE.MgShapes_saveShape(swigCPtr, MgStorage.getCPtr(s), MgShape.getCPtr(shape), index);
     return ret;
 }
Beispiel #60
0
 public virtual bool canOffsetShapeAlone(MgShape shape)
 {
     bool ret = (SwigDerivedClassHasMethod("canOffsetShapeAlone", swigMethodTypes33) ? touchvgPINVOKE.MgComposite_canOffsetShapeAloneSwigExplicitMgComposite(swigCPtr, MgShape.getCPtr(shape)) : touchvgPINVOKE.MgComposite_canOffsetShapeAlone(swigCPtr, MgShape.getCPtr(shape)));
     return ret;
 }