Remove Actor class and move Actor APIs into View
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / internal / ViewContainer.cs
 
 namespace Dali {
 
-public class ActorContainer : global::System.IDisposable, global::System.Collections.IEnumerable
-    , global::System.Collections.Generic.IEnumerable<Actor>
+public class ViewContainer : global::System.IDisposable, global::System.Collections.IEnumerable
+    , global::System.Collections.Generic.IEnumerable<View>
  {
   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
   protected bool swigCMemOwn;
 
-  internal ActorContainer(global::System.IntPtr cPtr, bool cMemoryOwn) {
+  internal ViewContainer(global::System.IntPtr cPtr, bool cMemoryOwn) {
     swigCMemOwn = cMemoryOwn;
     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
   }
 
-  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ActorContainer obj) {
+  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ViewContainer obj) {
     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
   }
 
-  ~ActorContainer() {
+  ~ViewContainer() {
     DisposeQueue.Instance.Add(this);
   }
 
@@ -48,10 +48,10 @@ public class ActorContainer : global::System.IDisposable, global::System.Collect
   }
 
 
-  public ActorContainer(global::System.Collections.ICollection c) : this() {
+  public ViewContainer(global::System.Collections.ICollection c) : this() {
     if (c == null)
       throw new global::System.ArgumentNullException("c");
-    foreach (Actor element in c) {
+    foreach (View element in c) {
       this.Add(element);
     }
   }
@@ -68,7 +68,7 @@ public class ActorContainer : global::System.IDisposable, global::System.Collect
     }
   }
 
-  public Actor this[int index]  {
+  public View this[int index]  {
     get {
       return getitem(index);
     }
@@ -100,17 +100,17 @@ public class ActorContainer : global::System.IDisposable, global::System.Collect
     }
   }
 
-  public void CopyTo(Actor[] array)
+  public void CopyTo(View[] array)
   {
     CopyTo(0, array, 0, this.Count);
   }
 
-  public void CopyTo(Actor[] array, int arrayIndex)
+  public void CopyTo(View[] array, int arrayIndex)
   {
     CopyTo(0, array, arrayIndex, this.Count);
   }
 
-  public void CopyTo(int index, Actor[] array, int arrayIndex, int count)
+  public void CopyTo(int index, View[] array, int arrayIndex, int count)
   {
     if (array == null)
       throw new global::System.ArgumentNullException("array");
@@ -128,16 +128,16 @@ public class ActorContainer : global::System.IDisposable, global::System.Collect
       array.SetValue(getitemcopy(index+i), arrayIndex+i);
   }
 
-  global::System.Collections.Generic.IEnumerator<Actor> global::System.Collections.Generic.IEnumerable<Actor>.GetEnumerator() {
-    return new ActorContainerEnumerator(this);
+  global::System.Collections.Generic.IEnumerator<View> global::System.Collections.Generic.IEnumerable<View>.GetEnumerator() {
+    return new ViewContainerEnumerator(this);
   }
 
   global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() {
-    return new ActorContainerEnumerator(this);
+    return new ViewContainerEnumerator(this);
   }
 
-  public ActorContainerEnumerator GetEnumerator() {
-    return new ActorContainerEnumerator(this);
+  public ViewContainerEnumerator GetEnumerator() {
+    return new ViewContainerEnumerator(this);
   }
 
   // Type-safe enumerator
@@ -145,15 +145,15 @@ public class ActorContainer : global::System.IDisposable, global::System.Collect
   /// whenever the collection is modified. This has been done for changes in the size of the
   /// collection but not when one of the elements of the collection is modified as it is a bit
   /// tricky to detect unmanaged code that modifies the collection under our feet.
-  public sealed class ActorContainerEnumerator : global::System.Collections.IEnumerator
-    , global::System.Collections.Generic.IEnumerator<Actor>
+  public sealed class ViewContainerEnumerator : global::System.Collections.IEnumerator
+    , global::System.Collections.Generic.IEnumerator<View>
   {
-    private ActorContainer collectionRef;
+    private ViewContainer collectionRef;
     private int currentIndex;
     private object currentObject;
     private int currentSize;
 
-    public ActorContainerEnumerator(ActorContainer collection) {
+    public ViewContainerEnumerator(ViewContainer collection) {
       collectionRef = collection;
       currentIndex = -1;
       currentObject = null;
@@ -161,7 +161,7 @@ public class ActorContainer : global::System.IDisposable, global::System.Collect
     }
 
     // Type-safe iterator Current
-    public Actor Current {
+    public View Current {
       get {
         if (currentIndex == -1)
           throw new global::System.InvalidOperationException("Enumeration not started.");
@@ -169,7 +169,7 @@ public class ActorContainer : global::System.IDisposable, global::System.Collect
           throw new global::System.InvalidOperationException("Enumeration finished.");
         if (currentObject == null)
           throw new global::System.InvalidOperationException("Collection modified.");
-        return (Actor)currentObject;
+        return (View)currentObject;
       }
     }
 
@@ -211,8 +211,8 @@ public class ActorContainer : global::System.IDisposable, global::System.Collect
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
   }
 
-  public void Add(Actor x) {
-    NDalicPINVOKE.ActorContainer_Add(swigCPtr, Actor.getCPtr(x));
+  public void Add(View x) {
+    NDalicPINVOKE.ActorContainer_Add(swigCPtr, View.getCPtr(x));
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
   }
 
@@ -233,54 +233,54 @@ public class ActorContainer : global::System.IDisposable, global::System.Collect
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
   }
 
-  public ActorContainer() : this(NDalicPINVOKE.new_ActorContainer__SWIG_0(), true) {
+  public ViewContainer() : this(NDalicPINVOKE.new_ActorContainer__SWIG_0(), true) {
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
   }
 
-  public ActorContainer(ActorContainer other) : this(NDalicPINVOKE.new_ActorContainer__SWIG_1(ActorContainer.getCPtr(other)), true) {
+  public ViewContainer(ViewContainer other) : this(NDalicPINVOKE.new_ActorContainer__SWIG_1(ViewContainer.getCPtr(other)), true) {
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
   }
 
-  public ActorContainer(int capacity) : this(NDalicPINVOKE.new_ActorContainer__SWIG_2(capacity), true) {
+  public ViewContainer(int capacity) : this(NDalicPINVOKE.new_ActorContainer__SWIG_2(capacity), true) {
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
   }
 
-  private Actor getitemcopy(int index) {
-    Actor ret = new Actor(NDalicPINVOKE.ActorContainer_getitemcopy(swigCPtr, index), true);
+  private View getitemcopy(int index) {
+    View ret = new View(NDalicPINVOKE.ActorContainer_getitemcopy(swigCPtr, index), true);
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     return ret;
   }
 
-  private Actor getitem(int index) {
-    Actor ret = new Actor(NDalicPINVOKE.ActorContainer_getitem(swigCPtr, index), false);
+  private View getitem(int index) {
+    View ret = new View(NDalicPINVOKE.ActorContainer_getitem(swigCPtr, index), false);
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     return ret;
   }
 
-  private void setitem(int index, Actor val) {
-    NDalicPINVOKE.ActorContainer_setitem(swigCPtr, index, Actor.getCPtr(val));
+  private void setitem(int index, View val) {
+    NDalicPINVOKE.ActorContainer_setitem(swigCPtr, index, View.getCPtr(val));
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
   }
 
-  public void AddRange(ActorContainer values) {
-    NDalicPINVOKE.ActorContainer_AddRange(swigCPtr, ActorContainer.getCPtr(values));
+  public void AddRange(ViewContainer values) {
+    NDalicPINVOKE.ActorContainer_AddRange(swigCPtr, ViewContainer.getCPtr(values));
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
   }
 
-  public ActorContainer GetRange(int index, int count) {
+  public ViewContainer GetRange(int index, int count) {
     global::System.IntPtr cPtr = NDalicPINVOKE.ActorContainer_GetRange(swigCPtr, index, count);
-    ActorContainer ret = (cPtr == global::System.IntPtr.Zero) ? null : new ActorContainer(cPtr, true);
+    ViewContainer ret = (cPtr == global::System.IntPtr.Zero) ? null : new ViewContainer(cPtr, true);
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     return ret;
   }
 
-  public void Insert(int index, Actor x) {
-    NDalicPINVOKE.ActorContainer_Insert(swigCPtr, index, Actor.getCPtr(x));
+  public void Insert(int index, View x) {
+    NDalicPINVOKE.ActorContainer_Insert(swigCPtr, index, View.getCPtr(x));
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
   }
 
-  public void InsertRange(int index, ActorContainer values) {
-    NDalicPINVOKE.ActorContainer_InsertRange(swigCPtr, index, ActorContainer.getCPtr(values));
+  public void InsertRange(int index, ViewContainer values) {
+    NDalicPINVOKE.ActorContainer_InsertRange(swigCPtr, index, ViewContainer.getCPtr(values));
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
   }
 
@@ -294,9 +294,9 @@ public class ActorContainer : global::System.IDisposable, global::System.Collect
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
   }
 
-  public static ActorContainer Repeat(Actor value, int count) {
-    global::System.IntPtr cPtr = NDalicPINVOKE.ActorContainer_Repeat(Actor.getCPtr(value), count);
-    ActorContainer ret = (cPtr == global::System.IntPtr.Zero) ? null : new ActorContainer(cPtr, true);
+  public static ViewContainer Repeat(View value, int count) {
+    global::System.IntPtr cPtr = NDalicPINVOKE.ActorContainer_Repeat(View.getCPtr(value), count);
+    ViewContainer ret = (cPtr == global::System.IntPtr.Zero) ? null : new ViewContainer(cPtr, true);
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     return ret;
   }
@@ -311,8 +311,8 @@ public class ActorContainer : global::System.IDisposable, global::System.Collect
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
   }
 
-  public void SetRange(int index, ActorContainer values) {
-    NDalicPINVOKE.ActorContainer_SetRange(swigCPtr, index, ActorContainer.getCPtr(values));
+  public void SetRange(int index, ViewContainer values) {
+    NDalicPINVOKE.ActorContainer_SetRange(swigCPtr, index, ViewContainer.getCPtr(values));
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
   }