CellRenderer.getSize

void getSize(gtk.widget.Widget widget, gdk.rectangle.Rectangle cellArea, out int xOffset, out int yOffset, out int width, out int height)

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.CellRenderer.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.

Parameters

widgetthe widget the renderer is rendering to
cellAreaThe area a cell will be allocated, or null
xOffsetlocation to return x offset of cell relative to cell_area, or null
yOffsetlocation to return y offset of cell relative to cell_area, or null
widthlocation to return width needed to render a cell, or null
heightlocation to return height needed to render a cell, or null

Deprecated

Use [gtk.cell_renderer.CellRenderer.getPreferredSize] instead.