1.43 <GtkCustomLayout>

Class: <GtkCustomLayout>

It derives from <GtkLayoutManager>.

Uses closures for size negotiation.

A <GtkCustomLayout> uses closures matching to the old <GtkWidget> virtual functions for size negotiation, as a convenience API to ease the porting towards the corresponding <GtkLayoutManager> virtual functions.

Procedures

Procedure: custom-layout:new request-mode measure allocate ⇒ %return

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.

request-mode

Passed: a procedure, or #f.

a function to retrieve the <GtkSizeRequestMode> of the widget using the layout; the default request mode is constant-size

See GtkCustomRequestModeFunc for how it is called.

measure

Passed: a procedure.

a function to measure the widget using the layout manager

See GtkCustomMeasureFunc for how it is called.

allocate

Passed: a procedure.

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

See GtkCustomAllocateFunc for how it is called.

%return

Returned: a <GtkLayoutManager>.

the newly created <GtkCustomLayout>