Class Allocation

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class Allocation extends Rectangle
The rectangle representing the area allocated for a widget by its parent.
  • Constructor Details

    • Allocation

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

    • fromRectangle

      public static Allocation fromRectangle(Rectangle alias)
      Cast a Rectangle instance to a Allocation with the same memory address.
      Parameters:
      alias - the Rectangle to cast to a Allocation
      Returns:
      a Allocation with the memory address of the Rectangle