NAME
Prima::Widget::BidiInput - heuristics for i18n input
DESCRIPTION
Provides the common functionality for the bidirectional input to be used in editable widgets
Methods
- handle_bidi_input %OPTIONS
-
Given
action
andtext
in%OPTIONS
, returns new text and suggested new cursor position.The following options are understood:
- action
-
One of: backspace, delete, cut, insert, overtype
- at INTEGER
-
Current cursor position in clusters
- glyphs Prima::Drawable::Glyphs object
-
Shaped text
- n_clusters INTEGER
-
Amount of clusters in the text
- rtl BOOLEAN
-
Is widget or currently selected method is RTL (right-to-left)
- text STRING
-
A text to edit
AUTHOR
Dmitry Karasik, <dmitry@karasik.eu.org>.