Virtual Method

GtkCellRendererget_size

deprecated: 3.0 

Declaration [src]

void
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

Type: GtkWidget

The widget the renderer is rendering to.

The data is owned by the caller of the method.
cell_area

Type: GdkRectangle

The area a cell will be allocated, or NULL.

The argument can be NULL.
The data is owned by the caller of the method.
x_offset

Type: 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.
y_offset

Type: 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.
width

Type: 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.
height

Type: 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.