Class CustomLayout

All Implemented Interfaces:
PointerInterface

public class CustomLayout extends LayoutManager
`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 `GtkLayoutManager
virtual functions.

https://docs.gtk.org/gtk4/class.CustomLayout.html

  • Constructor Details

    • CustomLayout

      public CustomLayout(PointerContainer pointer)
    • CustomLayout

      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 - a function to retrieve the `GtkSizeRequestMode` of the widget using the layout; the default request mode is %GTK_SIZE_REQUEST_CONSTANT_SIZE
      measure - a function to measure the widget using the layout manager
      allocate - a function to allocate the children of the widget using the layout manager
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()