Esempio n. 1
0
        public static CSVectorPoint Repeat(Vec2 value, int count)
        {
            IntPtr        intPtr = CocoStudioEngineAdapterPINVOKE.CSVectorPoint_Repeat(Vec2.getCPtr(value), count);
            CSVectorPoint result = (intPtr == IntPtr.Zero) ? null : new CSVectorPoint(intPtr, true);

            if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
            {
                throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
            }
            return(result);
        }
Esempio n. 2
0
        public CSVectorPoint GetRange(int index, int count)
        {
            IntPtr        intPtr = CocoStudioEngineAdapterPINVOKE.CSVectorPoint_GetRange(this.swigCPtr, index, count);
            CSVectorPoint result = (intPtr == IntPtr.Zero) ? null : new CSVectorPoint(intPtr, true);

            if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
            {
                throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
            }
            return(result);
        }
Esempio n. 3
0
 public virtual void Dispose()
 {
     lock (this)
     {
         if (this.swigCPtr.Handle != IntPtr.Zero)
         {
             if (this.swigCMemOwn)
             {
                 this.swigCMemOwn = false;
                 CocoStudioEngineAdapterPINVOKE.delete_CSVectorDouble(this.swigCPtr);
             }
             this.swigCPtr = new HandleRef(null, IntPtr.Zero);
         }
         GC.SuppressFinalize(this);
     }
 }
Esempio n. 4
0
        private Rectangle getitem(int index)
        {
            IntPtr cPtr = CocoStudioEngineAdapterPINVOKE.CSVectorRect_getitem(this.swigCPtr, index);
            Rect   rect = new Rect(cPtr, false);

            if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
            {
                throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
            }
            if (rect.size.width < 0f || rect.size.height < 0f)
            {
                rect.origin.x    = 0f;
                rect.origin.y    = 0f;
                rect.size.width  = 0f;
                rect.size.height = 0f;
            }
            Rectangle result = new Rectangle((int)rect.origin.x, (int)rect.origin.y, (int)rect.size.width, (int)rect.size.height);

            return(result);
        }
Esempio n. 5
0
 public CSVectorDouble()
     : this(CocoStudioEngineAdapterPINVOKE.new_CSVectorDouble__SWIG_0(), true)
 {
 }
Esempio n. 6
0
 private void reserve(uint n)
 {
     CocoStudioEngineAdapterPINVOKE.CSVectorDouble_reserve(this.swigCPtr, n);
 }
Esempio n. 7
0
 public virtual void SetSkewY(float skewy)
 {
     CocoStudioEngineAdapterPINVOKE.CSTimelineSkewFrame_SetSkewY(this.swigCPtr, skewy);
 }
 public virtual void SetScaleY(float scaleY)
 {
     CocoStudioEngineAdapterPINVOKE.CSTimelineScaleFrame_SetScaleY(this.swigCPtr, scaleY);
 }
Esempio n. 9
0
 public CSTimelineSkewFrame(CSTimelineSkewFrame csFrame)
     : this(CocoStudioEngineAdapterPINVOKE.new_CSTimelineSkewFrame__SWIG_0(CSTimelineSkewFrame.getCPtr(csFrame)), true)
 {
 }
Esempio n. 10
0
 public MatrixNode()
     : this(CocoStudioEngineAdapterPINVOKE.new_MatrixNode(), true)
 {
 }
Esempio n. 11
0
 public int LastIndexOf(double value)
 {
     return(CocoStudioEngineAdapterPINVOKE.CSVectorDouble_LastIndexOf(this.swigCPtr, value));
 }
Esempio n. 12
0
 public float SkewY()
 {
     return(CocoStudioEngineAdapterPINVOKE.MatrixNode_SkewY(this.swigCPtr));
 }
Esempio n. 13
0
 public float AnchorPointY()
 {
     return(CocoStudioEngineAdapterPINVOKE.MatrixNode_AnchorPointY(this.swigCPtr));
 }
Esempio n. 14
0
 public void print()
 {
     CocoStudioEngineAdapterPINVOKE.MatrixNode_print(this.swigCPtr);
 }
Esempio n. 15
0
 public void init(CSVisualObject node)
 {
     CocoStudioEngineAdapterPINVOKE.MatrixNode_init(this.swigCPtr, CSVisualObject.getCPtr(node));
 }
Esempio n. 16
0
 public V2F_C4B_T2F()
     : this(CocoStudioEngineAdapterPINVOKE.new_V2F_C4B_T2F(), true)
 {
 }
Esempio n. 17
0
 public void Reverse()
 {
     CocoStudioEngineAdapterPINVOKE.CSVectorDouble_Reverse__SWIG_0(this.swigCPtr);
 }
 public virtual void SetInnerActionType(int type)
 {
     CocoStudioEngineAdapterPINVOKE.CSTimelineInnerActionFrame_SetInnerActionType(this.swigCPtr, type);
 }
Esempio n. 19
0
 public bool Contains(double value)
 {
     return(CocoStudioEngineAdapterPINVOKE.CSVectorDouble_Contains(this.swigCPtr, value));
 }
 public virtual int GetStartFrameIndex()
 {
     return(CocoStudioEngineAdapterPINVOKE.CSTimelineInnerActionFrame_GetStartFrameIndex(this.swigCPtr));
 }
Esempio n. 21
0
 public bool Remove(double value)
 {
     return(CocoStudioEngineAdapterPINVOKE.CSVectorDouble_Remove(this.swigCPtr, value));
 }
Esempio n. 22
0
        public virtual PointF GetPrePosition()
        {
            Vec2 vec2 = new Vec2(CocoStudioEngineAdapterPINVOKE.CSNode_GetPrePosition(this.swigCPtr), true);

            return(new PointF(vec2.x, vec2.y));
        }
 public virtual void SetStartFrameIndex(int frameIndex)
 {
     CocoStudioEngineAdapterPINVOKE.CSTimelineInnerActionFrame_SetStartFrameIndex(this.swigCPtr, frameIndex);
 }
Esempio n. 24
0
 public void Clear()
 {
     CocoStudioEngineAdapterPINVOKE.CSVectorDouble_Clear(this.swigCPtr);
 }
Esempio n. 25
0
 public CSTimelineSkewFrame(IntPtr cPtr, bool cMemoryOwn)
     : base(CocoStudioEngineAdapterPINVOKE.CSTimelineSkewFrame_SWIGUpcast(cPtr), cMemoryOwn)
 {
     this.swigCPtr = new HandleRef((object)this, cPtr);
 }
Esempio n. 26
0
 public void Add(double x)
 {
     CocoStudioEngineAdapterPINVOKE.CSVectorDouble_Add(this.swigCPtr, x);
 }
Esempio n. 27
0
 public CSTimelineSkewFrame()
     : this(CocoStudioEngineAdapterPINVOKE.new_CSTimelineSkewFrame__SWIG_1(), true)
 {
 }
Esempio n. 28
0
 private uint size()
 {
     return(CocoStudioEngineAdapterPINVOKE.CSVectorDouble_size(this.swigCPtr));
 }
Esempio n. 29
0
 public virtual float GetSkewY()
 {
     return(CocoStudioEngineAdapterPINVOKE.CSTimelineSkewFrame_GetSkewY(this.swigCPtr));
 }
Esempio n. 30
0
 private uint capacity()
 {
     return(CocoStudioEngineAdapterPINVOKE.CSVectorDouble_capacity(this.swigCPtr));
 }