Summary:
This is a temporary fix while Text is being revamped.
Efl.Ui.Text internally composites Efl.Text_Cursor (through some other interfaces)
but this was not being advertised in the EO file.
This caused no trouble to C but was preventing C# from using the Cursors API
(because C# relies on the EO composites section).
On top of this, the cursor_new() method has been removed, since it was redundant.
Test Plan:
Builds and passes tests, and C# is able to do things like:
```
Efl.TextCursorCursor cursor = screen.GetTextCursor(Efl.TextCursorGetType.Main);
screen.InsertCursorText(cursor, str);
```
Reviewers: lauromoura, cedric, tasn
Reviewed By: lauromoura
Subscribers: #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10465
return ret;
}
-EOLIAN static Efl_Text_Cursor_Cursor *
-_efl_ui_text_cursor_new(Eo *obj EINA_UNUSED, Efl_Ui_Text_Data *sd EINA_UNUSED)
-{
- Eo *text_obj = sd->text_obj;
- return efl_text_cursor_new(text_obj);
-}
-
static void
_edje_signal_emit(Efl_Ui_Text_Data *sd, const char *sig, const char *src)
{
Efl.Access.Text, Efl.Access.Editable.Text, Efl.File,
Efl.Ui.Text_Selectable
composites
- Efl.Text_Interactive, Efl.Text_Markup
+ Efl.Text_Interactive, Efl.Text_Markup, Efl.Text_Cursor
{
[[A flexible text widget which can be static (as a label) or editable by
the user (as a text entry). It provides all sorts of editing facilities
@in data: const(void_ptr) @optional; [[The data to associate with the item for related functions.]]
}
}
- cursor_new {
- [[Creates and returns a new cursor for the text.]]
- return: ptr(Efl.Text_Cursor_Cursor); [[Text cursor]]
- }
}
implements {
Efl.Object.constructor;