Package org.lwjgl.util.freetype
Class FT_Incremental_Interface
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class FT_Incremental_Interface
extends Struct<FT_Incremental_Interface>
implements NativeResource
struct FT_Incremental_InterfaceRec {
{@link FT_Incremental_Funcs FT_Incremental_FuncsRec} const * funcs;
FT_Incremental object;
}
-
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 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
ConstructorsConstructorDescriptionFT_Incremental_Interface
(ByteBuffer container) Creates aFT_Incremental_Interface
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_Incremental_Interface
calloc()
Returns a newFT_Incremental_Interface
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newFT_Incremental_Interface.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newFT_Incremental_Interface.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FT_Incremental_Interface
calloc
(MemoryStack stack) Returns a newFT_Incremental_Interface
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FT_Incremental_Interface
create()
Returns a newFT_Incremental_Interface
instance allocated withBufferUtils
.create
(int capacity) Returns a newFT_Incremental_Interface.Buffer
instance allocated withBufferUtils
.static FT_Incremental_Interface
create
(long address) Returns a newFT_Incremental_Interface
instance for the specified memory address.create
(long address, int capacity) Create aFT_Incremental_Interface.Buffer
instance at the specified memory.static @Nullable FT_Incremental_Interface
createSafe
(long address) static @Nullable FT_Incremental_Interface.Buffer
createSafe
(long address, int capacity) funcs()
funcs
(FT_Incremental_Funcs value) Sets the address of the specifiedFT_Incremental_Funcs
to thefuncs
field.static FT_Incremental_Interface
malloc()
Returns a newFT_Incremental_Interface
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newFT_Incremental_Interface.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newFT_Incremental_Interface.Buffer
instance allocated on the specifiedMemoryStack
.static FT_Incremental_Interface
malloc
(MemoryStack stack) Returns a newFT_Incremental_Interface
instance allocated on the specifiedMemoryStack
.static FT_Incremental_Funcs
nfuncs
(long struct) Unsafe version offuncs()
.static void
nfuncs
(long struct, FT_Incremental_Funcs value) Unsafe version offuncs
.static long
nobject
(long struct) Unsafe version ofobject()
.static void
nobject
(long struct, long value) Unsafe version ofobject
.long
object()
object
(long value) Sets the specified value to theobject
field.set
(FT_Incremental_Funcs funcs, long object) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.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. -
FUNCS
public static final int FUNCSThe struct member offsets. -
OBJECT
public static final int OBJECTThe struct member offsets.
-
-
Constructor Details
-
FT_Incremental_Interface
Creates aFT_Incremental_Interface
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<FT_Incremental_Interface>
-
funcs
- Returns:
- a
FT_Incremental_Funcs
view of the struct pointed to by thefuncs
field.
-
object
public long object()- Returns:
- the value of the
object
field.
-
funcs
Sets the address of the specifiedFT_Incremental_Funcs
to thefuncs
field. -
object
Sets the specified value to theobject
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 newFT_Incremental_Interface
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFT_Incremental_Interface
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFT_Incremental_Interface
instance allocated withBufferUtils
. -
create
Returns a newFT_Incremental_Interface
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFT_Incremental_Interface.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFT_Incremental_Interface.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFT_Incremental_Interface.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFT_Incremental_Interface.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFT_Incremental_Interface
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFT_Incremental_Interface
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFT_Incremental_Interface.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFT_Incremental_Interface.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nfuncs
Unsafe version offuncs()
. -
nobject
public static long nobject(long struct) Unsafe version ofobject()
. -
nfuncs
Unsafe version offuncs
. -
nobject
public static void nobject(long struct, long value) Unsafe version ofobject
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-