Package org.lwjgl.util.spng
Class spng_chrm_int
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct spng_chrm_int {
uint32_t white_point_x;
uint32_t white_point_y;
uint32_t red_x;
uint32_t red_y;
uint32_t green_x;
uint32_t green_y;
uint32_t blue_x;
uint32_t blue_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 member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionspng_chrm_int(ByteBuffer container) Creates aspng_chrm_intinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintblue_x()blue_x(int value) Sets the specified value to theblue_xfield.intblue_y()blue_y(int value) Sets the specified value to theblue_yfield.static spng_chrm_intcalloc()Returns a newspng_chrm_intinstance allocated withmemCalloc.static spng_chrm_int.Buffercalloc(int capacity) Returns a newspng_chrm_int.Bufferinstance allocated withmemCalloc.static spng_chrm_int.Buffercalloc(int capacity, MemoryStack stack) Returns a newspng_chrm_int.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static spng_chrm_intcalloc(MemoryStack stack) Returns a newspng_chrm_intinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static spng_chrm_intcreate()Returns a newspng_chrm_intinstance allocated withBufferUtils.static spng_chrm_int.Buffercreate(int capacity) Returns a newspng_chrm_int.Bufferinstance allocated withBufferUtils.static spng_chrm_intcreate(long address) Returns a newspng_chrm_intinstance for the specified memory address.static spng_chrm_int.Buffercreate(long address, int capacity) Create aspng_chrm_int.Bufferinstance at the specified memory.static @Nullable spng_chrm_intcreateSafe(long address) static @Nullable spng_chrm_int.BuffercreateSafe(long address, int capacity) intgreen_x()green_x(int value) Sets the specified value to thegreen_xfield.intgreen_y()green_y(int value) Sets the specified value to thegreen_yfield.static spng_chrm_intmalloc()Returns a newspng_chrm_intinstance allocated withmemAlloc.static spng_chrm_int.Buffermalloc(int capacity) Returns a newspng_chrm_int.Bufferinstance allocated withmemAlloc.static spng_chrm_int.Buffermalloc(int capacity, MemoryStack stack) Returns a newspng_chrm_int.Bufferinstance allocated on the specifiedMemoryStack.static spng_chrm_intmalloc(MemoryStack stack) Returns a newspng_chrm_intinstance allocated on the specifiedMemoryStack.static intnblue_x(long struct) Unsafe version ofblue_x().static voidnblue_x(long struct, int value) Unsafe version ofblue_x.static intnblue_y(long struct) Unsafe version ofblue_y().static voidnblue_y(long struct, int value) Unsafe version ofblue_y.static intngreen_x(long struct) Unsafe version ofgreen_x().static voidngreen_x(long struct, int value) Unsafe version ofgreen_x.static intngreen_y(long struct) Unsafe version ofgreen_y().static voidngreen_y(long struct, int value) Unsafe version ofgreen_y.static intnred_x(long struct) Unsafe version ofred_x().static voidnred_x(long struct, int value) Unsafe version ofred_x.static intnred_y(long struct) Unsafe version ofred_y().static voidnred_y(long struct, int value) Unsafe version ofred_y.static intnwhite_point_x(long struct) Unsafe version ofwhite_point_x().static voidnwhite_point_x(long struct, int value) Unsafe version ofwhite_point_x.static intnwhite_point_y(long struct) Unsafe version ofwhite_point_y().static voidnwhite_point_y(long struct, int value) Unsafe version ofwhite_point_y.intred_x()red_x(int value) Sets the specified value to thered_xfield.intred_y()red_y(int value) Sets the specified value to thered_yfield.set(int white_point_x, int white_point_y, int red_x, int red_y, int green_x, int green_y, int blue_x, int blue_y) Initializes this struct with the specified values.set(spng_chrm_int src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intwhite_point_x(int value) Sets the specified value to thewhite_point_xfield.intwhite_point_y(int value) Sets the specified value to thewhite_point_yfield.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. -
WHITE_POINT_X
public static final int WHITE_POINT_XThe struct member offsets. -
WHITE_POINT_Y
public static final int WHITE_POINT_YThe struct member offsets. -
RED_X
public static final int RED_XThe struct member offsets. -
RED_Y
public static final int RED_YThe struct member offsets. -
GREEN_X
public static final int GREEN_XThe struct member offsets. -
GREEN_Y
public static final int GREEN_YThe struct member offsets. -
BLUE_X
public static final int BLUE_XThe struct member offsets. -
BLUE_Y
public static final int BLUE_YThe struct member offsets.
-
-
Constructor Details
-
spng_chrm_int
Creates aspng_chrm_intinstance 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).- Specified by:
sizeofin classStruct<spng_chrm_int>
-
white_point_x
public int white_point_x()- Returns:
- the value of the
white_point_xfield.
-
white_point_y
public int white_point_y()- Returns:
- the value of the
white_point_yfield.
-
red_x
public int red_x()- Returns:
- the value of the
red_xfield.
-
red_y
public int red_y()- Returns:
- the value of the
red_yfield.
-
green_x
public int green_x()- Returns:
- the value of the
green_xfield.
-
green_y
public int green_y()- Returns:
- the value of the
green_yfield.
-
blue_x
public int blue_x()- Returns:
- the value of the
blue_xfield.
-
blue_y
public int blue_y()- Returns:
- the value of the
blue_yfield.
-
white_point_x
Sets the specified value to thewhite_point_xfield. -
white_point_y
Sets the specified value to thewhite_point_yfield. -
red_x
Sets the specified value to thered_xfield. -
red_y
Sets the specified value to thered_yfield. -
green_x
Sets the specified value to thegreen_xfield. -
green_y
Sets the specified value to thegreen_yfield. -
blue_x
Sets the specified value to theblue_xfield. -
blue_y
Sets the specified value to theblue_yfield. -
set
public spng_chrm_int set(int white_point_x, int white_point_y, int red_x, int red_y, int green_x, int green_y, int blue_x, int blue_y) 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 newspng_chrm_intinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newspng_chrm_intinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newspng_chrm_intinstance allocated withBufferUtils. -
create
Returns a newspng_chrm_intinstance for the specified memory address. -
createSafe
-
malloc
Returns a newspng_chrm_int.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newspng_chrm_int.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newspng_chrm_int.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aspng_chrm_int.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newspng_chrm_intinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newspng_chrm_intinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newspng_chrm_int.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newspng_chrm_int.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nwhite_point_x
public static int nwhite_point_x(long struct) Unsafe version ofwhite_point_x(). -
nwhite_point_y
public static int nwhite_point_y(long struct) Unsafe version ofwhite_point_y(). -
nred_x
public static int nred_x(long struct) Unsafe version ofred_x(). -
nred_y
public static int nred_y(long struct) Unsafe version ofred_y(). -
ngreen_x
public static int ngreen_x(long struct) Unsafe version ofgreen_x(). -
ngreen_y
public static int ngreen_y(long struct) Unsafe version ofgreen_y(). -
nblue_x
public static int nblue_x(long struct) Unsafe version ofblue_x(). -
nblue_y
public static int nblue_y(long struct) Unsafe version ofblue_y(). -
nwhite_point_x
public static void nwhite_point_x(long struct, int value) Unsafe version ofwhite_point_x. -
nwhite_point_y
public static void nwhite_point_y(long struct, int value) Unsafe version ofwhite_point_y. -
nred_x
public static void nred_x(long struct, int value) Unsafe version ofred_x. -
nred_y
public static void nred_y(long struct, int value) Unsafe version ofred_y. -
ngreen_x
public static void ngreen_x(long struct, int value) Unsafe version ofgreen_x. -
ngreen_y
public static void ngreen_y(long struct, int value) Unsafe version ofgreen_y. -
nblue_x
public static void nblue_x(long struct, int value) Unsafe version ofblue_x. -
nblue_y
public static void nblue_y(long struct, int value) Unsafe version ofblue_y.
-