[ElmSharp.Wearable] Add Delete to CircleSurface 34/157534/2 preview1-00342
authorpius.lee <pius.lee@samsung.com>
Wed, 25 Oct 2017 03:03:32 +0000 (12:03 +0900)
committerpius.lee <pius.lee@samsung.com>
Wed, 25 Oct 2017 05:52:46 +0000 (14:52 +0900)
Change-Id: I9a54c96f9ae04438a76253e572b1ce88f450b24b

src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSurface.cs

index e00b593..c8e574a 100644 (file)
@@ -51,7 +51,19 @@ namespace ElmSharp.Wearable
         /// </summary>
         public IntPtr Handle => _handle;
 
-        internal static CircleSurface CreateCircleSurface(EvasObject obj)
+        /// <summary>
+        /// Delete the given CirclrSurface
+        /// </summary>
+        public void Delete()
+        {
+            if (Handle != IntPtr.Zero)
+            {
+                Interop.Eext.eext_circle_surface_del(Handle);
+                _handle = IntPtr.Zero;
+            }
+        }
+
+       internal static CircleSurface CreateCircleSurface(EvasObject obj)
         {
             if (obj is Conformant) return new CircleSurface(obj as Conformant);
             else if (obj is Naviframe) return new CircleSurface(obj as Naviframe);