Class Bin

All Implemented Interfaces:
Accessible, Buildable, ConstraintTarget, Proxy

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

A widget with one child.

bin

The AdwBin widget has only one child, set with the Bin:child property.

It is useful for deriving subclasses, since it provides common code needed for handling a single child widget.

  • Constructor Details

    • Bin

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

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

    • getType

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

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

      protected Bin 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
    • getChild

      public @Nullable Widget getChild()
      Gets the child widget of self.
      Returns:
      the child widget of this Bin
    • setChild

      public void setChild(@Nullable Widget child)
      Sets the child widget of self.
      Parameters:
      child - the child widget
    • builder

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