draw_insertion_cursor

function draw_insertion_cursor(widget:Gtk.Widget, cr:cairo.Context, location:Gdk.Rectangle, is_primary:Boolean, direction:Gtk.TextDirection, draw_arrow:Boolean):void {
    // Gjs wrapper for gtk_draw_insertion_cursor()
}

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.

Since 3.0

widget

a Gtk.Widget

cr

cairo context to draw to

location

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

is_primary

if the cursor should be the primary cursor color.

direction

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

draw_arrow

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