示例#1
0
 public CSVectorRectEnumerator(CSVectorRect collection)
 {
     this.collectionRef = collection;
     this.currentIndex  = -1;
     this.currentObject = null;
     this.currentSize   = this.collectionRef.Count;
 }
示例#2
0
 public void SetRange(int index, CSVectorRect values)
 {
     CocoStudioEngineAdapterPINVOKE.CSVectorRect_SetRange(this.swigCPtr, index, CSVectorRect.getCPtr(values));
     if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
     {
         throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#3
0
 public CSVectorRect(CSVectorRect other)
     : this(CocoStudioEngineAdapterPINVOKE.new_CSVectorRect__SWIG_1(CSVectorRect.getCPtr(other)), true)
 {
     if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
     {
         throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#4
0
        public static CSVectorRect Repeat(Rectangle value, int count)
        {
            IntPtr       intPtr = CocoStudioEngineAdapterPINVOKE.CSVectorRect_Repeat(Rect.getCPtr(new Rect((float)value.X, (float)value.Y, (float)value.Width, (float)value.Height)), count);
            CSVectorRect result = (intPtr == IntPtr.Zero) ? null : new CSVectorRect(intPtr, true);

            if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
            {
                throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
            }
            return(result);
        }
示例#5
0
        public CSVectorRect GetRange(int index, int count)
        {
            IntPtr       intPtr = CocoStudioEngineAdapterPINVOKE.CSVectorRect_GetRange(this.swigCPtr, index, count);
            CSVectorRect result = (intPtr == IntPtr.Zero) ? null : new CSVectorRect(intPtr, true);

            if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
            {
                throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
            }
            return(result);
        }
示例#6
0
 public static HandleRef getCPtr(CSVectorRect obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }