Style.drawInsertionCursor

Warning gtk_draw_insertion_cursor has been deprecated since version 3.4 and should not be used in newly-written code. Use gtk_render_insertion_cursor() instead. 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.

class Style
deprecated static
void
drawInsertionCursor

Parameters

widget Widget

a GtkWidget

cr Context

cairo context to draw to

location Rectangle

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

isPrimary int

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

drawArrow int

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

Meta