CustomLayout


Description:

[ CCode ( has_construct_function = false , type = "GtkLayoutManager*" ) ]
public CustomLayout (CustomRequestModeFunc? request_mode, CustomMeasureFunc measure, CustomAllocateFunc allocate)

Creates a new legacy layout manager.

Legacy layout managers map to the old `GtkWidget` size negotiation virtual functions, and are meant to be used during the transition from layout containers to layout manager delegates.

Parameters:

request_mode

a function to retrieve the `GtkSizeRequestMode` of the widget using the layout; the default request mode is gtk_size_request_constant_size

measure

a function to measure the widget using the layout manager

allocate

a function to allocate the children of the widget using the layout manager

Returns:

the newly created `GtkCustomLayout`