drawInsertionCursor

fnvoid drawInsertionCursor(gtk.widget.Widget widget, cairo.context.Context cr, gdk.rectangle.Rectangle location, bool isPrimary, gtk.types.TextDirection direction, bool drawArrow)

Draws a text caret on cr at location. This is not a style function but merely a convenience function for drawing the standard cursor shape.

Parameters

widgeta #GtkWidget
crcairo context to draw to
locationlocation where to draw the cursor (location->width is ignored)
isPrimaryif the cursor should be the primary cursor color.
directionwhether the cursor is left-to-right or right-to-left. Should never be #GTK_TEXT_DIR_NONE
drawArrowtrue to draw a directional arrow on the cursor. Should be false unless the cursor is split.

Deprecated

Use [gtk.global.renderInsertionCursor] instead.