get_preferred_width


Description:

[ Version ( since = "3.0" ) ]
public virtual void get_preferred_width (CellAreaContext context, Widget widget, out int minimum_width, out int natural_width)

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

this 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 get_preferred_width after a series of requests.

Parameters:

this

a CellArea

context

the CellAreaContext to perform this request with

widget

the Widget where this will be rendering

minimum_width

location to store the minimum width, or null

natural_width

location to store the natural width, or null