get_size


Description:

[ Version ( deprecated = true , deprecated_since = "3.0" , replacement = "get_preferred_size" ) ]
public virtual void get_size (Widget widget, Rectangle? cell_area, out int x_offset, out int y_offset, out int width, out int height)

Warning: get_size is deprecated since 3.0. Use get_preferred_size.

Obtains the width and height needed to render the cell.

Note:

Use get_preferred_size instead.

Used by view widgets to determine the appropriate size for the cell_area passed to 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:

this

a CellRenderer

widget

the widget the renderer is rendering to

cell_area

The area a cell will be allocated, or null

x_offset

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

y_offset

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

width

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

height

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