sync with tizen branch to finalize API
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / UIComponents / Slider.cs
similarity index 97%
rename from src/Tizen.NUI/src/internal/Slider.cs
rename to src/Tizen.NUI/src/public/UIComponents/Slider.cs
index 8df9be4..6783fe0 100755 (executable)
 * limitations under the License.
 *
 */
-// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
-//------------------------------------------------------------------------------
-// <auto-generated />
-//
-// This file was automatically generated by SWIG (http://www.swig.org).
-// Version 3.0.9
-//
-// Do not make changes to this file unless you know what you are doing--modify
-// the SWIG interface file instead.
-//------------------------------------------------------------------------------
 
 namespace Tizen.NUI.UIComponents
 {
@@ -34,7 +24,7 @@ namespace Tizen.NUI.UIComponents
     /// <summary>
     /// Slider is a control to enable sliding an indicator between two values.
     /// </summary>
-    internal class Slider : View
+    public class Slider : View
     {
         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
 
@@ -365,71 +355,71 @@ namespace Tizen.NUI.UIComponents
             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;
-            }\r
-\r
-            //A Flag to check who called Dispose(). (By User or DisposeQueue)\r
-            private bool isDisposeQueued = false;\r
-            //A Flat to check if it is already disposed.\r
+            }
+
+            //A Flag to check who called Dispose(). (By User or DisposeQueue)
+            private bool isDisposeQueued = false;
+            //A Flat to check if it is already disposed.
             protected bool disposed = false;
 
-            ~Property()\r
-            {\r
-                if (!isDisposeQueued)\r
-                {\r
-                    isDisposeQueued = true;\r
-                    DisposeQueue.Instance.Add(this);\r
-                }\r
-            }\r
-\r
-            public void Dispose()\r
-            {\r
-                //Throw excpetion if Dispose() is called in separate thread.\r
-                if (!Window.IsInstalled())\r
-                {\r
-                    throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");\r
-                }\r
-\r
-                if (isDisposeQueued)\r
-                {\r
-                    Dispose(DisposeTypes.Implicit);\r
-                }\r
-                else\r
-                {\r
-                    Dispose(DisposeTypes.Explicit);\r
-                    System.GC.SuppressFinalize(this);\r
-                }\r
-            }\r
-\r
-            protected virtual void Dispose(DisposeTypes type)\r
-            {\r
-                if (disposed)\r
-                {\r
-                    return;\r
-                }\r
-\r
-                if (type == DisposeTypes.Explicit)\r
-                {\r
-                    //Called by User\r
-                    //Release your own managed resources here.\r
-                    //You should release all of your own disposable objects here.\r
-\r
-                }\r
-\r
-                //Release your own unmanaged resources here.\r
-                //You should not access any managed member here except static instance.\r
-                //because the execution order of Finalizes is non-deterministic.\r
-\r
-                if (swigCPtr.Handle != global::System.IntPtr.Zero)\r
-                {\r
-                    if (swigCMemOwn)\r
-                    {\r
-                        swigCMemOwn = false;\r
-                        NDalicPINVOKE.delete_Slider_Property(swigCPtr);\r
-                    }\r
-                    swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);\r
-                }\r
-\r
-                disposed = true;\r
+            ~Property()
+            {
+                if (!isDisposeQueued)
+                {
+                    isDisposeQueued = true;
+                    DisposeQueue.Instance.Add(this);
+                }
+            }
+
+            public void Dispose()
+            {
+                //Throw excpetion if Dispose() is called in separate thread.
+                if (!Window.IsInstalled())
+                {
+                    throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
+                }
+
+                if (isDisposeQueued)
+                {
+                    Dispose(DisposeTypes.Implicit);
+                }
+                else
+                {
+                    Dispose(DisposeTypes.Explicit);
+                    System.GC.SuppressFinalize(this);
+                }
+            }
+
+            protected virtual void Dispose(DisposeTypes type)
+            {
+                if (disposed)
+                {
+                    return;
+                }
+
+                if (type == DisposeTypes.Explicit)
+                {
+                    //Called by User
+                    //Release your own managed resources here.
+                    //You should release all of your own disposable objects here.
+
+                }
+
+                //Release your own unmanaged resources here.
+                //You should not access any managed member here except static instance.
+                //because the execution order of Finalizes is non-deterministic.
+
+                if (swigCPtr.Handle != global::System.IntPtr.Zero)
+                {
+                    if (swigCMemOwn)
+                    {
+                        swigCMemOwn = false;
+                        NDalicPINVOKE.delete_Slider_Property(swigCPtr);
+                    }
+                    swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+                }
+
+                disposed = true;
             }
 
             internal Property() : this(NDalicPINVOKE.new_Slider_Property(), true)