drawInsertionCursor

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.

More...

Parameters

widget gtk.widget.Widget

a #GtkWidget

cr cairo.context.Context

cairo context to draw to

location gdk.rectangle.Rectangle

location where to draw the cursor (location->width is ignored)

isPrimary bool

if the cursor should be the primary cursor color.

direction gtk.types.TextDirection

whether the cursor is left-to-right or right-to-left. Should never be #GTK_TEXT_DIR_NONE

drawArrow bool

true to draw a directional arrow on the cursor. Should be false unless the cursor is split.

Detailed Description

Deprecated: Use gtk.global.renderInsertionCursor instead.