From: TizenAPI-Bot Date: Fri, 18 Nov 2022 15:08:23 +0000 (+0000) Subject: Merge remote-tracking branch 'origin/API10' into tizen_7.0 X-Git-Tag: submit/tizen_7.0/20221118.150823~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6fe23cd0262cd31078ad612384d849027d4140f;hp=cad24775c3471bfd7d9cd36dc1139ae12cbb486a;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Merge remote-tracking branch 'origin/API10' into tizen_7.0 --- diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.Actor.cs b/src/Tizen.NUI/src/internal/Interop/Interop.Actor.cs index 88250b0..34f8d51 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.Actor.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.Actor.cs @@ -147,6 +147,10 @@ namespace Tizen.NUI [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Actor_SetNeedGesturePropagation")] public static extern float SetNeedGesturePropagation(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Actor_CalculateScreenExtents")] + public static extern global::System.IntPtr CalculateScreenExtents(global::System.Runtime.InteropServices.HandleRef jarg1); + #if NUI_PROPERTY_CHANGE_1 [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Actor_InternalRetrievingPropertyVector2")] public static extern int InternalRetrievingPropertyVector2(HandleRef actor, int propertyType, HandleRef retrievingVector2); diff --git a/src/Tizen.NUI/src/public/BaseComponents/View.cs b/src/Tizen.NUI/src/public/BaseComponents/View.cs index 143fa91..db1b8a9 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/View.cs @@ -1356,6 +1356,23 @@ namespace Tizen.NUI.BaseComponents } /// + /// Retrieves the screen position and size of the view.
+ ///
+ /// + /// The float type Rectangle class is not ready yet. + /// Therefore, it transmits data in Vector4 class. + /// This type should later be changed to the appropriate data type. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public Vector4 ScreenPositionSize + { + get + { + return GetCurrentScreenPositionSize(); + } + } + + /// /// Determines whether the pivot point should be used to determine the position of the view. /// This is false by default. /// diff --git a/src/Tizen.NUI/src/public/BaseComponents/ViewInternal.cs b/src/Tizen.NUI/src/public/BaseComponents/ViewInternal.cs index d24362b..2e290ed 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/ViewInternal.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/ViewInternal.cs @@ -884,6 +884,13 @@ namespace Tizen.NUI.BaseComponents #endif } + internal Vector4 GetCurrentScreenPositionSize() + { + Vector4 ret = new Vector4(Interop.Actor.CalculateScreenExtents(SwigCPtr), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve()); + return ret; + } + internal void SetInheritPosition(bool inherit) { Interop.ActorInternal.SetInheritPosition(SwigCPtr, inherit);