Virtual Method
GtkCellAreaget_preferred_width_for_height
Declaration [src]
void
get_preferred_width_for_height (
  GtkCellArea* area,
  GtkCellAreaContext* context,
  GtkWidget* widget,
  int height,
  int* minimum_width,
  int* natural_width
)
Description [src]
Retrieves a cell area’s minimum and natural width if it would be given
the specified height.
area stores some geometrical information in context along the way
while calling gtk_cell_area_get_preferred_height(). It’s important to
perform a series of gtk_cell_area_get_preferred_height() requests with
context first and then call gtk_cell_area_get_preferred_width_for_height()
on each cell area individually to get the height for width of each
fully requested row.
If at some point, the height of a single row changes, it should be requested with gtk_cell_area_get_preferred_height() again and then the full height of the requested rows checked again with gtk_cell_area_context_get_preferred_height().
Parameters
| context | GtkCellAreaContext | 
| The  | |
| The data is owned by the caller of the function. | |
| widget | GtkWidget | 
| The  | |
| The data is owned by the caller of the function. | |
| height | int | 
| The height for which to check the width of this area. | |
| minimum_width | int* | 
| Location to store the minimum width. | |
| The argument will be set by the function. | |
| The argument can be NULL. | |
| The called function takes ownership of the data, and is responsible for freeing it. | |
| natural_width | int* | 
| Location to store the natural width. | |
| The argument will be set by the function. | |
| The argument can be NULL. | |
| The called function takes ownership of the data, and is responsible for freeing it. |