Example #1
0
 public override void SetAnchorPoint(ScaleValue anchorPoint)
 {
     CocoStudioEngineAdapterPINVOKE.CSNode_SetAnchorPoint(this.swigCPtr, CSScale.getCPtr(new CSScale(anchorPoint.ScaleX, anchorPoint.ScaleY)));
     if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
     {
         throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
 public CSScale(ScaleValue scale)
     : this(CocoStudioEngineAdapterPINVOKE.new_CSScale__SWIG_1(CSScale.getCPtr(new CSScale(scale.ScaleX, scale.ScaleY))), true)
 {
     if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
     {
         throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #3
0
 public override void SetScale(ScaleValue scale)
 {
     CocoStudioEngineAdapterPINVOKE.CSCanvas_SetScale(this.swigCPtr, CSScale.getCPtr(new CSScale(scale.ScaleX, scale.ScaleY)));
     if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
     {
         throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #4
0
 public virtual void SetScale(ScaleValue scale)
 {
     CocoStudioEngineAdapterPINVOKE.CSVisualObject_SetScale(this.swigCPtr, CSScale.getCPtr(new CSScale(scale.ScaleX, scale.ScaleY)));
     if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
     {
         throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #5
0
 public static HandleRef getCPtr(CSScale obj)
 {
     return(obj == null ? new HandleRef((object)null, IntPtr.Zero) : obj.swigCPtr);
 }
Example #6
0
 public virtual void SetGroundColorVector(ScaleValue cVector)
 {
     CocoStudioEngineAdapterPINVOKE.CSPanel_SetGroundColorVector(this.swigCPtr, CSScale.getCPtr(new CSScale(cVector.ScaleX, cVector.ScaleY)));
     if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
     {
         throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #7
0
        public virtual ScaleValue GetGroundColorVector()
        {
            CSScale csScale = new CSScale(CocoStudioEngineAdapterPINVOKE.CSPanel_GetGroundColorVector(this.swigCPtr), false);

            return(new ScaleValue(csScale.GetScaleX(), csScale.GetScaleY(), 0.1, -99999999.0, 99999999.0));
        }
Example #8
0
        public virtual ScaleValue GetScale()
        {
            CSScale csScale = new CSScale(CocoStudioEngineAdapterPINVOKE.CSVisualObject_GetScale(this.swigCPtr), false);

            return(new ScaleValue(csScale.GetScaleX(), csScale.GetScaleY(), 0.1, -99999999.0, 99999999.0));
        }