Add RequestAsyncRenderWithConstraint to text label
authorBowon Ryu <bowon.ryu@samsung.com>
Wed, 10 Jul 2024 05:38:23 +0000 (14:38 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Wed, 10 Jul 2024 05:38:23 +0000 (14:38 +0900)
commita7cb948e46e3531a1bf12bb681c0d2dc595b5183
tree779b8f2696b3124b95804ad6535e901de083b5db
parent5a7abb794f14397a09e9170304325a7ac09ac4cb
Add RequestAsyncRenderWithConstraint to text label

Requests asynchronous rendering with the maximum available width using the given widthConstraint.

If the width of the text content is smaller than the widthConstraint, the width will be determined by the width of the text.
If the width of the text content is larger than the widthConstraint, the width will be determined by the widthConstraint.

The height is determined by the content of the text when rendered with the given width.
In this case, the result will be the same as the height returned by GetHeightForWidth.

Change-Id: I375b70172267d24468eb9c9bbfd60e98ce80d190
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
dali-toolkit/devel-api/controls/text-controls/text-label-devel.cpp
dali-toolkit/devel-api/controls/text-controls/text-label-devel.h
dali-toolkit/internal/controls/text-controls/text-label-impl.cpp
dali-toolkit/internal/controls/text-controls/text-label-impl.h
dali-toolkit/internal/text/async-text/async-text-loader-impl.cpp
dali-toolkit/internal/text/async-text/async-text-loader.h
dali-toolkit/internal/visuals/text/text-visual.cpp