Function

Gtkdraw_insertion_cursor

deprecated: 3.4 since: 3.0

Declaration [src]

void
gtk_draw_insertion_cursor (
  GtkWidget* widget,
  cairo_t* cr,
  const GdkRectangle* location,
  gboolean is_primary,
  GtkTextDirection direction,
  gboolean draw_arrow
)

Description [src]

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.

Available since: 3.0

Deprecated since: 3.4

Use gtk_render_insertion_cursor() instead.

Parameters

widget

Type: GtkWidget

A GtkWidget.

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

Type: cairo_t

Cairo context to draw to.

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

Type: GdkRectangle

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

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

Type: gboolean

If the cursor should be the primary cursor color.

direction

Type: GtkTextDirection

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

draw_arrow

Type: gboolean

TRUE to draw a directional arrow on the cursor. Should be FALSE unless the cursor is split.