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:
GtkCustomLayout
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 `:obj:Gtk.LayoutManager virtual functions.- classmethod new(request_mode, measure, allocate)[source]¶
- Parameters:
request_mode (
Gtk.CustomRequestModeFunc
orNone
) – a function to retrieve theGtkSizeRequestMode
of the widget using the layout; the default request mode isGtk.SizeRequestMode.CONSTANT_SIZE
measure (
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
GtkWidget
size negotiation virtual functions, and are meant to be used during the transition from layout containers to layout manager delegates.