Function

Gtkdraw_insertion_cursor

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 GtkWidget
 

A GtkWidget.

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

Cairo context to draw to.

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

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

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

If the cursor should be the primary cursor color.

direction GtkTextDirection
 

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

draw_arrow gboolean
 

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