Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
     }
 }
Ejemplo 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);
        }
Ejemplo n.º 5
0
 public CSVectorDouble()
     : this(CocoStudioEngineAdapterPINVOKE.new_CSVectorDouble__SWIG_0(), true)
 {
 }
Ejemplo n.º 6
0
 private void reserve(uint n)
 {
     CocoStudioEngineAdapterPINVOKE.CSVectorDouble_reserve(this.swigCPtr, n);
 }
Ejemplo n.º 7
0
 public virtual void SetSkewY(float skewy)
 {
     CocoStudioEngineAdapterPINVOKE.CSTimelineSkewFrame_SetSkewY(this.swigCPtr, skewy);
 }
Ejemplo n.º 8
0
 public virtual void SetScaleY(float scaleY)
 {
     CocoStudioEngineAdapterPINVOKE.CSTimelineScaleFrame_SetScaleY(this.swigCPtr, scaleY);
 }
Ejemplo n.º 9
0
 public CSTimelineSkewFrame(CSTimelineSkewFrame csFrame)
     : this(CocoStudioEngineAdapterPINVOKE.new_CSTimelineSkewFrame__SWIG_0(CSTimelineSkewFrame.getCPtr(csFrame)), true)
 {
 }
Ejemplo n.º 10
0
 public MatrixNode()
     : this(CocoStudioEngineAdapterPINVOKE.new_MatrixNode(), true)
 {
 }
Ejemplo n.º 11
0
 public int LastIndexOf(double value)
 {
     return(CocoStudioEngineAdapterPINVOKE.CSVectorDouble_LastIndexOf(this.swigCPtr, value));
 }
Ejemplo n.º 12
0
 public float SkewY()
 {
     return(CocoStudioEngineAdapterPINVOKE.MatrixNode_SkewY(this.swigCPtr));
 }
Ejemplo n.º 13
0
 public float AnchorPointY()
 {
     return(CocoStudioEngineAdapterPINVOKE.MatrixNode_AnchorPointY(this.swigCPtr));
 }
Ejemplo n.º 14
0
 public void print()
 {
     CocoStudioEngineAdapterPINVOKE.MatrixNode_print(this.swigCPtr);
 }
Ejemplo n.º 15
0
 public void init(CSVisualObject node)
 {
     CocoStudioEngineAdapterPINVOKE.MatrixNode_init(this.swigCPtr, CSVisualObject.getCPtr(node));
 }
Ejemplo n.º 16
0
 public V2F_C4B_T2F()
     : this(CocoStudioEngineAdapterPINVOKE.new_V2F_C4B_T2F(), true)
 {
 }
Ejemplo 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);
 }
Ejemplo 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));
 }
Ejemplo n.º 21
0
 public bool Remove(double value)
 {
     return(CocoStudioEngineAdapterPINVOKE.CSVectorDouble_Remove(this.swigCPtr, value));
 }
Ejemplo 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);
 }
Ejemplo n.º 24
0
 public void Clear()
 {
     CocoStudioEngineAdapterPINVOKE.CSVectorDouble_Clear(this.swigCPtr);
 }
Ejemplo n.º 25
0
 public CSTimelineSkewFrame(IntPtr cPtr, bool cMemoryOwn)
     : base(CocoStudioEngineAdapterPINVOKE.CSTimelineSkewFrame_SWIGUpcast(cPtr), cMemoryOwn)
 {
     this.swigCPtr = new HandleRef((object)this, cPtr);
 }
Ejemplo n.º 26
0
 public void Add(double x)
 {
     CocoStudioEngineAdapterPINVOKE.CSVectorDouble_Add(this.swigCPtr, x);
 }
Ejemplo n.º 27
0
 public CSTimelineSkewFrame()
     : this(CocoStudioEngineAdapterPINVOKE.new_CSTimelineSkewFrame__SWIG_1(), true)
 {
 }
Ejemplo n.º 28
0
 private uint size()
 {
     return(CocoStudioEngineAdapterPINVOKE.CSVectorDouble_size(this.swigCPtr));
 }
Ejemplo n.º 29
0
 public virtual float GetSkewY()
 {
     return(CocoStudioEngineAdapterPINVOKE.CSTimelineSkewFrame_GetSkewY(this.swigCPtr));
 }
Ejemplo n.º 30
0
 private uint capacity()
 {
     return(CocoStudioEngineAdapterPINVOKE.CSVectorDouble_capacity(this.swigCPtr));
 }