Ejemplo n.º 1
0
 public virtual void SetPosition(CocoStudio.Model.PointF position)
 {
     CocoStudioEngineAdapterPINVOKE.CSVisualObject_SetPosition(this.swigCPtr, Vec2.getCPtr(new Vec2(position.X, position.Y)));
     if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
     {
         throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 2
0
        public virtual CocoStudio.Model.PointF TransformToParent(CocoStudio.Model.PointF selfPoint)
        {
            Vec2 vec2 = new Vec2(CocoStudioEngineAdapterPINVOKE.CSVisualObject_TransformToParent(this.swigCPtr, Vec2.getCPtr(new Vec2(selfPoint.X, selfPoint.Y))), true);

            if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
            {
                throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
            }
            return(new CocoStudio.Model.PointF(vec2.x, vec2.y));
        }
Ejemplo n.º 3
0
        public virtual int HitTest(CocoStudio.Model.PointF point)
        {
            int num = CocoStudioEngineAdapterPINVOKE.CSVisualObject_HitTest(this.swigCPtr, Vec2.getCPtr(new Vec2(point.X, point.Y)));

            if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
            {
                throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
            }
            return(num);
        }