Separate C# classes into Internal and Public
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / public / FlexContainer.cs
@@ -61,148 +61,66 @@ public class FlexContainer : View {
   }
 
 
-  public class Property : global::System.IDisposable {
-    private global::System.Runtime.InteropServices.HandleRef swigCPtr;
-    protected bool swigCMemOwn;
-  
-    internal Property(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(Property obj) {
-      return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
-    }
-  
-    ~Property() {
-      Dispose();
-    }
-  
-    public virtual void Dispose() {
-      lock(this) {
-        if (swigCPtr.Handle != global::System.IntPtr.Zero) {
-          if (swigCMemOwn) {
-            swigCMemOwn = false;
-            NDalicPINVOKE.delete_FlexContainer_Property(swigCPtr);
-          }
-          swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
-        }
-        global::System.GC.SuppressFinalize(this);
-      }
-    }
-  
-    public Property() : this(NDalicPINVOKE.new_FlexContainer_Property(), true) {
-      if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-    }
-  
+  public class Property
+  {
     public static readonly int CONTENT_DIRECTION = NDalicPINVOKE.FlexContainer_Property_CONTENT_DIRECTION_get();
     public static readonly int FLEX_DIRECTION = NDalicPINVOKE.FlexContainer_Property_FLEX_DIRECTION_get();
     public static readonly int FLEX_WRAP = NDalicPINVOKE.FlexContainer_Property_FLEX_WRAP_get();
     public static readonly int JUSTIFY_CONTENT = NDalicPINVOKE.FlexContainer_Property_JUSTIFY_CONTENT_get();
     public static readonly int ALIGN_ITEMS = NDalicPINVOKE.FlexContainer_Property_ALIGN_ITEMS_get();
     public static readonly int ALIGN_CONTENT = NDalicPINVOKE.FlexContainer_Property_ALIGN_CONTENT_get();
-  
   }
 
-  public class ChildProperty : global::System.IDisposable {
-    private global::System.Runtime.InteropServices.HandleRef swigCPtr;
-    protected bool swigCMemOwn;
-  
-    internal ChildProperty(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(ChildProperty obj) {
-      return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
-    }
-  
-    ~ChildProperty() {
-      Dispose();
-    }
-  
-    public virtual void Dispose() {
-      lock(this) {
-        if (swigCPtr.Handle != global::System.IntPtr.Zero) {
-          if (swigCMemOwn) {
-            swigCMemOwn = false;
-            NDalicPINVOKE.delete_FlexContainer_ChildProperty(swigCPtr);
-          }
-          swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
-        }
-        global::System.GC.SuppressFinalize(this);
-      }
-    }
-  
-    public ChildProperty() : this(NDalicPINVOKE.new_FlexContainer_ChildProperty(), true) {
-      if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-    }
-  
+  public class ChildProperty 
+  {
     public static readonly int FLEX = NDalicPINVOKE.FlexContainer_ChildProperty_FLEX_get();
     public static readonly int ALIGN_SELF = NDalicPINVOKE.FlexContainer_ChildProperty_ALIGN_SELF_get();
     public static readonly int FLEX_MARGIN = NDalicPINVOKE.FlexContainer_ChildProperty_FLEX_MARGIN_get();
-  
   }
 
   public FlexContainer () : this (NDalicPINVOKE.FlexContainer_New(), true) {
       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
 
   }
-  public FlexContainer(FlexContainer handle) : this(NDalicPINVOKE.new_FlexContainer__SWIG_1(FlexContainer.getCPtr(handle)), true) {
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-  }
 
-  public FlexContainer Assign(FlexContainer handle) {
-    FlexContainer ret = new FlexContainer(NDalicPINVOKE.FlexContainer_Assign(swigCPtr, FlexContainer.getCPtr(handle)), false);
-    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public new static FlexContainer DownCast(BaseHandle handle) {
+  internal new static FlexContainer DownCast(BaseHandle handle) {
     FlexContainer ret = new FlexContainer(NDalicPINVOKE.FlexContainer_DownCast(BaseHandle.getCPtr(handle)), true);
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     return ret;
   }
 
   public enum FlexDirectionType {
-    COLUMN,
-    COLUMN_REVERSE,
-    ROW,
-    ROW_REVERSE
+    Column,
+    ColumnReverse,
+    Row,
+    RowReverse
   }
 
   public enum ContentDirectionType {
-    INHERIT,
+    Inherit,
     LTR,
     RTL
   }
 
   public enum Justification {
-    JUSTIFY_FLEX_START,
-    JUSTIFY_CENTER,
-    JUSTIFY_FLEX_END,
-    JUSTIFY_SPACE_BETWEEN,
-    JUSTIFY_SPACE_AROUND
+    JustifyFlexStart,
+    JustifyCenter,
+    JustifyFlexEnd,
+    JustifySpaceBetween,
+    JustifySpaceAround
   }
 
   public enum Alignment {
-    ALIGN_AUTO,
-    ALIGN_FLEX_START,
-    ALIGN_CENTER,
-    ALIGN_FLEX_END,
-    ALIGN_STRETCH
+    AlignAuto,
+    AlignFlexStart,
+    AlignCenter,
+    AlignFlexEnd,
+    AlignStretch
   }
 
   public enum WrapType {
-    NO_WRAP,
-    WRAP
-  }
-
-  public enum PropertyRange {
-    PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
-    PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX+1000,
-    CHILD_PROPERTY_START_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX,
-    CHILD_PROPERTY_END_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX+1000
+    NoWrap,
+    Wrap
   }
 
   public int ContentDirection
@@ -210,7 +128,7 @@ public class FlexContainer : View {
     get
     {
       int temp = 0;
-      GetProperty( FlexContainer.Property.CONTENT_DIRECTION).Get( ref temp );
+      GetProperty( FlexContainer.Property.CONTENT_DIRECTION).Get( out temp );
       return temp;
     }
     set
@@ -223,7 +141,7 @@ public class FlexContainer : View {
     get
     {
       int temp = 0;
-      GetProperty( FlexContainer.Property.FLEX_DIRECTION).Get( ref temp );
+      GetProperty( FlexContainer.Property.FLEX_DIRECTION).Get( out temp );
       return temp;
     }
     set
@@ -236,7 +154,7 @@ public class FlexContainer : View {
     get
     {
       int temp = 0;
-      GetProperty( FlexContainer.Property.FLEX_WRAP).Get( ref temp );
+      GetProperty( FlexContainer.Property.FLEX_WRAP).Get( out temp );
       return temp;
     }
     set
@@ -249,7 +167,7 @@ public class FlexContainer : View {
     get
     {
       int temp = 0;
-      GetProperty( FlexContainer.Property.JUSTIFY_CONTENT).Get( ref temp );
+      GetProperty( FlexContainer.Property.JUSTIFY_CONTENT).Get( out temp );
       return temp;
     }
     set
@@ -262,7 +180,7 @@ public class FlexContainer : View {
     get
     {
       int temp = 0;
-      GetProperty( FlexContainer.Property.ALIGN_ITEMS).Get( ref temp );
+      GetProperty( FlexContainer.Property.ALIGN_ITEMS).Get( out temp );
       return temp;
     }
     set
@@ -275,7 +193,7 @@ public class FlexContainer : View {
     get
     {
       int temp = 0;
-      GetProperty( FlexContainer.Property.ALIGN_CONTENT).Get( ref temp );
+      GetProperty( FlexContainer.Property.ALIGN_CONTENT).Get( out temp );
       return temp;
     }
     set