Package org.lwjgl.util.freetype
Class FT_Module_Class
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct FT_Module_Class {
FT_ULong module_flags;
FT_Long module_size;
FT_String const * module_name;
FT_Fixed module_version;
FT_Fixed module_requires;
void const * module_interface;
{@link FT_Module_ConstructorI FT_Module_Constructor} module_init;
{@link FT_Module_DestructorI FT_Module_Destructor} module_done;
{@link FT_Module_RequesterI FT_Module_Requester} get_interface;
}
-
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 member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.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_Module_Class
(ByteBuffer container) Creates aFT_Module_Class
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_Module_Class
calloc()
Returns a newFT_Module_Class
instance allocated withmemCalloc
.static FT_Module_Class.Buffer
calloc
(int capacity) Returns a newFT_Module_Class.Buffer
instance allocated withmemCalloc
.static FT_Module_Class.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newFT_Module_Class.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FT_Module_Class
calloc
(MemoryStack stack) Returns a newFT_Module_Class
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FT_Module_Class
create()
Returns a newFT_Module_Class
instance allocated withBufferUtils
.static FT_Module_Class.Buffer
create
(int capacity) Returns a newFT_Module_Class.Buffer
instance allocated withBufferUtils
.static FT_Module_Class
create
(long address) Returns a newFT_Module_Class
instance for the specified memory address.static FT_Module_Class.Buffer
create
(long address, int capacity) Create aFT_Module_Class.Buffer
instance at the specified memory.static @Nullable FT_Module_Class
createSafe
(long address) static @Nullable FT_Module_Class.Buffer
createSafe
(long address, int capacity) @Nullable FT_Module_Requester
get_interface
(@Nullable FT_Module_RequesterI value) Sets the specified value to theget_interface
field.static FT_Module_Class
malloc()
Returns a newFT_Module_Class
instance allocated withmemAlloc
.static FT_Module_Class.Buffer
malloc
(int capacity) Returns a newFT_Module_Class.Buffer
instance allocated withmemAlloc
.static FT_Module_Class.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newFT_Module_Class.Buffer
instance allocated on the specifiedMemoryStack
.static FT_Module_Class
malloc
(MemoryStack stack) Returns a newFT_Module_Class
instance allocated on the specifiedMemoryStack
.@Nullable FT_Module_Destructor
module_done
(@Nullable FT_Module_DestructorI value) Sets the specified value to themodule_done
field.long
module_flags
(long value) Sets the specified value to themodule_flags
field.@Nullable FT_Module_Constructor
module_init
(@Nullable FT_Module_ConstructorI value) Sets the specified value to themodule_init
field.@Nullable ByteBuffer
module_interface
(int capacity) module_interface
(@Nullable ByteBuffer value) Sets the address of the specifiedByteBuffer
to themodule_interface
field.module_name
(ByteBuffer value) Sets the address of the specified encoded string to themodule_name
field.long
module_requires
(long value) Sets the specified value to themodule_requires
field.long
module_size
(long value) Sets the specified value to themodule_size
field.long
module_version
(long value) Sets the specified value to themodule_version
field.static @Nullable FT_Module_Requester
nget_interface
(long struct) Unsafe version ofget_interface()
.static void
nget_interface
(long struct, @Nullable FT_Module_RequesterI value) Unsafe version ofget_interface
.static @Nullable FT_Module_Destructor
nmodule_done
(long struct) Unsafe version ofmodule_done()
.static void
nmodule_done
(long struct, @Nullable FT_Module_DestructorI value) Unsafe version ofmodule_done
.static long
nmodule_flags
(long struct) Unsafe version ofmodule_flags()
.static void
nmodule_flags
(long struct, long value) Unsafe version ofmodule_flags
.static @Nullable FT_Module_Constructor
nmodule_init
(long struct) Unsafe version ofmodule_init()
.static void
nmodule_init
(long struct, @Nullable FT_Module_ConstructorI value) Unsafe version ofmodule_init
.static @Nullable ByteBuffer
nmodule_interface
(long struct, int capacity) Unsafe version ofmodule_interface
.static void
nmodule_interface
(long struct, @Nullable ByteBuffer value) Unsafe version ofmodule_interface
.static ByteBuffer
nmodule_name
(long struct) Unsafe version ofmodule_name()
.static void
nmodule_name
(long struct, ByteBuffer value) Unsafe version ofmodule_name
.static String
nmodule_nameString
(long struct) Unsafe version ofmodule_nameString()
.static long
nmodule_requires
(long struct) Unsafe version ofmodule_requires()
.static void
nmodule_requires
(long struct, long value) Unsafe version ofmodule_requires
.static long
nmodule_size
(long struct) Unsafe version ofmodule_size()
.static void
nmodule_size
(long struct, long value) Unsafe version ofmodule_size
.static long
nmodule_version
(long struct) Unsafe version ofmodule_version()
.static void
nmodule_version
(long struct, long value) Unsafe version ofmodule_version
.set
(long module_flags, long module_size, ByteBuffer module_name, long module_version, long module_requires, @Nullable ByteBuffer module_interface, @Nullable FT_Module_ConstructorI module_init, @Nullable FT_Module_DestructorI module_done, @Nullable FT_Module_RequesterI get_interface) Initializes this struct with the specified values.set
(FT_Module_Class src) 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. -
MODULE_FLAGS
public static final int MODULE_FLAGSThe struct member offsets. -
MODULE_SIZE
public static final int MODULE_SIZEThe struct member offsets. -
MODULE_NAME
public static final int MODULE_NAMEThe struct member offsets. -
MODULE_VERSION
public static final int MODULE_VERSIONThe struct member offsets. -
MODULE_REQUIRES
public static final int MODULE_REQUIRESThe struct member offsets. -
MODULE_INTERFACE
public static final int MODULE_INTERFACEThe struct member offsets. -
MODULE_INIT
public static final int MODULE_INITThe struct member offsets. -
MODULE_DONE
public static final int MODULE_DONEThe struct member offsets. -
GET_INTERFACE
public static final int GET_INTERFACEThe struct member offsets.
-
-
Constructor Details
-
FT_Module_Class
Creates aFT_Module_Class
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_Module_Class>
-
module_flags
public long module_flags()- Returns:
- the value of the
module_flags
field.
-
module_size
public long module_size()- Returns:
- the value of the
module_size
field.
-
module_name
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by themodule_name
field.
-
module_nameString
- Returns:
- the null-terminated string pointed to by the
module_name
field.
-
module_version
public long module_version()- Returns:
- the value of the
module_version
field.
-
module_requires
public long module_requires()- Returns:
- the value of the
module_requires
field.
-
module_interface
- Returns:
- a
ByteBuffer
view of the data pointed to by themodule_interface
field.
-
module_init
- Returns:
- the value of the
module_init
field.
-
module_done
- Returns:
- the value of the
module_done
field.
-
get_interface
- Returns:
- the value of the
get_interface
field.
-
module_flags
Sets the specified value to themodule_flags
field. -
module_size
Sets the specified value to themodule_size
field. -
module_name
Sets the address of the specified encoded string to themodule_name
field. -
module_version
Sets the specified value to themodule_version
field. -
module_requires
Sets the specified value to themodule_requires
field. -
module_interface
Sets the address of the specifiedByteBuffer
to themodule_interface
field. -
module_init
Sets the specified value to themodule_init
field. -
module_done
Sets the specified value to themodule_done
field. -
get_interface
Sets the specified value to theget_interface
field. -
set
public FT_Module_Class set(long module_flags, long module_size, ByteBuffer module_name, long module_version, long module_requires, @Nullable ByteBuffer module_interface, @Nullable FT_Module_ConstructorI module_init, @Nullable FT_Module_DestructorI module_done, @Nullable FT_Module_RequesterI get_interface) 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_Module_Class
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFT_Module_Class
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFT_Module_Class
instance allocated withBufferUtils
. -
create
Returns a newFT_Module_Class
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFT_Module_Class.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFT_Module_Class.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFT_Module_Class.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFT_Module_Class.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFT_Module_Class
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFT_Module_Class
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFT_Module_Class.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFT_Module_Class.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nmodule_flags
public static long nmodule_flags(long struct) Unsafe version ofmodule_flags()
. -
nmodule_size
public static long nmodule_size(long struct) Unsafe version ofmodule_size()
. -
nmodule_name
Unsafe version ofmodule_name()
. -
nmodule_nameString
Unsafe version ofmodule_nameString()
. -
nmodule_version
public static long nmodule_version(long struct) Unsafe version ofmodule_version()
. -
nmodule_requires
public static long nmodule_requires(long struct) Unsafe version ofmodule_requires()
. -
nmodule_interface
Unsafe version ofmodule_interface
. -
nmodule_init
Unsafe version ofmodule_init()
. -
nmodule_done
Unsafe version ofmodule_done()
. -
nget_interface
Unsafe version ofget_interface()
. -
nmodule_flags
public static void nmodule_flags(long struct, long value) Unsafe version ofmodule_flags
. -
nmodule_size
public static void nmodule_size(long struct, long value) Unsafe version ofmodule_size
. -
nmodule_name
Unsafe version ofmodule_name
. -
nmodule_version
public static void nmodule_version(long struct, long value) Unsafe version ofmodule_version
. -
nmodule_requires
public static void nmodule_requires(long struct, long value) Unsafe version ofmodule_requires
. -
nmodule_interface
Unsafe version ofmodule_interface
. -
nmodule_init
Unsafe version ofmodule_init
. -
nmodule_done
Unsafe version ofmodule_done
. -
nget_interface
Unsafe version ofget_interface
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-