diff options
author | Daniel Hirt <hirt.danny@gmail.com> | 2017-09-25 19:21:21 +0300 |
---|---|---|
committer | Daniel Hirt <hirt.danny@gmail.com> | 2017-09-26 15:12:42 +0300 |
commit | 8087729a4b9404da0fec12b04db45e1dc81c38cc (patch) | |
tree | bd08f1aff0fbb5ba0dbc616ebbc4aa3297c2d9e1 | |
parent | 42ac2136b014255369755157e3e4c20d24639662 (diff) | |
download | efl-8087729a4b9404da0fec12b04db45e1dc81c38cc.tar.gz |
Efl text: add Efl.Text.Markup interface
-rw-r--r-- | src/Makefile_Efl.am | 1 | ||||
-rw-r--r-- | src/lib/efl/Efl.h | 1 | ||||
-rw-r--r-- | src/lib/efl/interfaces/efl_interfaces_main.c | 1 | ||||
-rw-r--r-- | src/lib/efl/interfaces/efl_text_markup.eo | 31 |
4 files changed, 34 insertions, 0 deletions
diff --git a/src/Makefile_Efl.am b/src/Makefile_Efl.am index 25dde93a7c..981c20172a 100644 --- a/src/Makefile_Efl.am +++ b/src/Makefile_Efl.am @@ -26,6 +26,7 @@ efl_eolian_files = \ lib/efl/interfaces/efl_text_format.eo \ lib/efl/interfaces/efl_text_cursor.eo \ lib/efl/interfaces/efl_text_annotate.eo \ + lib/efl/interfaces/efl_text_markup.eo \ lib/efl/interfaces/efl_text_properties.eo \ lib/efl/interfaces/efl_gfx_stack.eo \ lib/efl/interfaces/efl_gfx_view.eo \ diff --git a/src/lib/efl/Efl.h b/src/lib/efl/Efl.h index 82a1e3d460..94ef6feffb 100644 --- a/src/lib/efl/Efl.h +++ b/src/lib/efl/Efl.h @@ -163,6 +163,7 @@ typedef Efl_Gfx_Path_Command_Type Efl_Gfx_Path_Command; #include "interfaces/efl_text_format.eo.h" #include "interfaces/efl_text_cursor.eo.h" #include "interfaces/efl_text_annotate.eo.h" +#include "interfaces/efl_text_markup.eo.h" #else diff --git a/src/lib/efl/interfaces/efl_interfaces_main.c b/src/lib/efl/interfaces/efl_interfaces_main.c index ded13b6ece..fc80036fb4 100644 --- a/src/lib/efl/interfaces/efl_interfaces_main.c +++ b/src/lib/efl/interfaces/efl_interfaces_main.c @@ -19,6 +19,7 @@ #include "interfaces/efl_text_format.eo.c" #include "interfaces/efl_text_cursor.eo.c" #include "interfaces/efl_text_annotate.eo.c" +#include "interfaces/efl_text_markup.eo.c" #include "interfaces/efl_gfx.eo.c" #include "interfaces/efl_gfx_buffer.eo.c" diff --git a/src/lib/efl/interfaces/efl_text_markup.eo b/src/lib/efl/interfaces/efl_text_markup.eo new file mode 100644 index 0000000000..cb9f3c1ef9 --- /dev/null +++ b/src/lib/efl/interfaces/efl_text_markup.eo @@ -0,0 +1,31 @@ +interface Efl.Text.Markup(Efl.Text.Cursor) { + [[Markup data that populates the text object's style and format + + @since 1.21 + ]] + methods { + @property markup { + values { + markup: string; [[The markup-text representation set to this text.]] + } + } + cursor_markup_insert { + [[Inserts a markup text to the text object in a given cursor position]] + params { + cur: ptr(Efl.Text.Cursor.Cursor); [[Cursor position to insert markup]] + @in markup: string; [[The markup text to insert]] + } + } + text_to_markup @class { + [[Converts a given (UTF-8) text to a markup-compatible string. + This is used mainly to set a plain text with the $.markup_set + property. + ]] + params { + @in text: string; [[The text to convert to markup]] + } + return: mstring @owned; [[The markup representation of given text]] + } + } +} + |