Package org.lwjgl.util.msdfgen
Class MSDFGenBounds
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct msdf_bounds {
double l;
double b;
double r;
double t;
}
-
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 size in bytes.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
ConstructorsConstructorDescriptionMSDFGenBounds
(ByteBuffer container) Creates aMSDFGenBounds
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptiondouble
b()
b
(double value) Sets the specified value to theb
field.static MSDFGenBounds
calloc()
Returns a newMSDFGenBounds
instance allocated withmemCalloc
.static MSDFGenBounds.Buffer
calloc
(int capacity) Returns a newMSDFGenBounds.Buffer
instance allocated withmemCalloc
.static MSDFGenBounds.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newMSDFGenBounds.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static MSDFGenBounds
calloc
(MemoryStack stack) Returns a newMSDFGenBounds
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static MSDFGenBounds
create()
Returns a newMSDFGenBounds
instance allocated withBufferUtils
.static MSDFGenBounds.Buffer
create
(int capacity) Returns a newMSDFGenBounds.Buffer
instance allocated withBufferUtils
.static MSDFGenBounds
create
(long address) Returns a newMSDFGenBounds
instance for the specified memory address.static MSDFGenBounds.Buffer
create
(long address, int capacity) Create aMSDFGenBounds.Buffer
instance at the specified memory.static @Nullable MSDFGenBounds
createSafe
(long address) static @Nullable MSDFGenBounds.Buffer
createSafe
(long address, int capacity) double
l()
l
(double value) Sets the specified value to thel
field.static MSDFGenBounds
malloc()
Returns a newMSDFGenBounds
instance allocated withmemAlloc
.static MSDFGenBounds.Buffer
malloc
(int capacity) Returns a newMSDFGenBounds.Buffer
instance allocated withmemAlloc
.static MSDFGenBounds.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newMSDFGenBounds.Buffer
instance allocated on the specifiedMemoryStack
.static MSDFGenBounds
malloc
(MemoryStack stack) Returns a newMSDFGenBounds
instance allocated on the specifiedMemoryStack
.static double
nb
(long struct) Unsafe version ofb()
.static void
nb
(long struct, double value) Unsafe version ofb
.static double
nl
(long struct) Unsafe version ofl()
.static void
nl
(long struct, double value) Unsafe version ofl
.static double
nr
(long struct) Unsafe version ofr()
.static void
nr
(long struct, double value) Unsafe version ofr
.static double
nt
(long struct) Unsafe version oft()
.static void
nt
(long struct, double value) Unsafe version oft
.double
r()
r
(double value) Sets the specified value to ther
field.set
(double l, double b, double r, double t) Initializes this struct with the specified values.set
(MSDFGenBounds src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.double
t()
t
(double value) Sets the specified value to thet
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. -
L
public static final int LThe struct member offsets. -
B
public static final int BThe struct member offsets. -
R
public static final int RThe struct member offsets. -
T
public static final int TThe struct member offsets.
-
-
Constructor Details
-
MSDFGenBounds
Creates aMSDFGenBounds
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<MSDFGenBounds>
-
l
public double l()- Returns:
- the value of the
l
field.
-
b
public double b()- Returns:
- the value of the
b
field.
-
r
public double r()- Returns:
- the value of the
r
field.
-
t
public double t()- Returns:
- the value of the
t
field.
-
l
Sets the specified value to thel
field. -
b
Sets the specified value to theb
field. -
r
Sets the specified value to ther
field. -
t
Sets the specified value to thet
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 newMSDFGenBounds
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newMSDFGenBounds
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newMSDFGenBounds
instance allocated withBufferUtils
. -
create
Returns a newMSDFGenBounds
instance for the specified memory address. -
createSafe
-
malloc
Returns a newMSDFGenBounds.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newMSDFGenBounds.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newMSDFGenBounds.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aMSDFGenBounds.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newMSDFGenBounds
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newMSDFGenBounds
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newMSDFGenBounds.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newMSDFGenBounds.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nl
public static double nl(long struct) Unsafe version ofl()
. -
nb
public static double nb(long struct) Unsafe version ofb()
. -
nr
public static double nr(long struct) Unsafe version ofr()
. -
nt
public static double nt(long struct) Unsafe version oft()
. -
nl
public static void nl(long struct, double value) Unsafe version ofl
. -
nb
public static void nb(long struct, double value) Unsafe version ofb
. -
nr
public static void nr(long struct, double value) Unsafe version ofr
. -
nt
public static void nt(long struct, double value) Unsafe version oft
.
-