Class GridLayoutChild

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class GridLayoutChild extends LayoutChild
GtkLayoutChild subclass for children in a GtkGridLayout.
  • Constructor Details

    • GridLayoutChild

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

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

    • getType

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

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

      protected GridLayoutChild 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 LayoutChild
      Returns:
      the instance as if it were its parent type
    • getColumn

      public int getColumn()
      Retrieves the column number to which this GridLayoutChild attaches its left side.
      Returns:
      the column number
    • getColumnSpan

      public int getColumnSpan()
      Retrieves the number of columns that this GridLayoutChild spans to.
      Returns:
      the number of columns
    • getRow

      public int getRow()
      Retrieves the row number to which this GridLayoutChild attaches its top side.
      Returns:
      the row number
    • getRowSpan

      public int getRowSpan()
      Retrieves the number of rows that this GridLayoutChild spans to.
      Returns:
      the number of row
    • setColumn

      public void setColumn(int column)
      Sets the column number to attach the left side of child.
      Parameters:
      column - the attach point for this GridLayoutChild
    • setColumnSpan

      public void setColumnSpan(int span)
      Sets the number of columns this GridLayoutChild spans to.
      Parameters:
      span - the span of this GridLayoutChild
    • setRow

      public void setRow(int row)
      Sets the row to place this GridLayoutChild in.
      Parameters:
      row - the row for this GridLayoutChild
    • setRowSpan

      public void setRowSpan(int span)
      Sets the number of rows this GridLayoutChild spans to.
      Parameters:
      span - the span of this GridLayoutChild
    • builder

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