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:
GtkWidgetA
GtkWidget.The data is owned by the caller of the function. cr-
Type:
cairo_tCairo context to draw to.
The data is owned by the caller of the function. location-
Type:
GdkRectangleLocation where to draw the cursor (
location->width is ignored).The data is owned by the caller of the function. is_primary-
Type:
gbooleanIf the cursor should be the primary cursor color.
direction-
Type:
GtkTextDirectionWhether the cursor is left-to-right or right-to-left. Should never be #GTK_TEXT_DIR_NONE.
draw_arrow-
Type:
gbooleanTRUEto draw a directional arrow on the cursor. Should beFALSEunless the cursor is split.