コード例 #1
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));
        }
コード例 #2
0
        public virtual CocoStudio.Model.PointF GetAnchorPointInPoints()
        {
            Vec2 vec2 = new Vec2(CocoStudioEngineAdapterPINVOKE.CSVisualObject_GetAnchorPointInPoints(this.swigCPtr), true);

            return(new CocoStudio.Model.PointF(vec2.x, vec2.y));
        }
コード例 #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);
        }