CellArea.getPreferredWidth

Retrieves a cell area’s initial minimum and natural width.

area will store some geometrical information in context along the way; when requesting sizes over an arbitrary number of rows, it’s not important to check the minimum_width and natural_width of this call but rather to consult CellArea.contextGetPreferredWidth after a series of requests.

class CellArea
void
getPreferredWidth

Parameters

context CellAreaContext

the gtk.CellAreaContext to perform this request with

widget Widget

the gtk.Widget where area will be rendering

minimumWidth int

location to store the minimum width, or NULL

naturalWidth int

location to store the natural width, or NULL

Meta