Function

Gtk-3.0Gtkdraw_insertion_cursorDeprecated 3.4Since 3.0

  • 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.

    Parameters

    • Deprecatedwidget: Gtk.Widget
    • Deprecatedcr: default.Context

      cairo context to draw to

    • Deprecatedlocation: Gdk.Rectangle

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

    • Deprecatedis_primary: boolean

      if the cursor should be the primary cursor color.

    • Deprecateddirection: Gtk.TextDirection

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

    • Deprecateddraw_arrow: boolean

      true to draw a directional arrow on the cursor. Should be false unless the cursor is split.

    Returns void

    3.0

    since 3.4: Use gtk_render_insertion_cursor() instead.