Class EXRBox2i

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<EXRBox2i>
org.lwjgl.util.tinyexr.EXRBox2i
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class EXRBox2i extends org.lwjgl.system.Struct<EXRBox2i> 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 
    An array of EXRBox2i structs.

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

    org.lwjgl.system.Struct.StructValidation

    Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

    org.lwjgl.system.Pointer.Default
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The struct alignment in bytes.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    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(ByteBuffer container)
    Creates a EXRBox2i instance at the current position of the specified ByteBuffer container.
  • Method Summary

    Modifier and Type
    Method
    Description
    static EXRBox2i
    Returns a new EXRBox2i instance allocated with memCalloc.
    calloc(int capacity)
    Returns a new EXRBox2i.Buffer instance allocated with memCalloc.
    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
    Returns a new EXRBox2i instance allocated with BufferUtils.
    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.
    create(long address, int capacity)
    Create a EXRBox2i.Buffer instance at the specified memory.
    static @Nullable EXRBox2i
    createSafe(long address)
    Like create, but returns null if address is NULL.
    static @Nullable EXRBox2i.Buffer
    createSafe(long address, int capacity)
    Like create, but returns null if address is NULL.
    static EXRBox2i
    Returns a new EXRBox2i instance allocated with memAlloc.
    malloc(int capacity)
    Returns a new EXRBox2i.Buffer instance allocated with memAlloc.
    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(int value)
    Sets the specified value to the max_x field.
    int
     
    max_y(int value)
    Sets the specified value to the max_y field.
    int
     
    min_x(int value)
    Sets the specified value to the min_x field.
    int
     
    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.
    set(int min_x, int min_y, int max_x, int max_y)
    Initializes this struct with the specified values.
    Copies the specified struct data to this struct.
    int
     

    Methods inherited from class org.lwjgl.system.Struct

    clear, free, isNull, validate, validate

    Methods inherited from class org.lwjgl.system.Pointer.Default

    address, equals, hashCode, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.lwjgl.system.NativeResource

    close, free
  • Field Details

    • SIZEOF

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

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

      public static final int MIN_X
      The struct member offsets.
    • MIN_Y

      public static final int MIN_Y
      The struct member offsets.
    • MAX_X

      public static final int MAX_X
      The struct member offsets.
    • MAX_Y

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

    • EXRBox2i

      public EXRBox2i(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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<EXRBox2i>
    • 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

      public static @Nullable 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

      public static @Nullable 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:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • 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:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • 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.