Class JAWTRectangle

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer


    public class JAWTRectangle
    extends Struct
    Structure for a native rectangle.

    Member documentation

    • x – the rectangle X axis coordinate
    • y – the rectangle Y axis coordinate
    • width – the rectangle width
    • height – the rectangle height

    Layout

    struct JAWT_Rectangle {
        jint x;
        jint y;
        jint width;
        jint height;
    }
    • Field Detail

      • SIZEOF

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

      • JAWTRectangle

        public JAWTRectangle(java.nio.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.