Separate C# classes into Internal and Public
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / public / Layer.cs
similarity index 61%
rename from plugins/dali-sharp/sharp/internal/Layer.cs
rename to plugins/dali-sharp/sharp/public/Layer.cs
index c32972c..74b271f 100644 (file)
@@ -59,55 +59,11 @@ namespace Dali
             }
         }
 
-
-        public class Property : global::System.IDisposable
+        public class Property
         {
-            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_Layer_Property(swigCPtr);
-                        }
-                        swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
-                    }
-                    global::System.GC.SuppressFinalize(this);
-                }
-            }
-
-            public Property() : this(NDalicPINVOKE.new_Layer_Property(), true)
-            {
-                if (NDalicPINVOKE.SWIGPendingException.Pending)
-                    throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-            }
-
             public static readonly int CLIPPING_ENABLE = NDalicPINVOKE.Layer_Property_CLIPPING_ENABLE_get();
             public static readonly int CLIPPING_BOX = NDalicPINVOKE.Layer_Property_CLIPPING_BOX_get();
             public static readonly int BEHAVIOR = NDalicPINVOKE.Layer_Property_BEHAVIOR_get();
-
         }
 
         public Layer() : this(NDalicPINVOKE.Layer_New(), true)
@@ -117,7 +73,7 @@ namespace Dali
 
         }
 
-        public new static Layer DownCast(BaseHandle handle)
+        internal new static Layer DownCast(BaseHandle handle)
         {
             Layer ret = new Layer(NDalicPINVOKE.Layer_DownCast(BaseHandle.getCPtr(handle)), true);
             if (NDalicPINVOKE.SWIGPendingException.Pending)
@@ -125,20 +81,6 @@ namespace Dali
             return ret;
         }
 
-        public Layer(Layer copy) : this(NDalicPINVOKE.new_Layer__SWIG_1(Layer.getCPtr(copy)), true)
-        {
-            if (NDalicPINVOKE.SWIGPendingException.Pending)
-                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-        }
-
-        public Layer Assign(Layer rhs)
-        {
-            Layer ret = new Layer(NDalicPINVOKE.Layer_Assign(swigCPtr, Layer.getCPtr(rhs)), false);
-            if (NDalicPINVOKE.SWIGPendingException.Pending)
-                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-            return ret;
-        }
-
         public View FindChildById(uint id)
         {
             View ret = new View(NDalicPINVOKE.Actor_FindChildById(swigCPtr, id), true);
@@ -225,14 +167,14 @@ namespace Dali
                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
-        public void SetBehavior(Layer.LayerBehavior behavior)
+        private void SetBehavior(Layer.LayerBehavior behavior)
         {
             NDalicPINVOKE.Layer_SetBehavior(swigCPtr, (int)behavior);
             if (NDalicPINVOKE.SWIGPendingException.Pending)
                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
-        public Layer.LayerBehavior GetBehavior()
+        private Layer.LayerBehavior GetBehavior()
         {
             Layer.LayerBehavior ret = (Layer.LayerBehavior)NDalicPINVOKE.Layer_GetBehavior(swigCPtr);
             if (NDalicPINVOKE.SWIGPendingException.Pending)
@@ -240,59 +182,7 @@ namespace Dali
             return ret;
         }
 
-        public void SetClipping(bool enabled)
-        {
-            NDalicPINVOKE.Layer_SetClipping(swigCPtr, enabled);
-            if (NDalicPINVOKE.SWIGPendingException.Pending)
-                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-        }
-
-        public bool IsClipping()
-        {
-            bool ret = NDalicPINVOKE.Layer_IsClipping(swigCPtr);
-            if (NDalicPINVOKE.SWIGPendingException.Pending)
-                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-            return ret;
-        }
-
-        public void SetClippingBox(int x, int y, int width, int height)
-        {
-            NDalicPINVOKE.Layer_SetClippingBox__SWIG_0(swigCPtr, x, y, width, height);
-            if (NDalicPINVOKE.SWIGPendingException.Pending)
-                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-        }
-
-        public void SetClippingBox(Rectangle box)
-        {
-            NDalicPINVOKE.Layer_SetClippingBox__SWIG_1(swigCPtr, Rectangle.getCPtr(box));
-            if (NDalicPINVOKE.SWIGPendingException.Pending)
-                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-        }
-
-        public Rectangle GetClippingBox()
-        {
-            Rectangle ret = new Rectangle(NDalicPINVOKE.Layer_GetClippingBox(swigCPtr), true);
-            if (NDalicPINVOKE.SWIGPendingException.Pending)
-                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-            return ret;
-        }
-
-        public void SetDepthTestDisabled(bool disable)
-        {
-            NDalicPINVOKE.Layer_SetDepthTestDisabled(swigCPtr, disable);
-            if (NDalicPINVOKE.SWIGPendingException.Pending)
-                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-        }
-
-        public bool IsDepthTestDisabled()
-        {
-            bool ret = NDalicPINVOKE.Layer_IsDepthTestDisabled(swigCPtr);
-            if (NDalicPINVOKE.SWIGPendingException.Pending)
-                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-            return ret;
-        }
-
-        public void SetSortFunction(SWIGTYPE_p_f_r_q_const__Dali__Vector3__float function)
+        internal void SetSortFunction(SWIGTYPE_p_f_r_q_const__Dali__Vector3__float function)
         {
             NDalicPINVOKE.Layer_SetSortFunction(swigCPtr, SWIGTYPE_p_f_r_q_const__Dali__Vector3__float.getCPtr(function));
             if (NDalicPINVOKE.SWIGPendingException.Pending)
@@ -341,34 +231,6 @@ namespace Dali
             TREE_DEPTH_MULTIPLIER = 10000
         }
 
-        public bool ClippingEnable
-        {
-            get
-            {
-                bool temp = false;
-                GetProperty(Layer.Property.CLIPPING_ENABLE).Get(ref temp);
-                return temp;
-            }
-            set
-            {
-                SetProperty(Layer.Property.CLIPPING_ENABLE, new Dali.Property.Value(value));
-            }
-        }
-
-        public Rectangle ClippingBox
-        {
-            get
-            {
-                Rectangle temp = new Rectangle(0, 0, 0, 0);
-                GetProperty(Layer.Property.CLIPPING_BOX).Get(temp);
-                return temp;
-            }
-            set
-            {
-                SetProperty(Layer.Property.CLIPPING_BOX, new Dali.Property.Value(value));
-            }
-        }
-
         public Layer.LayerBehavior Behavior
         {
             get