Class Requisition

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class Requisition extends ProxyInstance

Represents the desired size of a widget.

See GtkWidget’s geometry management section for more information.

  • Constructor Details

    • Requisition

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

      public Requisition()

      Allocates a new GtkRequisition.

      The struct is initialized to zero.

  • Method Details

    • getType

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

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

      public int readWidth()
      Read the value of the field width.
      Returns:
      The value of the field width
    • writeWidth

      public void writeWidth(int width)
      Write a value in the field width.
      Parameters:
      width - The new value for the field width
    • readHeight

      public int readHeight()
      Read the value of the field height.
      Returns:
      The value of the field height
    • writeHeight

      public void writeHeight(int height)
      Write a value in the field height.
      Parameters:
      height - The new value for the field height
    • copy

      public Requisition copy()
      Copies a GtkRequisition.
      Returns:
      a copy of this Requisition
    • free

      public void free()
      Frees a GtkRequisition.