Method

Gtk.CellArea.request_renderer

Declaration [src]

void
gtk_cell_area_request_renderer (
  GtkCellArea* area,
  GtkCellRenderer* renderer,
  GtkOrientation orientation,
  GtkWidget* widget,
  int for_size,
  int* minimum_size,
  int* natural_size
)

Description [src]

This is a convenience function for GtkCellArea implementations to request size for cell renderers. It’s important to use this function to request size and then use gtk_cell_area_inner_cell_area() at render and event time since this function will add padding around the cell for focus painting.

Parameters

renderer GtkCellRenderer
 

the GtkCellRenderer to request size for

 Ownership is not transferred to the callee
orientation GtkOrientation
 

the GtkOrientation in which to request size

widget GtkWidget
 

the GtkWidget that area is rendering onto

 Ownership is not transferred to the callee
for_size int
 

the allocation contextual size to request for, or -1 if the base request for the orientation is to be returned.

minimum_size int*
 

location to store the minimum size, or NULL

 Direction: out
 Ownership of the data is transferred to the callee
natural_size int*
 

location to store the natural size, or NULL

 Direction: out
 Ownership of the data is transferred to the callee