[NUI] Add GetMatrixFromPtr() in Matrix
authorDaekwang Ryu <dkdk.ryu@samsung.com>
Wed, 17 Aug 2022 05:46:56 +0000 (14:46 +0900)
committerEunki Hong <h.pichulia@gmail.com>
Mon, 24 Apr 2023 09:28:22 +0000 (18:28 +0900)
src/Tizen.NUI/src/public/Common/Matrix.cs

index 821d0a2..d6816da 100755 (executable)
@@ -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;
+        }
     }
 }