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.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 member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The 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_int
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
blue_x()
blue_x
(int value) Sets the specified value to theblue_x
field.int
blue_y()
blue_y
(int value) Sets the specified value to theblue_y
field.static spng_chrm_int
calloc()
Returns a newspng_chrm_int
instance allocated withmemCalloc
.static spng_chrm_int.Buffer
calloc
(int capacity) Returns a newspng_chrm_int.Buffer
instance allocated withmemCalloc
.static spng_chrm_int.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newspng_chrm_int.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static spng_chrm_int
calloc
(MemoryStack stack) Returns a newspng_chrm_int
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static spng_chrm_int
create()
Returns a newspng_chrm_int
instance allocated withBufferUtils
.static spng_chrm_int.Buffer
create
(int capacity) Returns a newspng_chrm_int.Buffer
instance allocated withBufferUtils
.static spng_chrm_int
create
(long address) Returns a newspng_chrm_int
instance for the specified memory address.static spng_chrm_int.Buffer
create
(long address, int capacity) Create aspng_chrm_int.Buffer
instance at the specified memory.static @Nullable spng_chrm_int
createSafe
(long address) static @Nullable spng_chrm_int.Buffer
createSafe
(long address, int capacity) int
green_x()
green_x
(int value) Sets the specified value to thegreen_x
field.int
green_y()
green_y
(int value) Sets the specified value to thegreen_y
field.static spng_chrm_int
malloc()
Returns a newspng_chrm_int
instance allocated withmemAlloc
.static spng_chrm_int.Buffer
malloc
(int capacity) Returns a newspng_chrm_int.Buffer
instance allocated withmemAlloc
.static spng_chrm_int.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newspng_chrm_int.Buffer
instance allocated on the specifiedMemoryStack
.static spng_chrm_int
malloc
(MemoryStack stack) Returns a newspng_chrm_int
instance allocated on the specifiedMemoryStack
.static int
nblue_x
(long struct) Unsafe version ofblue_x()
.static void
nblue_x
(long struct, int value) Unsafe version ofblue_x
.static int
nblue_y
(long struct) Unsafe version ofblue_y()
.static void
nblue_y
(long struct, int value) Unsafe version ofblue_y
.static int
ngreen_x
(long struct) Unsafe version ofgreen_x()
.static void
ngreen_x
(long struct, int value) Unsafe version ofgreen_x
.static int
ngreen_y
(long struct) Unsafe version ofgreen_y()
.static void
ngreen_y
(long struct, int value) Unsafe version ofgreen_y
.static int
nred_x
(long struct) Unsafe version ofred_x()
.static void
nred_x
(long struct, int value) Unsafe version ofred_x
.static int
nred_y
(long struct) Unsafe version ofred_y()
.static void
nred_y
(long struct, int value) Unsafe version ofred_y
.static int
nwhite_point_x
(long struct) Unsafe version ofwhite_point_x()
.static void
nwhite_point_x
(long struct, int value) Unsafe version ofwhite_point_x
.static int
nwhite_point_y
(long struct) Unsafe version ofwhite_point_y()
.static void
nwhite_point_y
(long struct, int value) Unsafe version ofwhite_point_y
.int
red_x()
red_x
(int value) Sets the specified value to thered_x
field.int
red_y()
red_y
(int value) Sets the specified value to thered_y
field.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.int
sizeof()
Returnssizeof(struct)
.int
white_point_x
(int value) Sets the specified value to thewhite_point_x
field.int
white_point_y
(int value) Sets the specified value to thewhite_point_y
field.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. -
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_int
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)
.- Specified by:
sizeof
in classStruct<spng_chrm_int>
-
white_point_x
public int white_point_x()- Returns:
- the value of the
white_point_x
field.
-
white_point_y
public int white_point_y()- Returns:
- the value of the
white_point_y
field.
-
red_x
public int red_x()- Returns:
- the value of the
red_x
field.
-
red_y
public int red_y()- Returns:
- the value of the
red_y
field.
-
green_x
public int green_x()- Returns:
- the value of the
green_x
field.
-
green_y
public int green_y()- Returns:
- the value of the
green_y
field.
-
blue_x
public int blue_x()- Returns:
- the value of the
blue_x
field.
-
blue_y
public int blue_y()- Returns:
- the value of the
blue_y
field.
-
white_point_x
Sets the specified value to thewhite_point_x
field. -
white_point_y
Sets the specified value to thewhite_point_y
field. -
red_x
Sets the specified value to thered_x
field. -
red_y
Sets the specified value to thered_y
field. -
green_x
Sets the specified value to thegreen_x
field. -
green_y
Sets the specified value to thegreen_y
field. -
blue_x
Sets the specified value to theblue_x
field. -
blue_y
Sets the specified value to theblue_y
field. -
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_int
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newspng_chrm_int
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newspng_chrm_int
instance allocated withBufferUtils
. -
create
Returns a newspng_chrm_int
instance for the specified memory address. -
createSafe
-
malloc
Returns a newspng_chrm_int.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newspng_chrm_int.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newspng_chrm_int.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aspng_chrm_int.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newspng_chrm_int
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newspng_chrm_int
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newspng_chrm_int.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newspng_chrm_int.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-