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.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 size in bytes.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
ConstructorsConstructorDescriptionMSDFGenBounds(ByteBuffer container) Creates aMSDFGenBoundsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptiondoubleb()b(double value) Sets the specified value to thebfield.static MSDFGenBoundscalloc()Returns a newMSDFGenBoundsinstance allocated withmemCalloc.static MSDFGenBounds.Buffercalloc(int capacity) Returns a newMSDFGenBounds.Bufferinstance allocated withmemCalloc.static MSDFGenBounds.Buffercalloc(int capacity, MemoryStack stack) Returns a newMSDFGenBounds.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MSDFGenBoundscalloc(MemoryStack stack) Returns a newMSDFGenBoundsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MSDFGenBoundscreate()Returns a newMSDFGenBoundsinstance allocated withBufferUtils.static MSDFGenBounds.Buffercreate(int capacity) Returns a newMSDFGenBounds.Bufferinstance allocated withBufferUtils.static MSDFGenBoundscreate(long address) Returns a newMSDFGenBoundsinstance for the specified memory address.static MSDFGenBounds.Buffercreate(long address, int capacity) Create aMSDFGenBounds.Bufferinstance at the specified memory.static @Nullable MSDFGenBoundscreateSafe(long address) static @Nullable MSDFGenBounds.BuffercreateSafe(long address, int capacity) doublel()l(double value) Sets the specified value to thelfield.static MSDFGenBoundsmalloc()Returns a newMSDFGenBoundsinstance allocated withmemAlloc.static MSDFGenBounds.Buffermalloc(int capacity) Returns a newMSDFGenBounds.Bufferinstance allocated withmemAlloc.static MSDFGenBounds.Buffermalloc(int capacity, MemoryStack stack) Returns a newMSDFGenBounds.Bufferinstance allocated on the specifiedMemoryStack.static MSDFGenBoundsmalloc(MemoryStack stack) Returns a newMSDFGenBoundsinstance allocated on the specifiedMemoryStack.static doublenb(long struct) Unsafe version ofb().static voidnb(long struct, double value) Unsafe version ofb.static doublenl(long struct) Unsafe version ofl().static voidnl(long struct, double value) Unsafe version ofl.static doublenr(long struct) Unsafe version ofr().static voidnr(long struct, double value) Unsafe version ofr.static doublent(long struct) Unsafe version oft().static voidnt(long struct, double value) Unsafe version oft.doubler()r(double value) Sets the specified value to therfield.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.intsizeof()Returnssizeof(struct).doublet()t(double value) Sets the specified value to thetfield.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. -
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 aMSDFGenBoundsinstance 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<MSDFGenBounds>
-
l
public double l()- Returns:
- the value of the
lfield.
-
b
public double b()- Returns:
- the value of the
bfield.
-
r
public double r()- Returns:
- the value of the
rfield.
-
t
public double t()- Returns:
- the value of the
tfield.
-
l
Sets the specified value to thelfield. -
b
Sets the specified value to thebfield. -
r
Sets the specified value to therfield. -
t
Sets the specified value to thetfield. -
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 newMSDFGenBoundsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newMSDFGenBoundsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newMSDFGenBoundsinstance allocated withBufferUtils. -
create
Returns a newMSDFGenBoundsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newMSDFGenBounds.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newMSDFGenBounds.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newMSDFGenBounds.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aMSDFGenBounds.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newMSDFGenBoundsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newMSDFGenBoundsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newMSDFGenBounds.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newMSDFGenBounds.Bufferinstance allocated on the specifiedMemoryStackand 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.
-