Package org.lwjgl.stb
Class STBTTKerningentry
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.stb.STBTTKerningentry
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class STBTTKerningentry extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct stbtt_kerningentry { int glyph1; int glyph2; int advance; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSTBTTKerningentry.BufferAn array ofSTBTTKerningentrystructs.
-
Constructor Summary
Constructors Constructor Description STBTTKerningentry(java.nio.ByteBuffer container)Creates aSTBTTKerningentryinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intadvance()static STBTTKerningentrycalloc()Returns a newSTBTTKerningentryinstance allocated withmemCalloc.static STBTTKerningentry.Buffercalloc(int capacity)Returns a newSTBTTKerningentry.Bufferinstance allocated withmemCalloc.static STBTTKerningentry.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSTBTTKerningentry.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static STBTTKerningentrycalloc(org.lwjgl.system.MemoryStack stack)Returns a newSTBTTKerningentryinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static STBTTKerningentrycreate()Returns a newSTBTTKerningentryinstance allocated withBufferUtils.static STBTTKerningentry.Buffercreate(int capacity)Returns a newSTBTTKerningentry.Bufferinstance allocated withBufferUtils.static STBTTKerningentrycreate(long address)Returns a newSTBTTKerningentryinstance for the specified memory address.static STBTTKerningentry.Buffercreate(long address, int capacity)Create aSTBTTKerningentry.Bufferinstance at the specified memory.static STBTTKerningentrycreateSafe(long address)static STBTTKerningentry.BuffercreateSafe(long address, int capacity)intglyph1()intglyph2()static STBTTKerningentrymalloc()Returns a newSTBTTKerningentryinstance allocated withmemAlloc.static STBTTKerningentry.Buffermalloc(int capacity)Returns a newSTBTTKerningentry.Bufferinstance allocated withmemAlloc.static STBTTKerningentry.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSTBTTKerningentry.Bufferinstance allocated on the specifiedMemoryStack.static STBTTKerningentrymalloc(org.lwjgl.system.MemoryStack stack)Returns a newSTBTTKerningentryinstance allocated on the specifiedMemoryStack.static intnadvance(long struct)Unsafe version ofadvance().static intnglyph1(long struct)Unsafe version ofglyph1().static intnglyph2(long struct)Unsafe version ofglyph2().intsizeof()
-
-
-
Constructor Detail
-
STBTTKerningentry
public STBTTKerningentry(java.nio.ByteBuffer container)
Creates aSTBTTKerningentryinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
glyph1
public int glyph1()
- Returns:
- the value of the
glyph1field.
-
glyph2
public int glyph2()
- Returns:
- the value of the
glyph2field.
-
advance
public int advance()
- Returns:
- the value of the
advancefield.
-
malloc
public static STBTTKerningentry malloc()
Returns a newSTBTTKerningentryinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static STBTTKerningentry calloc()
Returns a newSTBTTKerningentryinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static STBTTKerningentry create()
Returns a newSTBTTKerningentryinstance allocated withBufferUtils.
-
create
public static STBTTKerningentry create(long address)
Returns a newSTBTTKerningentryinstance for the specified memory address.
-
createSafe
@Nullable public static STBTTKerningentry createSafe(long address)
-
malloc
public static STBTTKerningentry.Buffer malloc(int capacity)
Returns a newSTBTTKerningentry.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static STBTTKerningentry.Buffer calloc(int capacity)
Returns a newSTBTTKerningentry.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static STBTTKerningentry.Buffer create(int capacity)
Returns a newSTBTTKerningentry.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static STBTTKerningentry.Buffer create(long address, int capacity)
Create aSTBTTKerningentry.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static STBTTKerningentry.Buffer createSafe(long address, int capacity)
-
malloc
public static STBTTKerningentry malloc(org.lwjgl.system.MemoryStack stack)
Returns a newSTBTTKerningentryinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static STBTTKerningentry calloc(org.lwjgl.system.MemoryStack stack)
Returns a newSTBTTKerningentryinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static STBTTKerningentry.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSTBTTKerningentry.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static STBTTKerningentry.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSTBTTKerningentry.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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().
-
-