-// Copyright (c) 2021 Samsung Electronics Co., Ltd.
+// Copyright (c) 2023 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// limitations under the License.
using System;
+using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
}
/// <summary>
+ /// A struct to pass data of TextFitArray's OptionList.
+ /// </summary>
+ /// <remarks>
+ /// The TextFitArrayOption struct is used as an item to TextFitArray's OptionList. <br />
+ /// See <see cref="Tizen.NUI.Text.TextFitArray"/>.
+ /// </remarks>
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1815: Override equals and operator equals on value types")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public struct TextFitArrayOption
+ {
+ /// <summary>
+ /// Constructor.
+ /// </summary>
+ /// <param name="pointSize">The PointSize for TextFitArrayOption</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public TextFitArrayOption(float pointSize)
+ {
+ PointSize = pointSize;
+ MinLineSize = null;
+ }
+
+ /// <summary>
+ /// Constructor.
+ /// </summary>
+ /// <param name="pointSize">The PointSize for TextFitArrayOption</param>
+ /// <param name="minLineSize">The MinLineSize for TextFitArrayOption</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public TextFitArrayOption(float pointSize, float? minLineSize)
+ {
+ PointSize = pointSize;
+ MinLineSize = minLineSize;
+ }
+
+ /// <summary>
+ /// Point size for text fit array.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public float PointSize { get; set; }
+
+ /// <summary>
+ /// Min line size for text fit array.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public float? MinLineSize { get; set; }
+ }
+
+ /// <summary>
+ /// A struct to pass data of SetTextFitArray and GetTextFitArray methods.
+ /// </summary>
+ /// <remarks>
+ /// The TextFitArray struct is used as an argument to SetTextFitArray and GetTextFitArray methods. <br />
+ /// See <see cref="Tizen.NUI.BaseComponents.TextLabel.SetTextFitArray"/> and <see cref="Tizen.NUI.BaseComponents.TextLabel.GetTextFitArray"/>.
+ /// </remarks>
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1815: Override equals and operator equals on value types")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public struct TextFitArray
+ {
+ /// <summary>
+ /// True to enable the text fit array or false to disable (the default value is false).
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool Enable { get; set; }
+
+ /// <summary>
+ /// A List of TextFitArrayOptions.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public List<TextFitArrayOption> OptionList { get; set; }
+ }
+
+ /// <summary>
/// A struct to pass data of Placeholder PropertyMap. <br />
/// </summary>
/// <remarks>