Evas object: Add paragraph_direciton APIs 74/59674/1
authorYoungbok Shin <youngb.shin@samsung.com>
Thu, 19 Nov 2015 11:37:07 +0000 (11:37 +0000)
committerYoungbok Shin <youngb.shin@samsung.com>
Wed, 17 Feb 2016 08:55:37 +0000 (17:55 +0900)
commit09f670521852f44fea47e13e32df69ed11186848
treedb25113df0e81d6205d873f46326b84847539e36
parenta567fbd3caeaae697a13a007336d78af62899514
Evas object: Add paragraph_direciton APIs

Summary:
It adds evas_object_paragraph_direction_set, get APIs.
The APIs set or get paragraph direction to/from the given object.
It changes BiDi calculations and affect the direction and aligning of text.
It doesn't have any effect to text without Fribidi library.

The default paragraph direction is EVAS_BIDI_DIRECTION_INHERIT.
If dir is EVAS_BIDI_DIRECTION_INHERIT, paragraph direction is changed
according to smart parent object. If there is no smart parent object,
paragraph direction works as EVAS_BIDI_DIRECTION_NEUTRAL.

@feature

Test Plan:
Test cases included to the following files.
- evas_test_textblock.c
- evas_test_text.c
- evas_test_object_smart.c

Run "make check".

Reviewers: woohyun, raster, herdsman, tasn

Subscribers: c, raster, cedric

Differential Revision: https://phab.enlightenment.org/D1690

Conflicts:
src/lib/evas/canvas/evas_object_text.c

Change-Id: Ie97eab545f487bdd817156b18fd434f814159183
19 files changed:
src/Makefile_Evas.am
src/lib/edje/edje_object.eo
src/lib/edje/edje_smart.c
src/lib/evas/canvas/evas_object.eo
src/lib/evas/canvas/evas_object_main.c
src/lib/evas/canvas/evas_object_smart.c
src/lib/evas/canvas/evas_object_smart.eo
src/lib/evas/canvas/evas_object_text.c
src/lib/evas/canvas/evas_object_textblock.c
src/lib/evas/canvas/evas_text.eo
src/lib/evas/canvas/evas_textblock.eo
src/lib/evas/canvas/evas_types.eot
src/lib/evas/common/language/evas_bidi_utils.c
src/lib/evas/common/language/evas_bidi_utils.h
src/tests/evas/evas_suite.c
src/tests/evas/evas_suite.h
src/tests/evas/evas_test_object_smart.c [new file with mode: 0644]
src/tests/evas/evas_test_text.c
src/tests/evas/evas_test_textblock.c