summaryrefslogtreecommitdiff
path: root/gtk/gtkstylecontext.h
diff options
context:
space:
mode:
authorPaolo Borelli <pborelli@gnome.org>2011-11-27 16:38:04 +0100
committerPaolo Borelli <pborelli@gnome.org>2011-12-01 01:22:39 +0100
commit2ef5844bac935e13c3c9cbb27037c6a0aa43c284 (patch)
tree7d467f38b44f0ab35b11e929815637f437f10065 /gtk/gtkstylecontext.h
parent3c6842222abb1284e0f13760bc0f0c48d41b0c8f (diff)
downloadgtk+-2ef5844bac935e13c3c9cbb27037c6a0aa43c284.tar.gz
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
Diffstat (limited to 'gtk/gtkstylecontext.h')
-rw-r--r--gtk/gtkstylecontext.h8
1 files changed, 8 insertions, 0 deletions
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,