Constructor
Gtk.CustomLayout.new
Declaration [src]
GtkLayoutManager*
gtk_custom_layout_new (
GtkCustomRequestModeFunc request_mode,
GtkCustomMeasureFunc measure,
GtkCustomAllocateFunc allocate
)
Description [src]
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 |
GtkCustomRequestModeFunc |
a function to retrieve
the |
|
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
Returns: GtkLayoutManager |
|
the newly created |
|
Ownership of the data is transferred to the caller |