Draws a text caret on cr at the specified index of layout.
| context | |
| cr |
a Context |
| x |
X origin |
| y |
Y origin |
| layout |
the Layout of the text |
| index |
the index in the Layout |
| direction |
the Direction of the text |