[NUI] Fix build warnings: use the new keyword
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / UIComponents / Popup.cs
index 567eb80..9d64b47 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
 {
@@ -41,8 +31,6 @@ namespace Tizen.NUI.UIComponents
         internal Popup(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Popup_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
-            // By default, we do not want the position to use the anchor point
-            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Popup obj)
@@ -70,9 +58,6 @@ namespace Tizen.NUI.UIComponents
             //You should not access any managed member here except static instance.
             //because the execution order of Finalizes is non-deterministic.
 
-            //Unreference this from if a static instance refer to this.
-            Registry.Unregister(this);
-
             if (swigCPtr.Handle != global::System.IntPtr.Zero)
             {
                 if (swigCMemOwn)
@@ -330,7 +315,7 @@ namespace Tizen.NUI.UIComponents
             }
         }
 
-        internal class Property
+        internal new class Property
         {
             internal static readonly int TITLE = NDalicPINVOKE.Popup_Property_TITLE_get();
             internal static readonly int CONTENT = NDalicPINVOKE.Popup_Property_CONTENT_get();
@@ -364,16 +349,10 @@ namespace Tizen.NUI.UIComponents
 
         }
 
-        /// <summary>
-        /// Downcasts a handle to Popup handle.<br>
-        /// If handle points to a Popup, the downcast produces valid handle.<br>
-        /// If not the returned handle is left uninitialized.<br>
-        /// </summary>
-        /// <param name="handle">Handle to an object</param>
-        /// <returns>handle to a Popup or an uninitialized handle</returns>
+        [Obsolete("Please do not use! this will be deprecated")]
         public new static Popup DownCast(BaseHandle handle)
         {
-            Popup ret = new Popup(NDalicPINVOKE.Popup_DownCast(BaseHandle.getCPtr(handle)), true);
+            Popup ret =  Registry.GetManagedBaseHandleFromNativePtr(handle) as Popup;
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
             return ret;
         }
@@ -390,7 +369,9 @@ namespace Tizen.NUI.UIComponents
 
         internal View GetTitle()
         {
-            View ret = new View(NDalicPINVOKE.Popup_GetTitle(swigCPtr), true);
+            IntPtr cPtr = NDalicPINVOKE.Popup_GetTitle(swigCPtr);
+            View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
+
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
             return ret;
         }
@@ -407,7 +388,9 @@ namespace Tizen.NUI.UIComponents
 
         internal View GetContent()
         {
-            View ret = new View(NDalicPINVOKE.Popup_GetContent(swigCPtr), true);
+            IntPtr cPtr = NDalicPINVOKE.Popup_GetContent(swigCPtr);
+            View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
+
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
             return ret;
         }
@@ -424,7 +407,9 @@ namespace Tizen.NUI.UIComponents
 
         internal View GetFooter()
         {
-            View ret = new View(NDalicPINVOKE.Popup_GetFooter(swigCPtr), true);
+            IntPtr cPtr = NDalicPINVOKE.Popup_GetFooter(swigCPtr);
+            View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
+
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
             return ret;
         }
@@ -589,9 +574,7 @@ namespace Tizen.NUI.UIComponents
                 string temp;
                 if (GetProperty(Popup.Property.DISPLAY_STATE).Get(out temp) == false)
                 {
-#if DEBUG_ON
-                    Tizen.Log.Error("NUI", "DisplayState get error!");
-#endif
+                    NUILog.Error("DisplayState get error!");
                 }
                 switch (temp)
                 {
@@ -699,9 +682,7 @@ namespace Tizen.NUI.UIComponents
                 string temp;
                 if (GetProperty(Popup.Property.CONTEXTUAL_MODE).Get(out temp) == false)
                 {
-#if DEBUG_ON
-                    Tizen.Log.Error("NUI", "ContextualMode get error!");
-#endif
+                    NUILog.Error("ContextualMode get error!");
                 }
                 switch (temp)
                 {
@@ -784,9 +765,7 @@ namespace Tizen.NUI.UIComponents
                 string temp;
                 if (GetProperty(Popup.Property.ANIMATION_MODE).Get(out temp) == false)
                 {
-#if DEBUG_ON
-                    Tizen.Log.Error("NUI", "AnimationMode get error!");
-#endif
+                    NUILog.Error("AnimationMode get error!");
                 }
                 switch (temp)
                 {