summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrenderer.h
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-08-18 19:36:51 -0400
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2010-08-18 20:01:28 -0400
commite2a82c70b4cb8f59451f8b00dfce33a4f23ff998 (patch)
treec9a2579f4a86d67293498b9c0aa1f4c75fb5dd39 /gtk/gtkcellrenderer.h
parentfa565f3a3e1d459591dd9068e80767420c58fd8b (diff)
downloadgtk+-e2a82c70b4cb8f59451f8b00dfce33a4f23ff998.tar.gz
Added/Implemented GtkCellSizeRequestIface
This patch adds height-for-width geometry management for cell renderers while still responding to the old gtk_cell_renderer_get_size() apis with virtual return values (obtained by soliciting the new height-for-width cell renderer apis).
Diffstat (limited to 'gtk/gtkcellrenderer.h')
-rw-r--r--gtk/gtkcellrenderer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtkcellrenderer.h b/gtk/gtkcellrenderer.h
index 9e3dff8ff8..fac5b8daf9 100644
--- a/gtk/gtkcellrenderer.h
+++ b/gtk/gtkcellrenderer.h
@@ -174,6 +174,14 @@ void gtk_cell_renderer_stop_editing (GtkCellRenderer *cell,
gboolean canceled);
+void _gtk_cell_renderer_calc_offset (GtkCellRenderer *cell,
+ const GdkRectangle *cell_area,
+ GtkTextDirection direction,
+ gint width,
+ gint height,
+ gint *x_offset,
+ gint *y_offset);
+
G_END_DECLS
#endif /* __GTK_CELL_RENDERER_H__ */