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
widget | the widget the renderer is rendering to |
cellArea | The area a cell will be allocated, or null |
xOffset | location to return x offset of cell relative to cell_area, or null |
yOffset | 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 |
Deprecated
Use [gtk.cell_renderer.CellRenderer.getPreferredSize] instead.