Class Layout

All Implemented Interfaces:
Buildable, Proxy

@Generated("org.javagi.JavaGI") public final class Layout extends GObject implements Buildable
An individual layout in MultiLayoutView.
Since:
1.6
  • Constructor Details

    • Layout

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

      public Layout(Widget content)
      Creates a new AdwLayout that contains content.
      Parameters:
      content - the content widget to use
      Since:
      1.6
    • Layout

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

    • getType

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

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

      protected Layout 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 GObject
      Returns:
      the instance as if it were its parent type
    • getContent

      public Widget getContent()
      Gets the content widget.
      Returns:
      The content
      Since:
      1.6
    • getName

      public @Nullable String getName()
      Gets the name of the layout.
      Returns:
      the name of the layout
      Since:
      1.6
    • setName

      public void setName(@Nullable String name)
      Sets the name of the layout.
      Parameters:
      name - the layout name
      Since:
      1.6
    • builder

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