Package org.lwjgl.util.msdfgen
Class MSDFGenBounds
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<MSDFGenBounds>
org.lwjgl.util.msdfgen.MSDFGenBounds
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class MSDFGenBounds
extends org.lwjgl.system.Struct<MSDFGenBounds>
implements org.lwjgl.system.NativeResource
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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()the vertical starting position of this bounding boxb(double value) Sets the specified value to theb()field.static MSDFGenBoundscalloc()Returns a newMSDFGenBoundsinstance allocated withmemCalloc.static MSDFGenBounds.Buffercalloc(int capacity) Returns a newMSDFGenBounds.Bufferinstance allocated withmemCalloc.static MSDFGenBounds.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newMSDFGenBounds.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MSDFGenBoundscalloc(org.lwjgl.system.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()the horizontal starting position of this bounding boxl(double value) Sets the specified value to thel()field.static MSDFGenBoundsmalloc()Returns a newMSDFGenBoundsinstance allocated withmemAlloc.static MSDFGenBounds.Buffermalloc(int capacity) Returns a newMSDFGenBounds.Bufferinstance allocated withmemAlloc.static MSDFGenBounds.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newMSDFGenBounds.Bufferinstance allocated on the specifiedMemoryStack.static MSDFGenBoundsmalloc(org.lwjgl.system.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()the horizontal ending position of this bounding boxr(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.intsizeof()doublet()the vertical ending position of this bounding boxt(double value) Sets the specified value to thet()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<MSDFGenBounds>
-
l
public double l()the horizontal starting position of this bounding box -
b
public double b()the vertical starting position of this bounding box -
r
public double r()the horizontal ending position of this bounding box -
t
public double t()the vertical ending position of this bounding box -
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 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.
-