Package org.lwjgl.util.tinyexr
Class EXRBox2i
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.tinyexr.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.NativeResourceLayout
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 classEXRBox2i.BufferAn array ofEXRBox2istructs.
-
Constructor Summary
Constructors Constructor Description EXRBox2i(java.nio.ByteBuffer container)Creates aEXRBox2iinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EXRBox2icalloc()Returns a newEXRBox2iinstance allocated withmemCalloc.static EXRBox2i.Buffercalloc(int capacity)Returns a newEXRBox2i.Bufferinstance allocated withmemCalloc.static EXRBox2i.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newEXRBox2i.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static EXRBox2icalloc(org.lwjgl.system.MemoryStack stack)Returns a newEXRBox2iinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static EXRBox2icreate()Returns a newEXRBox2iinstance allocated withBufferUtils.static EXRBox2i.Buffercreate(int capacity)Returns a newEXRBox2i.Bufferinstance allocated withBufferUtils.static EXRBox2icreate(long address)Returns a newEXRBox2iinstance for the specified memory address.static EXRBox2i.Buffercreate(long address, int capacity)Create aEXRBox2i.Bufferinstance at the specified memory.static EXRBox2icreateSafe(long address)static EXRBox2i.BuffercreateSafe(long address, int capacity)static EXRBox2imalloc()Returns a newEXRBox2iinstance allocated withmemAlloc.static EXRBox2i.Buffermalloc(int capacity)Returns a newEXRBox2i.Bufferinstance allocated withmemAlloc.static EXRBox2i.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newEXRBox2i.Bufferinstance allocated on the specifiedMemoryStack.static EXRBox2imalloc(org.lwjgl.system.MemoryStack stack)Returns a newEXRBox2iinstance allocated on the specifiedMemoryStack.intmax_x()EXRBox2imax_x(int value)Sets the specified value to themax_xfield.intmax_y()EXRBox2imax_y(int value)Sets the specified value to themax_yfield.intmin_x()EXRBox2imin_x(int value)Sets the specified value to themin_xfield.intmin_y()EXRBox2imin_y(int value)Sets the specified value to themin_yfield.static intnmax_x(long struct)Unsafe version ofmax_x().static voidnmax_x(long struct, int value)Unsafe version ofmax_x.static intnmax_y(long struct)Unsafe version ofmax_y().static voidnmax_y(long struct, int value)Unsafe version ofmax_y.static intnmin_x(long struct)Unsafe version ofmin_x().static voidnmin_x(long struct, int value)Unsafe version ofmin_x.static intnmin_y(long struct)Unsafe version ofmin_y().static voidnmin_y(long struct, int value)Unsafe version ofmin_y.EXRBox2iset(int min_x, int min_y, int max_x, int max_y)Initializes this struct with the specified values.EXRBox2iset(EXRBox2i src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
EXRBox2i
public EXRBox2i(java.nio.ByteBuffer container)
Creates aEXRBox2iinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
min_x
public int min_x()
- Returns:
- the value of the
min_xfield.
-
min_y
public int min_y()
- Returns:
- the value of the
min_yfield.
-
max_x
public int max_x()
- Returns:
- the value of the
max_xfield.
-
max_y
public int max_y()
- Returns:
- the value of the
max_yfield.
-
min_x
public EXRBox2i min_x(int value)
Sets the specified value to themin_xfield.
-
min_y
public EXRBox2i min_y(int value)
Sets the specified value to themin_yfield.
-
max_x
public EXRBox2i max_x(int value)
Sets the specified value to themax_xfield.
-
max_y
public EXRBox2i max_y(int value)
Sets the specified value to themax_yfield.
-
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 newEXRBox2iinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static EXRBox2i calloc()
Returns a newEXRBox2iinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static EXRBox2i create()
Returns a newEXRBox2iinstance allocated withBufferUtils.
-
create
public static EXRBox2i create(long address)
Returns a newEXRBox2iinstance for the specified memory address.
-
createSafe
@Nullable public static EXRBox2i createSafe(long address)
-
malloc
public static EXRBox2i.Buffer malloc(int capacity)
Returns a newEXRBox2i.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static EXRBox2i.Buffer calloc(int capacity)
Returns a newEXRBox2i.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static EXRBox2i.Buffer create(int capacity)
Returns a newEXRBox2i.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static EXRBox2i.Buffer create(long address, int capacity)
Create aEXRBox2i.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static EXRBox2i.Buffer createSafe(long address, int capacity)
-
malloc
public static EXRBox2i malloc(org.lwjgl.system.MemoryStack stack)
Returns a newEXRBox2iinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static EXRBox2i calloc(org.lwjgl.system.MemoryStack stack)
Returns a newEXRBox2iinstance allocated on the specifiedMemoryStackand 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 newEXRBox2i.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static EXRBox2i.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newEXRBox2i.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nmin_x
public static int nmin_x(long struct)
Unsafe version ofmin_x().
-
nmin_y
public static int nmin_y(long struct)
Unsafe version ofmin_y().
-
nmax_x
public static int nmax_x(long struct)
Unsafe version ofmax_x().
-
nmax_y
public static int nmax_y(long struct)
Unsafe version ofmax_y().
-
nmin_x
public static void nmin_x(long struct, int value)Unsafe version ofmin_x.
-
nmin_y
public static void nmin_y(long struct, int value)Unsafe version ofmin_y.
-
nmax_x
public static void nmax_x(long struct, int value)Unsafe version ofmax_x.
-
nmax_y
public static void nmax_y(long struct, int value)Unsafe version ofmax_y.
-
-