2018-05-23 02:48:56 -07:00
|
|
|
enum Efl.Text_Bidirectional_Type {
|
2019-09-30 10:45:45 -07:00
|
|
|
[[Bidirectionaltext type
|
|
|
|
|
|
|
|
@since 1.23
|
|
|
|
]]
|
2016-10-25 06:08:33 -07:00
|
|
|
natural = 0, [[Natural text type, same as neutral]]
|
|
|
|
neutral = 0, [[Neutral text type, same as natural]]
|
|
|
|
ltr, [[Left to right text type]]
|
|
|
|
rtl, [[Right to left text type]]
|
|
|
|
inherit [[Inherit text type]]
|
2016-06-16 04:44:45 -07:00
|
|
|
}
|
2017-05-16 01:46:36 -07:00
|
|
|
|
Efl.Ui.Text : all related interfaces
Summary:
Change summary:
Removed :
- efl_ui_text_selectable.eo and add it functionality into efl_text_interactive.eo
- efl_ui_text_editable.eo because it is same as efl_ui_text.eo (just set one property by default)
Modifications:
- Move all Text Input enums and functionality from efl_ui_text class into its own interface, this interface will be implemented at efl_ui_internal_text_interactive class.
- Rename selection_allowed property to selectable (same as other "editable" property) in efl_text_interactive
- Add select_all function into efl_text_interactive interface
- Add have_selection property into efl_text_interactive interface
- Move user_change , selection_start/change/clear and undo/redo events into efl_text_interactive interface.
- Move methods and events of copy/paste/cut into efl_ui_text
- Fix password-related functionality
- Remove context menu clear and add_item methods. (these should be added later with better design)
- Remove Validation event from EFL_UI_TEXT. (these should be added later with better design)
Reviewers: woohyun, tasn, segfaultxavi, zmike, bu5hm4n
Subscribers: stefan_schmidt, a.srour, q66, zmike, segfaultxavi, cedric
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10711
2019-12-08 17:58:39 -08:00
|
|
|
struct @beta Efl.Text_Change_Info {
|
2017-12-12 22:12:13 -08:00
|
|
|
[[This structure includes all the information about content changes.
|
|
|
|
|
|
|
|
It's meant to be used to implement undo/redo.
|
|
|
|
]]
|
|
|
|
content: string; [[The content added/removed]]
|
|
|
|
position: size; [[The position where it was added/removed]]
|
|
|
|
length: size; [[The length of content in characters (not bytes, actual unicode characters)]]
|
2020-01-06 21:35:10 -08:00
|
|
|
insertion: bool; [[$true if the content was inserted, $false if removed]]
|
|
|
|
mergeable: bool; [[$true if can be merged with the previous one. Used for example with insertion when something is already selected]]
|
2017-12-12 22:12:13 -08:00
|
|
|
}
|