diff options
author | ali <ali198724@gmail.com> | 2019-12-20 12:45:31 +0100 |
---|---|---|
committer | Xavi Artigas <xavierartigas@yahoo.es> | 2019-12-20 12:47:25 +0100 |
commit | 74a8c646bcb9a344e446c1c5c19a336a5e3dbb68 (patch) | |
tree | 8fceee3357cdcd9059f65f5841216026302b5b5a | |
parent | 8dbc75fdce3a88bbb7cd29ab9ee2383b4d76417d (diff) | |
download | efl-74a8c646bcb9a344e446c1c5c19a336a5e3dbb68.tar.gz |
efl.canvas.textblock: update eo file documentation
Summary: T8460
Reviewers: segfaultxavi
Reviewed By: segfaultxavi
Subscribers: segfaultxavi, cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10936
-rw-r--r-- | src/lib/evas/canvas/efl_canvas_textblock.eo | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_textblock.eo b/src/lib/evas/canvas/efl_canvas_textblock.eo index 978c502b2c..442c418fcd 100644 --- a/src/lib/evas/canvas/efl_canvas_textblock.eo +++ b/src/lib/evas/canvas/efl_canvas_textblock.eo @@ -54,7 +54,8 @@ class @beta Efl.Canvas.Textblock extends Efl.Canvas.Object implements Efl.Text, @property style_insets { [[Gets the left, right, top and bottom insets of the text. - The inset is any applied padding on the text. + The inset is any applied padding on the text (which is calculated + internally by styling applied to Textblock). ]] get {} values { @@ -78,11 +79,13 @@ class @beta Efl.Canvas.Textblock extends Efl.Canvas.Object implements Efl.Text, } @property newline_as_paragraph_separator { [[When $true, the newline character will behave as a paragraph separator. + Paragraph separator equal U+2029, and new line equal U+000A. + This will effect a lot of text behaviour like @Efl.Text.Cursor.move method. ]] set {} get {} values { - mode: bool; [[$true for legacy mode, $false otherwise.]] + mode: bool; [[$true to treat new line as paragraph separator, $false otherwise.]] } } style_apply { @@ -433,6 +436,10 @@ class @beta Efl.Canvas.Textblock extends Efl.Canvas.Object implements Efl.Text, Once layout is complete, the result is returned as @Eina.Rect, with the $w and $h fields set. + + This can be used to layout Textblock before it is required + to layout internally in back thread, which can enhance application + performance. ]] return: future<Eina.Rect>; [[Future for layout result.]] } |