Top Description Inners Fields Constructors Methods
org.lwjgl.util.tinyexr

public Class EXRBox2i

extends Struct<EXRBox2i>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Layout


struct EXRBox2i {
    int min_x;
    int min_y;
    int max_x;
    int max_y;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
EXRBox2i.Buffer

An array of EXRBox2i structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
MAX_X

The struct member offsets.

public static final int
MAX_Y

The struct member offsets.

public static final int
MIN_X

The struct member offsets.

public static final int
MIN_Y

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
EXRBox2i(long address, ByteBuffer container)

public
EXRBox2i(ByteBuffer container)

Creates a EXRBox2i instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static EXRBox2i
calloc()

Returns a new EXRBox2i instance allocated with memCalloc.

public static EXRBox2i.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new EXRBox2i.Buffer instance allocated with memCalloc.

public static EXRBox2i
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new EXRBox2i instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static EXRBox2i.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new EXRBox2i.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected EXRBox2i
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static EXRBox2i
create()

Returns a new EXRBox2i instance allocated with BufferUtils.

public static EXRBox2i
create(long address)

Returns a new EXRBox2i instance for the specified memory address.

public static EXRBox2i.Buffer
create(int
the buffer capacity
capacity
)

Returns a new EXRBox2i.Buffer instance allocated with BufferUtils.

public static EXRBox2i.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a EXRBox2i.Buffer instance at the specified memory.

public static EXRBox2i
createSafe(long address)

Like create, but returns null if address is NULL.

public static EXRBox2i.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public static EXRBox2i
malloc()

Returns a new EXRBox2i instance allocated with memAlloc.

public static EXRBox2i.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new EXRBox2i.Buffer instance allocated with memAlloc.

public static EXRBox2i
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new EXRBox2i instance allocated on the specified MemoryStack.

public static EXRBox2i.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new EXRBox2i.Buffer instance allocated on the specified MemoryStack.

public int

Returns:

the value of the max_x field.
max_x
()

public EXRBox2i
max_x(int value)

Sets the specified value to the max_x field.

public int

Returns:

the value of the max_y field.
max_y
()

public EXRBox2i
max_y(int value)

Sets the specified value to the max_y field.

public int

Returns:

the value of the min_x field.
min_x
()

public EXRBox2i
min_x(int value)

Sets the specified value to the min_x field.

public int

Returns:

the value of the min_y field.
min_y
()

public EXRBox2i
min_y(int value)

Sets the specified value to the min_y field.

public static int
nmax_x(long struct)

Unsafe version of max_x.

public static void
nmax_x(long struct, int value)

Unsafe version of max_x.

public static int
nmax_y(long struct)

Unsafe version of max_y.

public static void
nmax_y(long struct, int value)

Unsafe version of max_y.

public static int
nmin_x(long struct)

Unsafe version of min_x.

public static void
nmin_x(long struct, int value)

Unsafe version of min_x.

public static int
nmin_y(long struct)

Unsafe version of min_y.

public static void
nmin_y(long struct, int value)

Unsafe version of min_y.

public EXRBox2i
set(int min_x, int min_y, int max_x, int max_y)

Initializes this struct with the specified values.

public EXRBox2i

Returns:

this struct
set
(EXRBox2i
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

MAX_Xback to summary
public static final int MAX_X

The struct member offsets.

MAX_Yback to summary
public static final int MAX_Y

The struct member offsets.

MIN_Xback to summary
public static final int MIN_X

The struct member offsets.

MIN_Yback to summary
public static final int MIN_Y

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

Constructor Detail

EXRBox2iback to summary
protected EXRBox2i(long address, ByteBuffer container)
EXRBox2iback to summary
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 Detail

callocback to summary
public static EXRBox2i calloc()

Returns a new EXRBox2i instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static EXRBox2i.Buffer calloc(int capacity)

Returns a new EXRBox2i.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static EXRBox2i calloc(MemoryStack stack)

Returns a new EXRBox2i instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static EXRBox2i.Buffer calloc(int capacity, MemoryStack stack)

Returns a new EXRBox2i.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

createback to summary
protected EXRBox2i create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static EXRBox2i create()

Returns a new EXRBox2i instance allocated with BufferUtils.

createback to summary
public static EXRBox2i create(long address)

Returns a new EXRBox2i instance for the specified memory address.

createback to summary
public static EXRBox2i.Buffer create(int capacity)

Returns a new EXRBox2i.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static EXRBox2i.Buffer create(long address, int capacity)

Create a EXRBox2i.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static EXRBox2i createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static EXRBox2i.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
mallocback to summary
public static EXRBox2i malloc()

Returns a new EXRBox2i instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static EXRBox2i.Buffer malloc(int capacity)

Returns a new EXRBox2i.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static EXRBox2i malloc(MemoryStack stack)

Returns a new EXRBox2i instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static EXRBox2i.Buffer malloc(int capacity, MemoryStack stack)

Returns a new EXRBox2i.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

max_xback to summary
public int max_x()
Returns:int

the value of the max_x field.

max_xback to summary
public EXRBox2i max_x(int value)

Sets the specified value to the max_x field.

max_yback to summary
public int max_y()
Returns:int

the value of the max_y field.

max_yback to summary
public EXRBox2i max_y(int value)

Sets the specified value to the max_y field.

min_xback to summary
public int min_x()
Returns:int

the value of the min_x field.

min_xback to summary
public EXRBox2i min_x(int value)

Sets the specified value to the min_x field.

min_yback to summary
public int min_y()
Returns:int

the value of the min_y field.

min_yback to summary
public EXRBox2i min_y(int value)

Sets the specified value to the min_y field.

nmax_xback to summary
public static int nmax_x(long struct)

Unsafe version of max_x.

nmax_xback to summary
public static void nmax_x(long struct, int value)

Unsafe version of max_x.

nmax_yback to summary
public static int nmax_y(long struct)

Unsafe version of max_y.

nmax_yback to summary
public static void nmax_y(long struct, int value)

Unsafe version of max_y.

nmin_xback to summary
public static int nmin_x(long struct)

Unsafe version of min_x.

nmin_xback to summary
public static void nmin_x(long struct, int value)

Unsafe version of min_x.

nmin_yback to summary
public static int nmin_y(long struct)

Unsafe version of min_y.

nmin_yback to summary
public static void nmin_y(long struct, int value)

Unsafe version of min_y.

setback to summary
public EXRBox2i set(int min_x, int min_y, int max_x, int max_y)

Initializes this struct with the specified values.

setback to summary
public EXRBox2i set(EXRBox2i src)

Copies the specified struct data to this struct.

Parameters
src:EXRBox2i

the source struct

Returns:EXRBox2i

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
org.lwjgl.util.tinyexr back to summary

public Class EXRBox2i.Buffer

extends StructBuffer<EXRBox2i, EXRBox2i.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of EXRBox2i structs.

Field Summary

Modifier and TypeField and Description
private static final EXRBox2i

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new EXRBox2i.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
protected EXRBox2i
public int

Returns:

the value of the max_x field.
max_x
()

public EXRBox2i.Buffer
max_x(int value)

Sets the specified value to the max_x field.

public int

Returns:

the value of the max_y field.
max_y
()

public EXRBox2i.Buffer
max_y(int value)

Sets the specified value to the max_y field.

public int

Returns:

the value of the min_x field.
min_x
()

public EXRBox2i.Buffer
min_x(int value)

Sets the specified value to the min_x field.

public int

Returns:

the value of the min_y field.
min_y
()

public EXRBox2i.Buffer
min_y(int value)

Sets the specified value to the min_y field.

protected EXRBox2i.Buffer
Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final EXRBox2i ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new EXRBox2i.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by EXRBox2i#SIZEOF, and its mark will be undefined.

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

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

getElementFactoryback to summary
protected EXRBox2i getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
max_xback to summary
public int max_x()
Returns:int

the value of the max_x field.

max_xback to summary
public EXRBox2i.Buffer max_x(int value)

Sets the specified value to the max_x field.

max_yback to summary
public int max_y()
Returns:int

the value of the max_y field.

max_yback to summary
public EXRBox2i.Buffer max_y(int value)

Sets the specified value to the max_y field.

min_xback to summary
public int min_x()
Returns:int

the value of the min_x field.

min_xback to summary
public EXRBox2i.Buffer min_x(int value)

Sets the specified value to the min_x field.

min_yback to summary
public int min_y()
Returns:int

the value of the min_y field.

min_yback to summary
public EXRBox2i.Buffer min_y(int value)

Sets the specified value to the min_y field.

selfback to summary
protected EXRBox2i.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override