Beispiel #1
0
 public CSVectorRectEnumerator(CSVectorRect collection)
 {
     this.collectionRef = collection;
     this.currentIndex  = -1;
     this.currentObject = null;
     this.currentSize   = this.collectionRef.Count;
 }
Beispiel #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();
     }
 }
Beispiel #3
0
 public CSVectorRect(CSVectorRect other)
     : this(CocoStudioEngineAdapterPINVOKE.new_CSVectorRect__SWIG_1(CSVectorRect.getCPtr(other)), true)
 {
     if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
     {
         throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #6
0
 public static HandleRef getCPtr(CSVectorRect obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }