summaryrefslogtreecommitdiff
path: root/gtk/gtkcellarea.h
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-12-13 00:18:00 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2010-12-13 00:29:21 +0900
commit0431dd67f82def7af57119b27bcc4dea0b7a2167 (patch)
tree94dceaea7c9f8b34b5674aacc98dd0e663ba838c /gtk/gtkcellarea.h
parentff39c76bfd9ea882c80c60313b594cf73035fa6e (diff)
downloadgtk+-0431dd67f82def7af57119b27bcc4dea0b7a2167.tar.gz
Added apis to GtkCellArea for GtkIconView purposes.
Added a few apis, - GtkCellAreaContext get_preferred_height_for_width & width for height apis and vfuncs, this lets the icon view request the collective (and aligned) height for width for a said row. - gtk_cell_area_copy_context() this creates a duplicate of an already created and requested context, this way the icon view uses a global context to request the widths of all rows and then makes a copy with all the stored alignments and uses a separate copy to calculate the height and alignments of each row separately.
Diffstat (limited to 'gtk/gtkcellarea.h')
-rw-r--r--gtk/gtkcellarea.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkcellarea.h b/gtk/gtkcellarea.h
index 8c54b053d2..61579221fb 100644
--- a/gtk/gtkcellarea.h
+++ b/gtk/gtkcellarea.h
@@ -202,6 +202,8 @@ struct _GtkCellAreaClass
/* Geometry */
GtkCellAreaContext *(* create_context) (GtkCellArea *area);
+ GtkCellAreaContext *(* copy_context) (GtkCellArea *area,
+ GtkCellAreaContext *context);
GtkSizeRequestMode (* get_request_mode) (GtkCellArea *area);
void (* get_preferred_width) (GtkCellArea *area,
GtkCellAreaContext *context,
@@ -316,6 +318,8 @@ GtkCellRenderer *gtk_cell_area_get_cell_at_position (GtkCellArea
/* Geometry */
GtkCellAreaContext *gtk_cell_area_create_context (GtkCellArea *area);
+GtkCellAreaContext *gtk_cell_area_copy_context (GtkCellArea *area,
+ GtkCellAreaContext *context);
GtkSizeRequestMode gtk_cell_area_get_request_mode (GtkCellArea *area);
void gtk_cell_area_get_preferred_width (GtkCellArea *area,
GtkCellAreaContext *context,