Add GetLineBoundingRectangle API. 92/282292/25
authorsarajammal <s.al-jammal@partner.samsung.com>
Sun, 25 Sep 2022 15:26:12 +0000 (18:26 +0300)
committersarajammal <s.al-jammal@partner.samsung.com>
Thu, 3 Nov 2022 13:41:02 +0000 (16:41 +0300)
commit8d70765e9e608bda15d8e04720687f3a0ddc0e81
tree66ed8d5161692a49a7845efbe3a734825855ef1d
parent082768507d9730794d9b1b77329699332ddde7e9
Add GetLineBoundingRectangle API.

Calculate the line size and position:
- X, the left starting point of the line.
- Y, the left top point of the line.
- Width.
- Height.

Function prototype: GetLineBoundingRectangle(ModelPtr model, uint32_t lineIndex);

Add new API to TextGeometry.

Reference patches:
https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/266891

Change-Id: I742a44bd406bc13d1c3ec35bce3049b467d21962
18 files changed:
automated-tests/src/dali-toolkit/CMakeLists.txt
automated-tests/src/dali-toolkit/test-text-geometry-utils.cpp
automated-tests/src/dali-toolkit/test-text-geometry-utils.h
automated-tests/src/dali-toolkit/utc-Dali-TextGeometry.cpp [new file with mode: 0644]
dali-toolkit/devel-api/file.list
dali-toolkit/devel-api/text/text-geometry-devel.cpp [new file with mode: 0644]
dali-toolkit/devel-api/text/text-geometry-devel.h [new file with mode: 0644]
dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp
dali-toolkit/internal/controls/text-controls/text-editor-impl.h
dali-toolkit/internal/controls/text-controls/text-field-impl.cpp
dali-toolkit/internal/controls/text-controls/text-field-impl.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/controller/text-controller.cpp
dali-toolkit/internal/text/controller/text-controller.h
dali-toolkit/internal/text/line-run.h
dali-toolkit/internal/text/text-geometry.cpp
dali-toolkit/internal/text/text-geometry.h