Draws a text caret using snapshot at the specified index of layout.
a gtk.style_context.StyleContext
X origin
Y origin
the pango.layout.Layout of the text
the index in the pango.layout.Layout
the pango.types.Direction of the text
Draws a text caret using snapshot at the specified index of layout.