Package org.lwjgl.stb
Class STBTTKerningentry
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct stbtt_kerningentry {
int glyph1;
int glyph2;
int advance;
}
-
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 member offsets.static 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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionSTBTTKerningentry
(ByteBuffer container) Creates aSTBTTKerningentry
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
advance()
static STBTTKerningentry
calloc()
Returns a newSTBTTKerningentry
instance allocated withmemCalloc
.static STBTTKerningentry.Buffer
calloc
(int capacity) Returns a newSTBTTKerningentry.Buffer
instance allocated withmemCalloc
.static STBTTKerningentry.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newSTBTTKerningentry.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static STBTTKerningentry
calloc
(MemoryStack stack) Returns a newSTBTTKerningentry
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static STBTTKerningentry
create()
Returns a newSTBTTKerningentry
instance allocated withBufferUtils
.static STBTTKerningentry.Buffer
create
(int capacity) Returns a newSTBTTKerningentry.Buffer
instance allocated withBufferUtils
.static STBTTKerningentry
create
(long address) Returns a newSTBTTKerningentry
instance for the specified memory address.static STBTTKerningentry.Buffer
create
(long address, int capacity) Create aSTBTTKerningentry.Buffer
instance at the specified memory.static @Nullable STBTTKerningentry
createSafe
(long address) static @Nullable STBTTKerningentry.Buffer
createSafe
(long address, int capacity) int
glyph1()
int
glyph2()
static STBTTKerningentry
malloc()
Returns a newSTBTTKerningentry
instance allocated withmemAlloc
.static STBTTKerningentry.Buffer
malloc
(int capacity) Returns a newSTBTTKerningentry.Buffer
instance allocated withmemAlloc
.static STBTTKerningentry.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newSTBTTKerningentry.Buffer
instance allocated on the specifiedMemoryStack
.static STBTTKerningentry
malloc
(MemoryStack stack) Returns a newSTBTTKerningentry
instance allocated on the specifiedMemoryStack
.static int
nadvance
(long struct) Unsafe version ofadvance()
.static int
nglyph1
(long struct) Unsafe version ofglyph1()
.static int
nglyph2
(long struct) Unsafe version ofglyph2()
.int
sizeof()
Returnssizeof(struct)
.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. -
GLYPH1
public static final int GLYPH1The struct member offsets. -
GLYPH2
public static final int GLYPH2The struct member offsets. -
ADVANCE
public static final int ADVANCEThe struct member offsets.
-
-
Constructor Details
-
STBTTKerningentry
Creates aSTBTTKerningentry
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<STBTTKerningentry>
-
glyph1
public int glyph1()- Returns:
- the value of the
glyph1
field.
-
glyph2
public int glyph2()- Returns:
- the value of the
glyph2
field.
-
advance
public int advance()- Returns:
- the value of the
advance
field.
-
malloc
Returns a newSTBTTKerningentry
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSTBTTKerningentry
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSTBTTKerningentry
instance allocated withBufferUtils
. -
create
Returns a newSTBTTKerningentry
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSTBTTKerningentry.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSTBTTKerningentry.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSTBTTKerningentry.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSTBTTKerningentry.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSTBTTKerningentry
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSTBTTKerningentry
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSTBTTKerningentry.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSTBTTKerningentry.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nglyph1
public static int nglyph1(long struct) Unsafe version ofglyph1()
. -
nglyph2
public static int nglyph2(long struct) Unsafe version ofglyph2()
. -
nadvance
public static int nadvance(long struct) Unsafe version ofadvance()
.
-