render_insertion_cursor

function render_insertion_cursor(context:Gtk.StyleContext, cr:cairo.Context, x:Number, y:Number, layout:Pango.Layout, index:Number, direction:Pango.Direction):void {
    // Gjs wrapper for gtk_render_insertion_cursor()
}

Draws a text caret on cr at the specified index of layout.

Since 3.4

context

a Gtk.StyleContext

cr

a #cairo_t

x

X origin

y

Y origin

layout

the Pango.Layout of the text

index

the index in the Pango.Layout

direction

the Pango.Direction of the text