summaryrefslogtreecommitdiff
path: root/gtk/gtktextdisplay.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-08-15 19:41:51 +0200
committerBenjamin Otte <otte@redhat.com>2010-09-26 15:03:01 +0200
commit331999d84db1dfaa14a00a1dc423be12dc33e9a9 (patch)
tree987fe4783403bb839b0a2cd2750b829d436ba4eb /gtk/gtktextdisplay.h
parentac48f2330df7b367e5afc12947bf9de8d10b3a89 (diff)
downloadgtk+-331999d84db1dfaa14a00a1dc423be12dc33e9a9.tar.gz
textview: API: change gtk_text_layout_draw() to take a cairo_t
This simplifies the API a lot and allows more magic to happen later.
Diffstat (limited to 'gtk/gtktextdisplay.h')
-rw-r--r--gtk/gtktextdisplay.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/gtk/gtktextdisplay.h b/gtk/gtktextdisplay.h
index 3b6e96c042..d7127e320c 100644
--- a/gtk/gtktextdisplay.h
+++ b/gtk/gtktextdisplay.h
@@ -87,23 +87,13 @@ G_BEGIN_DECLS
/* The drawable should be pre-initialized to your preferred background.
* widget - Widget to grab some style info from
- * drawable - Drawable to render to
- * cursor_gc - Graphics context to use for cursor
- * x_offset/y_offset - Position of the drawable in layout coordinates
- * x/y/width/height - Region of the layout to render. x,y must be inside
- * the drawable.
+ * cr - Context to render to, matrix set so that (0, 0)
+ * is the top left of the layout
* widgets - list of widgets that need exposing
*/
void gtk_text_layout_draw (GtkTextLayout *layout,
GtkWidget *widget,
- GdkDrawable *drawable,
- gpointer cursor_gc,
- gint x_offset,
- gint y_offset,
- gint x,
- gint y,
- gint width,
- gint height,
+ cairo_t *cr,
GList **widgets);