diff options
author | Ali Alzyod <ali198724@gmail.com> | 2020-01-03 12:06:25 +0100 |
---|---|---|
committer | Xavi Artigas <xavierartigas@yahoo.es> | 2020-01-08 16:11:38 +0100 |
commit | 43ad91ee406cbcc5715486813324a2eecbd5ece4 (patch) | |
tree | 2285bb8eae6c389a751057b188964a7dd11a6461 | |
parent | 5140c43960c9fc29dce279e73035bc7d2fd9146f (diff) | |
download | efl-43ad91ee406cbcc5715486813324a2eecbd5ece4.tar.gz |
Text_Format_Horizontal_Alignment_Auto_Type: rename enums, and Doc details
Summary: Text_Format_Horizontal_Alignment_Auto_Type: rename enums, and Doc details
Reviewers: woohyun, ali.alzyod
Reviewed By: ali.alzyod
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T7939
Differential Revision: https://phab.enlightenment.org/D10993
-rw-r--r-- | src/lib/efl/interfaces/efl_text_format.eo | 17 | ||||
-rw-r--r-- | src/lib/evas/canvas/evas_object_textblock.c | 4 |
2 files changed, 13 insertions, 8 deletions
diff --git a/src/lib/efl/interfaces/efl_text_format.eo b/src/lib/efl/interfaces/efl_text_format.eo index 5c974a675e..03a44295a5 100644 --- a/src/lib/efl/interfaces/efl_text_format.eo +++ b/src/lib/efl/interfaces/efl_text_format.eo @@ -9,10 +9,10 @@ enum @beta Efl.Text_Format_Wrap { } enum @beta Efl.Text_Format_Horizontal_Alignment_Auto_Type { - [[Auto-horizontal alignment of the text.]] - none, [[No auto-alignment rule.]] - normal, [[Respects LTR/RTL (bidirectional) settings.]] - locale, [[Respects locale's language settings.]] + [[Auto-horizontal alignment setting for the text (Left-To-Right or Right-To-Left).]] + none, [[No auto-alignment rule: Horizontal Alignment is decided by @Efl.Text_Format.text_horizontal_align]] + auto, [[Respects LTR/RTL (bidirectional) characters found inside the text content.]] + locale, [[Respects the system's language settings.]] end [[Text is placed at opposite side of LTR/RTL (bidirectional) settings.]] } @@ -55,7 +55,7 @@ interface @beta Efl.Text_Format { } @property text_horizontal_align_auto_type { - [[Horizontal alignment of text.]] + [[Specifies when the text's horizontal alignment should be set automatically.]] values { value: Efl.Text_Format_Horizontal_Alignment_Auto_Type; [[Alignment type.]] } @@ -63,7 +63,12 @@ interface @beta Efl.Text_Format { @property text_horizontal_align { [[Horizontal alignment of text. $[0.0] means "left" - and $[1.0] means "right".]] + and $[1.0] means "right". + Setting this value also sets @.text_horizontal_align_auto_type to + @Efl.Text_Format_Horizontal_Alignment_Auto_Type.none. + This value is ignored when @.text_horizontal_align_auto_type is set to anything other than + @Efl.Text_Format_Horizontal_Alignment_Auto_Type.none. + ]] values { value: double; [[Alignment value between $[0.0] and $[1.0].]] } diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c index 1dcad334c6..93c7a4b5d5 100644 --- a/src/lib/evas/canvas/evas_object_textblock.c +++ b/src/lib/evas/canvas/evas_object_textblock.c @@ -16773,7 +16773,7 @@ _efl_canvas_textblock_efl_text_format_text_horizontal_align_auto_type_set(Eo *ob { _FMT_SET(halign_auto, EVAS_TEXTBLOCK_ALIGN_AUTO_NONE); } - else if (type == EFL_TEXT_FORMAT_HORIZONTAL_ALIGNMENT_AUTO_TYPE_NORMAL) + else if (type == EFL_TEXT_FORMAT_HORIZONTAL_ALIGNMENT_AUTO_TYPE_AUTO) { _FMT_SET(halign_auto, EVAS_TEXTBLOCK_ALIGN_AUTO_NORMAL); } @@ -16795,7 +16795,7 @@ _efl_canvas_textblock_efl_text_format_text_horizontal_align_auto_type_get(const if (_FMT(halign_auto) == EVAS_TEXTBLOCK_ALIGN_AUTO_NORMAL) { - ret = EFL_TEXT_FORMAT_HORIZONTAL_ALIGNMENT_AUTO_TYPE_NORMAL; + ret = EFL_TEXT_FORMAT_HORIZONTAL_ALIGNMENT_AUTO_TYPE_AUTO; } else if (_FMT(halign_auto) == EVAS_TEXTBLOCK_ALIGN_AUTO_END) { |