X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FTizen.NUI%2Fsrc%2Fpublic%2FRelativeVector2.cs;h=e283c540f5e9039e101ef22e8937507872e0de9f;hb=c3ecc722bf90238ce39641035c599e0c7880477b;hp=d4d68afa764b6f1a7c842113dcd0306cb61a6fe6;hpb=e41b525990b0c18f916a1e5d15baec5a1a71bd7b;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/src/Tizen.NUI/src/public/RelativeVector2.cs b/src/Tizen.NUI/src/public/RelativeVector2.cs index d4d68af..e283c54 100755 --- a/src/Tizen.NUI/src/public/RelativeVector2.cs +++ b/src/Tizen.NUI/src/public/RelativeVector2.cs @@ -14,8 +14,8 @@ * limitations under the License. * */ - using System; - using Tizen.NUI.Binding; +using System.ComponentModel; +using Tizen.NUI.Binding; namespace Tizen.NUI { @@ -24,16 +24,9 @@ namespace Tizen.NUI /// Both values (x and y) should be between [0, 1]. /// /// 3 - [TypeConverter(typeof(RelativeVector2TypeConverter))] + [Binding.TypeConverter(typeof(RelativeVector2TypeConverter))] public class RelativeVector2 : Disposable { - /// - /// swigCMemOwn - /// - /// 3 - protected bool swigCMemOwn; - - private global::System.Runtime.InteropServices.HandleRef swigCPtr; /// /// The constructor. @@ -75,10 +68,8 @@ namespace Tizen.NUI if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } - internal RelativeVector2(global::System.IntPtr cPtr, bool cMemoryOwn) + internal RelativeVector2(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } /// @@ -333,31 +324,11 @@ namespace Tizen.NUI return value; } - /// - /// Dispose. - /// - /// 3 - protected override void Dispose(DisposeTypes type) + /// This will not be public opened. + [EditorBrowsable(EditorBrowsableState.Never)] + protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr) { - if (disposed) - { - return; - } - - //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; - Interop.Vector2.delete_Vector2(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - base.Dispose(type); + Interop.Vector2.delete_Vector2(swigCPtr); } private RelativeVector2 Add(RelativeVector2 rhs)