[NUI] Add SetTextFit, GetTextFit to TextLabel
authorBowon Ryu <bowon.ryu@samsung.com>
Tue, 10 Aug 2021 11:10:38 +0000 (20:10 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 18 Aug 2021 03:10:44 +0000 (12:10 +0900)
commit88da18590339f3fd666a4910498e9ff28b9aedf1
tree2b94d4742dbbd0130f7b5b5b11d19df01f933931
parent0844b8a0924e9817b09a41b16f85587c28628d1e
[NUI] Add SetTextFit, GetTextFit to TextLabel

Add a TextFit struct to pass data of DALi TextFit PropertyMap.
The TextFit struct can be used as an argument to
SetTextFit and GetTextFit methods.

// example
var textFit = new Tizen.NUI.Text.TextFit();
textFit.Enable = true;
textFit.MinSize = 10.0f;
textFit.MaxSize = 100.0f;
textFit.StepSize = 5.0f;
textFit.FontSizeType = FontSizeType.PointSize;
label.SetTextFit(textFit);

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs
src/Tizen.NUI/src/public/BaseComponents/TextUtils.cs
src/Tizen.NUI/src/public/Common/NUIConstants.cs