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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aEXRBox2iinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic EXRBox2icalloc()Returns a newEXRBox2iinstance allocated withmemCalloc.static EXRBox2i.Buffercalloc(int capacity) Returns a newEXRBox2i.Bufferinstance allocated withmemCalloc.static EXRBox2i.Buffercalloc(int capacity, MemoryStack stack) Returns a newEXRBox2i.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static EXRBox2icalloc(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 @Nullable EXRBox2icreateSafe(long address) static @Nullable 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, MemoryStack stack) Returns a newEXRBox2i.Bufferinstance allocated on the specifiedMemoryStack.static EXRBox2imalloc(MemoryStack stack) Returns a newEXRBox2iinstance allocated on the specifiedMemoryStack.intmax_x()max_x(int value) Sets the specified value to themax_xfield.intmax_y()max_y(int value) Sets the specified value to themax_yfield.intmin_x()min_x(int value) Sets the specified value to themin_xfield.intmin_y()min_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.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.intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(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
Sets the specified value to themin_xfield. -
min_y
Sets the specified value to themin_yfield. -
max_x
Sets the specified value to themax_xfield. -
max_y
Sets the specified value to themax_yfield. -
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 newEXRBox2iinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newEXRBox2iinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newEXRBox2iinstance allocated withBufferUtils. -
create
Returns a newEXRBox2iinstance for the specified memory address. -
createSafe
-
malloc
Returns a newEXRBox2i.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newEXRBox2i.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newEXRBox2i.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aEXRBox2i.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newEXRBox2iinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newEXRBox2iinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newEXRBox2i.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newEXRBox2i.Bufferinstance allocated on the specifiedMemoryStackand 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.
-