Class OverlayLayout

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class OverlayLayout extends LayoutManager

The layout manager used by Overlay.

It places widgets as overlays on top of the main child.

This is not a reusable layout manager, since it expects its widget to be a GtkOverlay. It is only listed here so that its layout properties get documented.

  • Constructor Details

    • OverlayLayout

      public OverlayLayout(MemorySegment address)
      Create a OverlayLayout instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • OverlayLayout

      public OverlayLayout()
      Create a new OverlayLayout.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the OverlayLayout class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected OverlayLayout asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class LayoutManager
      Returns:
      the instance as if it were its parent type
    • builder

      public static OverlayLayout.Builder<? extends OverlayLayout.Builder> builder()
      A OverlayLayout.Builder object constructs a OverlayLayout with the specified properties. Use the various set...() methods to set properties, and finish construction with OverlayLayout.Builder.build().
      Returns:
      the builder object