Function
Gtkdraw_insertion_cursor
deprecated: 3.4 since: 3.0
Declaration [src]
void
gtk_draw_insertion_cursor(
GtkWidget*widget,
cairo_t*cr,
constGdkRectangle*location,
gbooleanis_primary,
GtkTextDirectiondirection,
gbooleandraw_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 context to draw to.
The data is owned by the caller of the function. location-
Type:
Location 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.