Package org.lwjgl.util.tinyexr
Class EXRBox2i
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct EXRBox2i {
int min_x;
int min_y;
int max_x;
int max_y;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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
ConstructorsConstructorDescriptionEXRBox2i
(ByteBuffer container) Creates aEXRBox2i
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic EXRBox2i
calloc()
Returns a newEXRBox2i
instance allocated withmemCalloc
.static EXRBox2i.Buffer
calloc
(int capacity) Returns a newEXRBox2i.Buffer
instance allocated withmemCalloc
.static EXRBox2i.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newEXRBox2i.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static EXRBox2i
calloc
(MemoryStack stack) Returns a newEXRBox2i
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static EXRBox2i
create()
Returns a newEXRBox2i
instance allocated withBufferUtils
.static EXRBox2i.Buffer
create
(int capacity) Returns a newEXRBox2i.Buffer
instance allocated withBufferUtils
.static EXRBox2i
create
(long address) Returns a newEXRBox2i
instance for the specified memory address.static EXRBox2i.Buffer
create
(long address, int capacity) Create aEXRBox2i.Buffer
instance at the specified memory.static @Nullable EXRBox2i
createSafe
(long address) static @Nullable EXRBox2i.Buffer
createSafe
(long address, int capacity) static EXRBox2i
malloc()
Returns a newEXRBox2i
instance allocated withmemAlloc
.static EXRBox2i.Buffer
malloc
(int capacity) Returns a newEXRBox2i.Buffer
instance allocated withmemAlloc
.static EXRBox2i.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newEXRBox2i.Buffer
instance allocated on the specifiedMemoryStack
.static EXRBox2i
malloc
(MemoryStack stack) Returns a newEXRBox2i
instance allocated on the specifiedMemoryStack
.int
max_x()
max_x
(int value) Sets the specified value to themax_x
field.int
max_y()
max_y
(int value) Sets the specified value to themax_y
field.int
min_x()
min_x
(int value) Sets the specified value to themin_x
field.int
min_y()
min_y
(int value) Sets the specified value to themin_y
field.static int
nmax_x
(long struct) Unsafe version ofmax_x()
.static void
nmax_x
(long struct, int value) Unsafe version ofmax_x
.static int
nmax_y
(long struct) Unsafe version ofmax_y()
.static void
nmax_y
(long struct, int value) Unsafe version ofmax_y
.static int
nmin_x
(long struct) Unsafe version ofmin_x()
.static void
nmin_x
(long struct, int value) Unsafe version ofmin_x
.static int
nmin_y
(long struct) Unsafe version ofmin_y()
.static void
nmin_y
(long struct, int value) Unsafe version ofmin_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
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
MIN_X
public static final int MIN_XThe struct member offsets. -
MIN_Y
public static final int MIN_YThe struct member offsets. -
MAX_X
public static final int MAX_XThe struct member offsets. -
MAX_Y
public static final int MAX_YThe struct member offsets.
-
-
Constructor Details
-
EXRBox2i
Creates aEXRBox2i
instance at the current position of the specifiedByteBuffer
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()Description copied from class:Struct
Returnssizeof(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
Sets the specified value to themin_x
field. -
min_y
Sets the specified value to themin_y
field. -
max_x
Sets the specified value to themax_x
field. -
max_y
Sets the specified value to themax_y
field. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newEXRBox2i
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newEXRBox2i
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newEXRBox2i
instance allocated withBufferUtils
. -
create
Returns a newEXRBox2i
instance for the specified memory address. -
createSafe
-
malloc
Returns a newEXRBox2i.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newEXRBox2i.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newEXRBox2i.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aEXRBox2i.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newEXRBox2i
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newEXRBox2i
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newEXRBox2i.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newEXRBox2i.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
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
.
-