efl_ui_textpath: introduce efl_ui_textpath_circular_set() interface.
authorHermet Park <hermetpark@gmail.com>
Mon, 22 Jul 2019 07:47:43 +0000 (16:47 +0900)
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>
Tue, 23 Jul 2019 05:08:17 +0000 (14:08 +0900)
commit48094514d4a6c7e0c830996a0c410837003a9e72
treed615b1d9dd6286e37288e919ea342ef4a62fa70a
parent299d0da475e668fdd649a85630442c345e19d4d5
efl_ui_textpath: introduce efl_ui_textpath_circular_set() interface.

Summary:
This patch revises efl_ui_textpath_circle_set() interface.

Current circle_set() behavior is wrongly working,
it makes object minimal size with (x * 2, y * 2).
Insanely, how big size if the object is far from the screen origin.

Secondly, current interface requires center position,
How this center position could be guranteed if user wants to put it into a container?

Third, actual textpath output could be out of the textpath boundary,
since the textpath is originated to middle of text height.
the display boundary can be outside of the textpath geometry by (half of text height).

All in all, put altogether in fix,
I confirmed there is no methods without any compatibility break.

This brings elm_textpath_circular_set() api introduced.

@feature

Reviewers: #committers, kimcinoo, jsuya

Subscribers: zmike, bu5hm4n, segfaultxavi, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9260
src/bin/elementary/test_ui_textpath.c
src/lib/elementary/efl_ui_textpath.c
src/lib/elementary/efl_ui_textpath.eo
src/lib/elementary/efl_ui_textpath_eo.legacy.c
src/lib/elementary/efl_ui_textpath_eo.legacy.h