CellRenderer.getSize

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

More...
class CellRenderer
void
getSize
(,,
out int xOffset
,
out int yOffset
,
out int width
,
out int height
)

Parameters

widget Widget

the widget the renderer is rendering to

cellArea GdkRectangle*

The area a cell will be allocated, or NULL

xOffset int

location to return x offset of cell relative to cell_area, or NULL

yOffset int

location to return y offset of cell relative to cell_area, or NULL

width int

location to return width needed to render a cell, or NULL

height int

location to return height needed to render a cell, or NULL

Detailed Description

Deprecated: Use CellRenderer.getPreferredSize instead.