CustomLayout.this

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.

  1. this(GtkCustomLayout* gtkCustomLayout, bool ownedRef)
  2. this(GtkCustomRequestModeFunc requestMode, GtkCustomMeasureFunc measure, GtkCustomAllocateFunc allocate)

Parameters

requestMode GtkCustomRequestModeFunc

a function to retrieve the GtkSizeRequestMode of the widget using the layout; the default request mode is %GTK_SIZE_REQUEST_CONSTANT_SIZE

measure GtkCustomMeasureFunc

a function to measure the widget using the layout manager

allocate GtkCustomAllocateFunc

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

Return Value

the newly created GtkCustomLayout

Throws

ConstructionException GTK+ fails to create the object.

Meta