Package org.lwjgl.util.spng
Class spng_chrm
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct spng_chrm {
double white_point_x;
double white_point_y;
double red_x;
double red_y;
double green_x;
double green_y;
double blue_x;
double 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
(ByteBuffer container) Creates aspng_chrm
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptiondouble
blue_x()
blue_x
(double value) Sets the specified value to theblue_x
field.double
blue_y()
blue_y
(double value) Sets the specified value to theblue_y
field.static spng_chrm
calloc()
Returns a newspng_chrm
instance allocated withmemCalloc
.static spng_chrm.Buffer
calloc
(int capacity) Returns a newspng_chrm.Buffer
instance allocated withmemCalloc
.static spng_chrm.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newspng_chrm.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static spng_chrm
calloc
(MemoryStack stack) Returns a newspng_chrm
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static spng_chrm
create()
Returns a newspng_chrm
instance allocated withBufferUtils
.static spng_chrm.Buffer
create
(int capacity) Returns a newspng_chrm.Buffer
instance allocated withBufferUtils
.static spng_chrm
create
(long address) Returns a newspng_chrm
instance for the specified memory address.static spng_chrm.Buffer
create
(long address, int capacity) Create aspng_chrm.Buffer
instance at the specified memory.static @Nullable spng_chrm
createSafe
(long address) static @Nullable spng_chrm.Buffer
createSafe
(long address, int capacity) double
green_x()
green_x
(double value) Sets the specified value to thegreen_x
field.double
green_y()
green_y
(double value) Sets the specified value to thegreen_y
field.static spng_chrm
malloc()
Returns a newspng_chrm
instance allocated withmemAlloc
.static spng_chrm.Buffer
malloc
(int capacity) Returns a newspng_chrm.Buffer
instance allocated withmemAlloc
.static spng_chrm.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newspng_chrm.Buffer
instance allocated on the specifiedMemoryStack
.static spng_chrm
malloc
(MemoryStack stack) Returns a newspng_chrm
instance allocated on the specifiedMemoryStack
.static double
nblue_x
(long struct) Unsafe version ofblue_x()
.static void
nblue_x
(long struct, double value) Unsafe version ofblue_x
.static double
nblue_y
(long struct) Unsafe version ofblue_y()
.static void
nblue_y
(long struct, double value) Unsafe version ofblue_y
.static double
ngreen_x
(long struct) Unsafe version ofgreen_x()
.static void
ngreen_x
(long struct, double value) Unsafe version ofgreen_x
.static double
ngreen_y
(long struct) Unsafe version ofgreen_y()
.static void
ngreen_y
(long struct, double value) Unsafe version ofgreen_y
.static double
nred_x
(long struct) Unsafe version ofred_x()
.static void
nred_x
(long struct, double value) Unsafe version ofred_x
.static double
nred_y
(long struct) Unsafe version ofred_y()
.static void
nred_y
(long struct, double value) Unsafe version ofred_y
.static double
nwhite_point_x
(long struct) Unsafe version ofwhite_point_x()
.static void
nwhite_point_x
(long struct, double value) Unsafe version ofwhite_point_x
.static double
nwhite_point_y
(long struct) Unsafe version ofwhite_point_y()
.static void
nwhite_point_y
(long struct, double value) Unsafe version ofwhite_point_y
.double
red_x()
red_x
(double value) Sets the specified value to thered_x
field.double
red_y()
red_y
(double value) Sets the specified value to thered_y
field.set
(double white_point_x, double white_point_y, double red_x, double red_y, double green_x, double green_y, double blue_x, double blue_y) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.double
white_point_x
(double value) Sets the specified value to thewhite_point_x
field.double
white_point_y
(double 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
Creates aspng_chrm
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)
. -
white_point_x
public double white_point_x()- Returns:
- the value of the
white_point_x
field.
-
white_point_y
public double white_point_y()- Returns:
- the value of the
white_point_y
field.
-
red_x
public double red_x()- Returns:
- the value of the
red_x
field.
-
red_y
public double red_y()- Returns:
- the value of the
red_y
field.
-
green_x
public double green_x()- Returns:
- the value of the
green_x
field.
-
green_y
public double green_y()- Returns:
- the value of the
green_y
field.
-
blue_x
public double blue_x()- Returns:
- the value of the
blue_x
field.
-
blue_y
public double 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 set(double white_point_x, double white_point_y, double red_x, double red_y, double green_x, double green_y, double blue_x, double 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
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newspng_chrm
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newspng_chrm
instance allocated withBufferUtils
. -
create
Returns a newspng_chrm
instance for the specified memory address. -
createSafe
-
malloc
Returns a newspng_chrm.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newspng_chrm.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newspng_chrm.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aspng_chrm.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newspng_chrm
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newspng_chrm
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.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newspng_chrm.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 double nwhite_point_x(long struct) Unsafe version ofwhite_point_x()
. -
nwhite_point_y
public static double nwhite_point_y(long struct) Unsafe version ofwhite_point_y()
. -
nred_x
public static double nred_x(long struct) Unsafe version ofred_x()
. -
nred_y
public static double nred_y(long struct) Unsafe version ofred_y()
. -
ngreen_x
public static double ngreen_x(long struct) Unsafe version ofgreen_x()
. -
ngreen_y
public static double ngreen_y(long struct) Unsafe version ofgreen_y()
. -
nblue_x
public static double nblue_x(long struct) Unsafe version ofblue_x()
. -
nblue_y
public static double nblue_y(long struct) Unsafe version ofblue_y()
. -
nwhite_point_x
public static void nwhite_point_x(long struct, double value) Unsafe version ofwhite_point_x
. -
nwhite_point_y
public static void nwhite_point_y(long struct, double value) Unsafe version ofwhite_point_y
. -
nred_x
public static void nred_x(long struct, double value) Unsafe version ofred_x
. -
nred_y
public static void nred_y(long struct, double value) Unsafe version ofred_y
. -
ngreen_x
public static void ngreen_x(long struct, double value) Unsafe version ofgreen_x
. -
ngreen_y
public static void ngreen_y(long struct, double value) Unsafe version ofgreen_y
. -
nblue_x
public static void nblue_x(long struct, double value) Unsafe version ofblue_x
. -
nblue_y
public static void nblue_y(long struct, double value) Unsafe version ofblue_y
.
-