Basics
Guides
API Reference
Basics
Guides
API Reference
[15:7] extends: object
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.
GtkCustomLayout (request_mode = null, measure = null, allocate = null)
Creates a new legacy layout manager. Legacy layout managers map to the old
GtkWidgetsize negotiation virtual functions, and are meant to be used during the transition from layout containers to layout manager delegates.
request_mode is a function to retrieve the GtkSizeRequestMode of the widget using the layout; the default request mode is %GTK_SIZE_REQUEST_CONSTANT_SIZE.measure is a function to measure the widget using the layout manager.allocate is a function to allocate the children of the widget using the layout manager.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asLayoutManager ()
Wraps this handle as
GtkLayoutManager.
A GtkLayoutManager object.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.