Page MenuHomePhabricator

efl.text_interactive
Open, TODOPublic

Description

|interface Efl.Text_Interactive @beta
 |├ (P) selection_allowed
 |├ (P) selection_cursors
 |├ (P) editable
 |├ (M) select_none
 |├ (E) text,selection,changed
bu5hm4n created this task.May 3 2019, 11:12 AM
bu5hm4n triaged this task as TODO priority.
zmike moved this task from Backlog to Evaluating on the efl: api board.Wed, Jun 12, 7:37 AM
zmike added a comment.Wed, Jun 12, 9:34 AM

This seems mostly okay, though I would expect that the event would pass the selection info...possibly as an array[2] of cursors?

That would be consistent with other APIs, agreed.

Also, Efl.Text_Cursor_Cursor needs a rename, maybe Efl.Text_Cursor_Data as its comment suggests.

zmike added a comment.Thu, Jun 13, 6:17 AM

Maybe Efl.Text_Cursor_Info ?

Efl.Text_Cursor_Info works for me.

This is a wonderful structure, seems to be heavily used in the Unified API, but it is defined in eo as __undefined_type, so it is completely unusable for bindings.
The actual structure is defined in ./src/lib/evas/canvas/evas_object_textblock.c, completely undocumented and depends on a legacy type.
So even if we opened it up for eo usage, some legacy type (Evas_Object_Textblock_Node_Text) needs to be converted to eo.

I'd say there's some heavy work to do here.