Class JAWTRectangle

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class JAWTRectangle extends Struct<JAWTRectangle> implements NativeResource
Structure for a native rectangle.

Layout


 struct JAWT_Rectangle {
     jint x();
     jint y();
     jint width();
     jint height();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • X

      public static final int X
      The struct member offsets.
    • Y

      public static final int Y
      The struct member offsets.
    • WIDTH

      public static final int WIDTH
      The struct member offsets.
    • HEIGHT

      public static final int HEIGHT
      The struct member offsets.
  • Constructor Details

    • JAWTRectangle

      public JAWTRectangle(ByteBuffer container)
      Creates a JAWTRectangle instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details