CellRenderer.getSize

Warning gtk_cell_renderer_get_size has been deprecated since version 3.0 and should not be used in newly-written code. Use gtk_cell_renderer_get_preferred_size() instead. 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.

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 Rectangle*

The area a cell will be allocated, or NULL. [allow-none]

xOffset int

location to return x offset of cell relative to cell_area, or NULL. out[allow-none]

yOffset int

location to return y offset of cell relative to cell_area, or NULL. out[allow-none]

width int

location to return width needed to render a cell, or NULL. out[allow-none]

height int

location to return height needed to render a cell, or NULL. out[allow-none]

Meta