Package org.lwjgl.stb
Class STBTTFontinfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.stb.STBTTFontinfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class STBTTFontinfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceAn opaque structure that contains font information.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSTBTTFontinfo.BufferAn array ofSTBTTFontinfostructs.
-
Constructor Summary
Constructors Constructor Description STBTTFontinfo(java.nio.ByteBuffer container)Creates aSTBTTFontinfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static STBTTFontinfocalloc()Returns a newSTBTTFontinfoinstance allocated withmemCalloc.static STBTTFontinfo.Buffercalloc(int capacity)Returns a newSTBTTFontinfo.Bufferinstance allocated withmemCalloc.static STBTTFontinfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSTBTTFontinfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static STBTTFontinfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newSTBTTFontinfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static STBTTFontinfocallocStack()Deprecated.static STBTTFontinfo.BuffercallocStack(int capacity)Deprecated.static STBTTFontinfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static STBTTFontinfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static STBTTFontinfocreate()Returns a newSTBTTFontinfoinstance allocated withBufferUtils.static STBTTFontinfo.Buffercreate(int capacity)Returns a newSTBTTFontinfo.Bufferinstance allocated withBufferUtils.static STBTTFontinfocreate(long address)Returns a newSTBTTFontinfoinstance for the specified memory address.static STBTTFontinfo.Buffercreate(long address, int capacity)Create aSTBTTFontinfo.Bufferinstance at the specified memory.static STBTTFontinfocreateSafe(long address)static STBTTFontinfo.BuffercreateSafe(long address, int capacity)static STBTTFontinfomalloc()Returns a newSTBTTFontinfoinstance allocated withmemAlloc.static STBTTFontinfo.Buffermalloc(int capacity)Returns a newSTBTTFontinfo.Bufferinstance allocated withmemAlloc.static STBTTFontinfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSTBTTFontinfo.Bufferinstance allocated on the specifiedMemoryStack.static STBTTFontinfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newSTBTTFontinfoinstance allocated on the specifiedMemoryStack.static STBTTFontinfomallocStack()Deprecated.static STBTTFontinfo.BuffermallocStack(int capacity)Deprecated.static STBTTFontinfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static STBTTFontinfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intsizeof()
-
-
-
Constructor Detail
-
STBTTFontinfo
public STBTTFontinfo(java.nio.ByteBuffer container)
Creates aSTBTTFontinfoinstance 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
-
malloc
public static STBTTFontinfo malloc()
Returns a newSTBTTFontinfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static STBTTFontinfo calloc()
Returns a newSTBTTFontinfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static STBTTFontinfo create()
Returns a newSTBTTFontinfoinstance allocated withBufferUtils.
-
create
public static STBTTFontinfo create(long address)
Returns a newSTBTTFontinfoinstance for the specified memory address.
-
createSafe
@Nullable public static STBTTFontinfo createSafe(long address)
-
malloc
public static STBTTFontinfo.Buffer malloc(int capacity)
Returns a newSTBTTFontinfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static STBTTFontinfo.Buffer calloc(int capacity)
Returns a newSTBTTFontinfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static STBTTFontinfo.Buffer create(int capacity)
Returns a newSTBTTFontinfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static STBTTFontinfo.Buffer create(long address, int capacity)
Create aSTBTTFontinfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static STBTTFontinfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static STBTTFontinfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static STBTTFontinfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static STBTTFontinfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static STBTTFontinfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static STBTTFontinfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static STBTTFontinfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static STBTTFontinfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static STBTTFontinfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static STBTTFontinfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newSTBTTFontinfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static STBTTFontinfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newSTBTTFontinfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static STBTTFontinfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSTBTTFontinfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static STBTTFontinfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSTBTTFontinfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-