Class EXRBox2i

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

    public class EXRBox2i
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource

    Layout

    
     struct EXRBox2i {
         int min_x;
         int min_y;
         int max_x;
         int max_y;
     }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  EXRBox2i.Buffer
      An array of EXRBox2i structs.
      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

        org.lwjgl.system.Pointer.Default
      • Nested classes/interfaces inherited from class org.lwjgl.system.Struct

        org.lwjgl.system.Struct.StructValidation
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALIGNOF
      The struct alignment in bytes.
      static int MAX_X
      MAX_Y
      MIN_X
      MIN_Y
      The struct member offsets.
      static int SIZEOF
      The struct size in bytes.
      • Fields inherited from interface org.lwjgl.system.Pointer

        BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
    • Constructor Summary

      Constructors 
      Constructor Description
      EXRBox2i​(java.nio.ByteBuffer container)
      Creates a EXRBox2i instance at the current position of the specified ByteBuffer container.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static EXRBox2i calloc()
      Returns a new EXRBox2i instance allocated with memCalloc.
      static EXRBox2i.Buffer calloc​(int capacity)
      Returns a new EXRBox2i.Buffer instance allocated with memCalloc.
      static EXRBox2i.Buffer calloc​(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new EXRBox2i.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      static EXRBox2i calloc​(org.lwjgl.system.MemoryStack stack)
      Returns a new EXRBox2i instance allocated on the specified MemoryStack and initializes all its bits to zero.
      static EXRBox2i create()
      Returns a new EXRBox2i instance allocated with BufferUtils.
      static EXRBox2i.Buffer create​(int capacity)
      Returns a new EXRBox2i.Buffer instance allocated with BufferUtils.
      static EXRBox2i create​(long address)
      Returns a new EXRBox2i instance for the specified memory address.
      static EXRBox2i.Buffer create​(long address, int capacity)
      Create a EXRBox2i.Buffer instance at the specified memory.
      static EXRBox2i createSafe​(long address)
      Like create, but returns null if address is NULL.
      static EXRBox2i.Buffer createSafe​(long address, int capacity)
      Like create, but returns null if address is NULL.
      static EXRBox2i malloc()
      Returns a new EXRBox2i instance allocated with memAlloc.
      static EXRBox2i.Buffer malloc​(int capacity)
      Returns a new EXRBox2i.Buffer instance allocated with memAlloc.
      static EXRBox2i.Buffer malloc​(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new EXRBox2i.Buffer instance allocated on the specified MemoryStack.
      static EXRBox2i malloc​(org.lwjgl.system.MemoryStack stack)
      Returns a new EXRBox2i instance allocated on the specified MemoryStack.
      int max_x()  
      EXRBox2i max_x​(int value)
      Sets the specified value to the max_x field.
      int max_y()  
      EXRBox2i max_y​(int value)
      Sets the specified value to the max_y field.
      int min_x()  
      EXRBox2i min_x​(int value)
      Sets the specified value to the min_x field.
      int min_y()  
      EXRBox2i min_y​(int value)
      Sets the specified value to the min_y field.
      static int nmax_x​(long struct)
      Unsafe version of max_x().
      static void nmax_x​(long struct, int value)
      Unsafe version of max_x.
      static int nmax_y​(long struct)
      Unsafe version of max_y().
      static void nmax_y​(long struct, int value)
      Unsafe version of max_y.
      static int nmin_x​(long struct)
      Unsafe version of min_x().
      static void nmin_x​(long struct, int value)
      Unsafe version of min_x.
      static int nmin_y​(long struct)
      Unsafe version of min_y().
      static void nmin_y​(long struct, int value)
      Unsafe version of min_y.
      EXRBox2i set​(int min_x, int min_y, int max_x, int max_y)
      Initializes this struct with the specified values.
      EXRBox2i set​(EXRBox2i src)
      Copies the specified struct data to this struct.
      int sizeof()  
      • Methods inherited from interface org.lwjgl.system.NativeResource

        close, free
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from class org.lwjgl.system.Pointer.Default

        address, equals, hashCode, toString
      • Methods inherited from class org.lwjgl.system.Struct

        clear, free, isNull, validate
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • MIN_X, MIN_Y, MAX_X, MAX_Y

        The struct member offsets.
    • Constructor Detail

      • EXRBox2i

        public EXRBox2i​(java.nio.ByteBuffer container)
        Creates a EXRBox2i 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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • min_x

        public int min_x()
        Returns:
        the value of the min_x field.
      • min_y

        public int min_y()
        Returns:
        the value of the min_y field.
      • max_x

        public int max_x()
        Returns:
        the value of the max_x field.
      • max_y

        public int max_y()
        Returns:
        the value of the max_y field.
      • min_x

        public EXRBox2i min_x​(int value)
        Sets the specified value to the min_x field.
      • min_y

        public EXRBox2i min_y​(int value)
        Sets the specified value to the min_y field.
      • max_x

        public EXRBox2i max_x​(int value)
        Sets the specified value to the max_x field.
      • max_y

        public EXRBox2i max_y​(int value)
        Sets the specified value to the max_y field.
      • set

        public EXRBox2i set​(int min_x,
                            int min_y,
                            int max_x,
                            int max_y)
        Initializes this struct with the specified values.
      • set

        public EXRBox2i set​(EXRBox2i src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • malloc

        public static EXRBox2i malloc()
        Returns a new EXRBox2i instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static EXRBox2i calloc()
        Returns a new EXRBox2i instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static EXRBox2i create()
        Returns a new EXRBox2i instance allocated with BufferUtils.
      • create

        public static EXRBox2i create​(long address)
        Returns a new EXRBox2i instance for the specified memory address.
      • createSafe

        @Nullable
        public static EXRBox2i createSafe​(long address)
        Like create, but returns null if address is NULL.
      • malloc

        public static EXRBox2i.Buffer malloc​(int capacity)
        Returns a new EXRBox2i.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
        Parameters:
        capacity - the buffer capacity
      • calloc

        public static EXRBox2i.Buffer calloc​(int capacity)
        Returns a new EXRBox2i.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
        Parameters:
        capacity - the buffer capacity
      • create

        public static EXRBox2i.Buffer create​(int capacity)
        Returns a new EXRBox2i.Buffer instance allocated with BufferUtils.
        Parameters:
        capacity - the buffer capacity
      • create

        public static EXRBox2i.Buffer create​(long address,
                                             int capacity)
        Create a EXRBox2i.Buffer instance at the specified memory.
        Parameters:
        address - the memory address
        capacity - the buffer capacity
      • createSafe

        @Nullable
        public static EXRBox2i.Buffer createSafe​(long address,
                                                 int capacity)
        Like create, but returns null if address is NULL.
      • malloc

        public static EXRBox2i malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new EXRBox2i instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static EXRBox2i calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new EXRBox2i instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • malloc

        public static EXRBox2i.Buffer malloc​(int capacity,
                                             org.lwjgl.system.MemoryStack stack)
        Returns a new EXRBox2i.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • calloc

        public static EXRBox2i.Buffer calloc​(int capacity,
                                             org.lwjgl.system.MemoryStack stack)
        Returns a new EXRBox2i.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nmin_x

        public static int nmin_x​(long struct)
        Unsafe version of min_x().
      • nmin_y

        public static int nmin_y​(long struct)
        Unsafe version of min_y().
      • nmax_x

        public static int nmax_x​(long struct)
        Unsafe version of max_x().
      • nmax_y

        public static int nmax_y​(long struct)
        Unsafe version of max_y().
      • nmin_x

        public static void nmin_x​(long struct,
                                  int value)
        Unsafe version of min_x.
      • nmin_y

        public static void nmin_y​(long struct,
                                  int value)
        Unsafe version of min_y.
      • nmax_x

        public static void nmax_x​(long struct,
                                  int value)
        Unsafe version of max_x.
      • nmax_y

        public static void nmax_y​(long struct,
                                  int value)
        Unsafe version of max_y.