Class BinLayout

All Implemented Interfaces:
Proxy

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

A layout manager for widgets with a single child.

GtkBinLayout will stack each child of a widget on top of each other, using the Gtk.Widget:hexpand, Gtk.Widget:vexpand, Gtk.Widget:halign, and Gtk.Widget:valign properties of each child to determine where they should be positioned.

  • Constructor Details

    • BinLayout

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

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

    • getType

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

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

      protected BinLayout 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 BinLayout.Builder<? extends BinLayout.Builder> builder()
      A BinLayout.Builder object constructs a BinLayout with the specified properties. Use the various set...() methods to set properties, and finish construction with BinLayout.Builder.build().
      Returns:
      the builder object