summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces
diff options
context:
space:
mode:
authorDaniel Hirt <hirt.danny@gmail.com>2017-10-20 18:02:08 +0300
committerCedric BAIL <cedric@osg.samsung.com>2017-11-10 10:30:00 -0800
commit58ce1d654b0d4ead58bba384b1e1edd5b605bc4e (patch)
tree0561edc127d4689834f156da648142a8ab5f3929 /src/lib/efl/interfaces
parent941fe1ffbd29b42be4b4d62ec5a35727f19a0394 (diff)
Canvas text: change halign/valign to use doubles
There are use cases where you would want to align by a value. The wordy alignment values are thus removed. This commit also separates auto-modes (none, normal, locale) for horizontal alignment to its own API. Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/efl/interfaces')
-rw-r--r--src/lib/efl/interfaces/efl_text_format.eo35
1 files changed, 16 insertions, 19 deletions
diff --git a/src/lib/efl/interfaces/efl_text_format.eo b/src/lib/efl/interfaces/efl_text_format.eo
index 5e14893f06..0e1829972b 100644
--- a/src/lib/efl/interfaces/efl_text_format.eo
+++ b/src/lib/efl/interfaces/efl_text_format.eo
@@ -7,23 +7,13 @@ enum Efl.Text.Format.Wrap {
7 hyphenation [[Wrap mode hyphenation]] 7 hyphenation [[Wrap mode hyphenation]]
8} 8}
9 9
10enum Efl.Text.Format.Horizontal_Alignment_Type { 10enum Efl.Text.Format.Horizontal_Alignment_Auto_Type {
11 [[Horizontal alignment of the text]] 11 [[Auto-horizontal alignment of the text]]
12 legacy: efl_text_horizontal_alignment; 12 legacy: efl_text_horizontal_alignment_auto;
13 auto, [[Respects LTR/RTL (bidirectional) settings]] 13 none, [[No auto-alignment rule]]
14 locale, [[Respects locale's langauge settings]] 14 normal, [[Respects LTR/RTL (bidirectional) settings]]
15 left, [[Text is placed at the left end of the line]] 15 locale, [[Respects locale's langauge settings]]
16 right, [[Text is placed at the right end of the line]] 16 end [[Text is places at opposite side of LTR/RTL (bidirectional) settings]]
17 center, [[Text is places at the center of the line]]
18 end [[Text is places at opposite side of LTR/RTL (bidirectional) settings]]
19}
20
21enum Efl.Text.Format.Vertical_Alignment_Type {
22 [[Horizontal alignment of the text]]
23 legacy: efl_text_vertical_alignment;
24 top, [[Text is placed at the top]]
25 center, [[Text is placed at the center]]
26 bottom [[Text is placed at the bottom]]
27} 17}
28 18
29interface Efl.Text.Format { 19interface Efl.Text.Format {
@@ -58,17 +48,24 @@ interface Efl.Text.Format {
58 } 48 }
59 } 49 }
60 50
51 @property halign_auto_type {
52 [[Horizontal alignment of text]]
53 values {
54 value: Efl.Text.Format.Horizontal_Alignment_Auto_Type; [[Alignment type]]
55 }
56 }
57
61 @property halign { 58 @property halign {
62 [[Horizontal alignment of text]] 59 [[Horizontal alignment of text]]
63 values { 60 values {
64 value: Efl.Text.Format.Horizontal_Alignment_Type; [[Alignment type]] 61 value: double; [[Horizontal alignment value]]
65 } 62 }
66 } 63 }
67 64
68 @property valign { 65 @property valign {
69 [[Vertical alignment of text]] 66 [[Vertical alignment of text]]
70 values { 67 values {
71 value: Efl.Text.Format.Vertical_Alignment_Type; [[Allignment type]] 68 value: double; [[Vertical alignment value]]
72 } 69 }
73 } 70 }
74 71