diff options
author | Benjamin Otte <otte@redhat.com> | 2016-12-23 09:09:42 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-12-23 09:23:04 +0100 |
commit | 677c5bdedf7870e08b246439ba4dddbad5c87028 (patch) | |
tree | 273ae961f1036e046589df29ec856cfbc876830e /gtk/gtkcellrenderer.h | |
parent | af6e7cc169254bdaf81fb480aa19484cbf702126 (diff) | |
download | gtk+-677c5bdedf7870e08b246439ba4dddbad5c87028.tar.gz |
cellrenderer: Move snapshotting down into cell renderers
Now that every call to GtkCellArea is a snapshot call and no more cairo
calls are left, move the actual differentiation between Cairo and
Snapshot down to the cell renderer.
Diffstat (limited to 'gtk/gtkcellrenderer.h')
-rw-r--r-- | gtk/gtkcellrenderer.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gtk/gtkcellrenderer.h b/gtk/gtkcellrenderer.h index 71b54652c0..6ac40b30cb 100644 --- a/gtk/gtkcellrenderer.h +++ b/gtk/gtkcellrenderer.h @@ -151,6 +151,12 @@ struct _GtkCellRendererClass const GdkRectangle *background_area, const GdkRectangle *cell_area, GtkCellRendererState flags); + void (* snapshot) (GtkCellRenderer *cell, + GtkSnapshot *snapshot, + GtkWidget *widget, + const GdkRectangle *background_area, + const GdkRectangle *cell_area, + GtkCellRendererState flags); gboolean (* activate) (GtkCellRenderer *cell, GdkEvent *event, GtkWidget *widget, @@ -229,9 +235,9 @@ void gtk_cell_renderer_get_size (GtkCellRenderer *cell, gint *y_offset, gint *width, gint *height); -GDK_AVAILABLE_IN_ALL -void gtk_cell_renderer_render (GtkCellRenderer *cell, - cairo_t *cr, +GDK_AVAILABLE_IN_3_90 +void gtk_cell_renderer_snapshot (GtkCellRenderer *cell, + GtkSnapshot *snapshot, GtkWidget *widget, const GdkRectangle *background_area, const GdkRectangle *cell_area, |