Function

Gtkrender_insertion_cursor

since: 3.4

Declaration [src]

void
gtk_render_insertion_cursor (
  GtkStyleContext* context,
  cairo_t* cr,
  gdouble x,
  gdouble y,
  PangoLayout* layout,
  int index,
  PangoDirection direction
)

Description [src]

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

Available since: 3.4

Parameters

context

Type: GtkStyleContext

A GtkStyleContext.

The data is owned by the caller of the function.
cr

Type: cairo_t

A #cairo_t.

The data is owned by the caller of the function.
x

Type: gdouble

X origin.

y

Type: gdouble

Y origin.

layout

Type: PangoLayout

The PangoLayout of the text.

The data is owned by the caller of the function.
index

Type: int

The index in the PangoLayout.

direction

Type: PangoDirection

The PangoDirection of the text.