From: Bowon Ryu Date: Fri, 12 Jul 2024 05:03:31 +0000 (+0900) Subject: [NUI] Add ManualRendered to TextLabel X-Git-Tag: submit/tizen/20240821.061804~1^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c345ed02254f93e1b8a22e2056783d410519055;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Add ManualRendered to TextLabel Whether the last async rendering result is a manual render. If it's false, the render result was automatically requested by OnRelayout. Signed-off-by: Bowon Ryu --- diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.TextLabel.cs b/src/Tizen.NUI/src/internal/Interop/Interop.TextLabel.cs index bbb09ebdc..6a7ec9adb 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.TextLabel.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.TextLabel.cs @@ -196,6 +196,9 @@ namespace Tizen.NUI [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextLabel_Property_RENDER_MODE_get")] public static extern int RenderModeGet(); + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextLabel_Property_MANUAL_RENDERED_get")] + public static extern int ManualRenderedGet(); + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextLabel_RequestAsyncRenderWithFixedSize")] public static extern void RequestAsyncRenderWithFixedSize(global::System.Runtime.InteropServices.HandleRef textLabelRef, float width, float height); diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs b/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs index 16c0022a9..47c9f0886 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs @@ -2603,6 +2603,23 @@ namespace Tizen.NUI.BaseComponents } } + /// + /// Whether the last async rendering result is a manual render.
+ /// If it's false, the render result was automatically requested by OnRelayout. + ///
+ [EditorBrowsable(EditorBrowsableState.Never)] + public bool ManualRendered + { + get + { + bool manualRendered = false; + using (var propertyValue = GetProperty(TextLabel.Property.ManualRendered)) + { + propertyValue.Get(out manualRendered); + } + return manualRendered; + } + } private TextLabelSelectorData EnsureSelectorData() => selectorData ?? (selectorData = new TextLabelSelectorData()); @@ -2831,6 +2848,7 @@ namespace Tizen.NUI.BaseComponents internal static readonly int RemoveBackInset = Interop.TextLabel.RemoveBackInsetGet(); internal static readonly int Cutout = Interop.TextLabel.CutoutGet(); internal static readonly int RenderMode = Interop.TextLabel.RenderModeGet(); + internal static readonly int ManualRendered = Interop.TextLabel.ManualRenderedGet(); internal static void Preload()