From d7665d111a2760155bb210641388b19edf923756 Mon Sep 17 00:00:00 2001 From: Bowon Ryu Date: Wed, 26 Jan 2022 14:40:13 +0900 Subject: [PATCH] [NUI] fix text underline struct added missing tag [EditorBrowsable(EditorBrowsableState.Never)] Fixed equals, hash for newly added fields Signed-off-by: Bowon Ryu --- src/Tizen.NUI/src/public/BaseComponents/TextConstants.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextConstants.cs b/src/Tizen.NUI/src/public/BaseComponents/TextConstants.cs index 2678cb0..c1603be 100644 --- a/src/Tizen.NUI/src/public/BaseComponents/TextConstants.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextConstants.cs @@ -247,6 +247,7 @@ namespace Tizen.NUI.Text /// /// The type of the underline (the default type is Solid). /// + [EditorBrowsable(EditorBrowsableState.Never)] public UnderlineType Type { get; set; } /// @@ -265,12 +266,14 @@ namespace Tizen.NUI.Text /// The width of the dashes of the dashed underline (if null, the default value is 2.0f).
/// Only valid when "UnderlineType.Dashed" type is used. ///
+ [EditorBrowsable(EditorBrowsableState.Never)] public float? DashWidth { get; set; } /// /// The gap between the dashes of the dashed underline (if null, the default value is 1.0f).
/// Only valid when "UnderlineType.Dashed" type is used. ///
+ [EditorBrowsable(EditorBrowsableState.Never)] public float? DashGap { get; set; } /// @@ -287,7 +290,8 @@ namespace Tizen.NUI.Text /// The Underline to compare with the current Underline. /// true if equal Underline, else false. [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(Underline other) => Enable == other.Enable && Color == other.Color && Height == other.Height; + public bool Equals(Underline other) => Enable == other.Enable && Type == other.Type && Color == other.Color && + Height == other.Height && DashWidth == other.DashWidth && DashGap == other.DashGap; /// /// The == operator. @@ -312,7 +316,7 @@ namespace Tizen.NUI.Text /// /// The hash code. [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => (Enable, Color, Height).GetHashCode(); + public override int GetHashCode() => (Enable, Type, Color, Height, DashWidth, DashGap).GetHashCode(); } /// -- 2.7.4