From 2ef5844bac935e13c3c9cbb27037c6a0aa43c284 Mon Sep 17 00:00:00 2001 From: Paolo Borelli Date: Sun, 27 Nov 2011 16:38:04 +0100 Subject: Introduce gtk_render_insertion_cursor The new function provides an API that takes the PangoLayout and index as input params, this way it handles strong and weak cursors internally factoring out all code duplicated in the widgets that need to render cursors. https://bugzilla.gnome.org/show_bug.cgi?id=640317 --- gtk/gtkstylecontext.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gtk/gtkstylecontext.h') diff --git a/gtk/gtkstylecontext.h b/gtk/gtkstylecontext.h index 30994fac97..547d45edd6 100644 --- a/gtk/gtkstylecontext.h +++ b/gtk/gtkstylecontext.h @@ -922,6 +922,14 @@ void gtk_render_icon (GtkStyleContext *context, GdkPixbuf *pixbuf, gdouble x, gdouble y); +void gtk_render_insertion_cursor + (GtkStyleContext *context, + cairo_t *cr, + gdouble x, + gdouble y, + PangoLayout *layout, + int index, + PangoDirection direction); void gtk_draw_insertion_cursor (GtkWidget *widget, cairo_t *cr, -- cgit v1.2.1