Class LayoutSlot

All Implemented Interfaces:
Accessible, Buildable, ConstraintTarget, Proxy

@Generated("org.javagi.JavaGI") public final class LayoutSlot extends Widget implements Accessible, Buildable, ConstraintTarget

A child slot within Layout.

While it contains a layout child, the Gtk.Widget:visible property of the slot is updated to match that of the layout child.

See MultiLayoutView.

Since:
1.6
  • Constructor Details

    • LayoutSlot

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

      public LayoutSlot(String id)
      Creates a new AdwLayoutSlot with its ID set to id.
      Parameters:
      id - the slot ID
      Since:
      1.6
    • LayoutSlot

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

    • getType

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

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

      protected LayoutSlot 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 Widget
      Returns:
      the instance as if it were its parent type
    • getSlotId

      public String getSlotId()
      Gets the slot id of self.
      Returns:
      the slot ID
      Since:
      1.6
    • builder

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