Snapshot.renderInsertionCursor

Draws a text caret using @snapshot at the specified index of @layout.

class Snapshot
void
renderInsertionCursor

Parameters

context StyleContext

a GtkStyleContext

x double

X origin

y double

Y origin

layout PgLayout

the PangoLayout of the text

index int

the index in the #PangoLayout

direction PangoDirection

the #PangoDirection of the text

Meta