Package: gtk

Function gtk-cell-renderer-size

Lambda List

gtk-cell-renderer-size (cell widget area)

Arguments

cell -- a gtk-cell-renderer object
widget -- the gtk-widget object the renderer is rendering to
area -- a gdk-rectangle with the area a cell will be allocated, or nil

Return Value

x-offset -- an integer with the x offset of cell relative to area, or nil
y-offset -- an integer with the y offset of cell relative to area, or nil
width -- an integer with the width needed to render a cell, or nil
height -- an integer with the height needed to render a cell, or nil

Details

Obtains the width and height needed to render the cell. Used by tree view widgets to determine the appropriate size for the cell area passed to the function gtk-cell-renderer-render. If area is not nil, 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.

Warning

The gtk-cell-renderer-size function has been deprecated since version 3.0 and should not be used in newly written code. Use the gtk-cell-renderer-preferred-size function instead.
 

See also

2021-3-7