From 944665efac73d709dc453896b8c1f227ee154cb1 Mon Sep 17 00:00:00 2001 From: Daekwang Ryu Date: Wed, 17 Aug 2022 14:46:56 +0900 Subject: [PATCH] [NUI] Add GetMatrixFromPtr() in Matrix --- src/Tizen.NUI/src/public/Common/Matrix.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Tizen.NUI/src/public/Common/Matrix.cs b/src/Tizen.NUI/src/public/Common/Matrix.cs index 821d0a2..d6816da 100755 --- a/src/Tizen.NUI/src/public/Common/Matrix.cs +++ b/src/Tizen.NUI/src/public/Common/Matrix.cs @@ -306,5 +306,12 @@ namespace Tizen.NUI Interop.Matrix.SetValueAtIndex(SwigCPtr, indexRow, indexColumn, val); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + + internal static Matrix GetMatrixFromPtr(global::System.IntPtr cPtr) + { + Matrix ret = new Matrix(cPtr, false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } } -- 2.7.4