Method

GtkCellRendererget_size

Declaration [src]

void
gtk_cell_renderer_get_size (
  GtkCellRenderer* cell,
  GtkWidget* widget,
  const GdkRectangle* cell_area,
  gint* x_offset,
  gint* y_offset,
  gint* width,
  gint* height
)

Description [src]

Obtains the width and height needed to render the cell. Used by view widgets to determine the appropriate size for the cell_area passed to gtk_cell_renderer_render(). If cell_area is not NULL, fills in the x and y offsets (if set) of the cell relative to this location.

Please note that the values set in width and height, as well as those in x_offset and y_offset are inclusive of the xpad and ypad properties.

Deprecated since:3.0

Use gtk_cell_renderer_get_preferred_size() instead.

Parameters

widget GtkWidget
 

The widget the renderer is rendering to.

 The data is owned by the caller of the function.
cell_area GdkRectangle
 

The area a cell will be allocated, or NULL.

 The argument can be NULL.
 The data is owned by the caller of the function.
x_offset gint*
 

Location to return x offset of cell relative to cell_area, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
y_offset gint*
 

Location to return y offset of cell relative to cell_area, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
width gint*
 

Location to return width needed to render a cell, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
height gint*
 

Location to return height needed to render a cell, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.