[NUI] Add deleted APIs (#190) 5.0.0.14297
authorhuiyueun <35286162+huiyueun@users.noreply.github.com>
Tue, 27 Mar 2018 11:22:56 +0000 (20:22 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 27 Mar 2018 11:22:56 +0000 (20:22 +0900)
+add
Tizen.NUI.BaseComponents.ImageView.DownCast
Tizen.NUI.BaseComponents.TextLabel.DownCast
Tizen.NUI.ImfManager.Finalize
Tizen.NUI.NUIApplication.Window

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
src/Tizen.NUI/src/public/BaseComponents/ImageView.cs
src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs
src/Tizen.NUI/src/public/ImfManager.cs
src/Tizen.NUI/src/public/NUIApplication.cs

index 89ab4c2addbd782212f761181aafe309a5145823..d17e87e2370cf84c54272f99291d63c82d4b3692 100755 (executable)
@@ -196,6 +196,24 @@ namespace Tizen.NUI.BaseComponents
 
         }
 
+        /// <summary>
+        /// Downcasts a handle to imageView handle.
+        /// </summary>
+        /// Please do not use! this will be deprecated!
+        /// Instead please use as keyword.
+        /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead! " +
+            "Like: " +
+            "BaseHandle handle = new ImageView(imagePath); " +
+            "ImageView image = handle as ImageView")]
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public new static ImageView DownCast(BaseHandle handle)
+        {
+            ImageView ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as ImageView;
+            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+            return ret;
+        }
+
         /// <summary>
         /// Sets this ImageView from the given URL.<br />
         /// If the URL is empty, ImageView will not display anything.<br />
index f8e39ea72624a42bf900643f3040ed4de92a2efc..67f9a31dd3191895d96230629cf35c72b91706e0 100755 (executable)
@@ -43,6 +43,27 @@ namespace Tizen.NUI.BaseComponents
             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
         }
 
+        /// <summary>
+        /// Downcasts a handle to textLabel handle
+        /// </summary>
+        /// <param name="handle"></param>
+        /// <returns></returns>
+        /// <since_tizen> 3 </since_tizen>
+        /// Please do not use! this will be deprecated!
+        /// Instead please use as keyword.
+        [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead! " +
+            "Like: " +
+            "BaseHandle handle = new TextLabel(\"Hello World!\"); " +
+            "TextLabel label = handle as TextLabel")]
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public new static TextLabel DownCast(BaseHandle handle)
+        {
+            TextLabel ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as TextLabel;
+
+            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+            return ret;
+        }
+
         /// <summary>
         /// Dispose.
         /// </summary>
index 61e364a05281e0791294561a52bd5bcf09fff5e6..a10b193d90bd2f34d765f5aa01b04818890fffcb 100755 (executable)
@@ -491,6 +491,18 @@ namespace Tizen.NUI
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
+        /// <summary>
+        /// Destroy the context of the IMF.<br/>
+        /// </summary>
+        /// <since_tizen> 4 </since_tizen>
+        /// Please do not use! This will be deprecated, instead please USE Tizen.NUI.ImfManager.Instance.DestroyContext()!
+        [Obsolete("Please do not use! This will be deprecated! Please use ImfManager.Instance.DestroyContext() instead!")]
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public void Finalize()
+        {
+            DestroyContext();
+        }
+
         /// <summary>
         /// Retrieves a handle to the instance of the ImfManager.
         /// </summary>
index 97bba6ceeacb50ea666cad197d560c4e2f9f8c60..cb2c50d52ad194789c77f61aec3f63c84a86480b 100755 (executable)
@@ -246,5 +246,19 @@ namespace Tizen.NUI
                 resourceManager = value;
             }
         }
+
+        /// <summary>
+        /// Gets the window instance.
+        /// </summary>
+        /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Please do not use! This will be deprecated!")]
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public Window Window
+        {
+            get
+            {
+                return Window.Instance;
+            }
+        }
     }
 }