Gtk.CustomLayout¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gtk.CustomLayout(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Uses closures for size negotiation.
A
GtkCustomLayoutuses closures matching to the oldGtkWidgetvirtual functions for size negotiation, as a convenience API to ease the porting towards the correspondingGtkLayoutManagervirtual functions.- classmethod new(request_mode, measure, allocate)[source]¶
- Parameters:
request_mode (
Gtk.CustomRequestModeFuncorNone) – a function to retrieve theGtkSizeRequestModeof the widget using the layout; the default request mode isGtk.SizeRequestMode.CONSTANT_SIZEmeasure (
Gtk.CustomMeasureFunc) – a function to measure the widget using the layout managerallocate (
Gtk.CustomAllocateFunc) – a function to allocate the children of the widget using the layout manager
- Returns:
the newly created
GtkCustomLayout- Return type:
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.