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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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_Classinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_Module_Classcalloc()Returns a newFT_Module_Classinstance allocated withmemCalloc.static FT_Module_Class.Buffercalloc(int capacity) Returns a newFT_Module_Class.Bufferinstance allocated withmemCalloc.static FT_Module_Class.Buffercalloc(int capacity, MemoryStack stack) Returns a newFT_Module_Class.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FT_Module_Classcalloc(MemoryStack stack) Returns a newFT_Module_Classinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FT_Module_Classcreate()Returns a newFT_Module_Classinstance allocated withBufferUtils.static FT_Module_Class.Buffercreate(int capacity) Returns a newFT_Module_Class.Bufferinstance allocated withBufferUtils.static FT_Module_Classcreate(long address) Returns a newFT_Module_Classinstance for the specified memory address.static FT_Module_Class.Buffercreate(long address, int capacity) Create aFT_Module_Class.Bufferinstance at the specified memory.static @Nullable FT_Module_ClasscreateSafe(long address) static @Nullable FT_Module_Class.BuffercreateSafe(long address, int capacity) @Nullable FT_Module_Requesterget_interface(@Nullable FT_Module_RequesterI value) Sets the specified value to theget_interfacefield.static FT_Module_Classmalloc()Returns a newFT_Module_Classinstance allocated withmemAlloc.static FT_Module_Class.Buffermalloc(int capacity) Returns a newFT_Module_Class.Bufferinstance allocated withmemAlloc.static FT_Module_Class.Buffermalloc(int capacity, MemoryStack stack) Returns a newFT_Module_Class.Bufferinstance allocated on the specifiedMemoryStack.static FT_Module_Classmalloc(MemoryStack stack) Returns a newFT_Module_Classinstance allocated on the specifiedMemoryStack.@Nullable FT_Module_Destructormodule_done(@Nullable FT_Module_DestructorI value) Sets the specified value to themodule_donefield.longmodule_flags(long value) Sets the specified value to themodule_flagsfield.@Nullable FT_Module_Constructormodule_init(@Nullable FT_Module_ConstructorI value) Sets the specified value to themodule_initfield.@Nullable ByteBuffermodule_interface(int capacity) module_interface(@Nullable ByteBuffer value) Sets the address of the specifiedByteBufferto themodule_interfacefield.module_name(ByteBuffer value) Sets the address of the specified encoded string to themodule_namefield.longmodule_requires(long value) Sets the specified value to themodule_requiresfield.longmodule_size(long value) Sets the specified value to themodule_sizefield.longmodule_version(long value) Sets the specified value to themodule_versionfield.static @Nullable FT_Module_Requesternget_interface(long struct) Unsafe version ofget_interface().static voidnget_interface(long struct, @Nullable FT_Module_RequesterI value) Unsafe version ofget_interface.static @Nullable FT_Module_Destructornmodule_done(long struct) Unsafe version ofmodule_done().static voidnmodule_done(long struct, @Nullable FT_Module_DestructorI value) Unsafe version ofmodule_done.static longnmodule_flags(long struct) Unsafe version ofmodule_flags().static voidnmodule_flags(long struct, long value) Unsafe version ofmodule_flags.static @Nullable FT_Module_Constructornmodule_init(long struct) Unsafe version ofmodule_init().static voidnmodule_init(long struct, @Nullable FT_Module_ConstructorI value) Unsafe version ofmodule_init.static @Nullable ByteBuffernmodule_interface(long struct, int capacity) Unsafe version ofmodule_interface.static voidnmodule_interface(long struct, @Nullable ByteBuffer value) Unsafe version ofmodule_interface.static ByteBuffernmodule_name(long struct) Unsafe version ofmodule_name().static voidnmodule_name(long struct, ByteBuffer value) Unsafe version ofmodule_name.static Stringnmodule_nameString(long struct) Unsafe version ofmodule_nameString().static longnmodule_requires(long struct) Unsafe version ofmodule_requires().static voidnmodule_requires(long struct, long value) Unsafe version ofmodule_requires.static longnmodule_size(long struct) Unsafe version ofmodule_size().static voidnmodule_size(long struct, long value) Unsafe version ofmodule_size.static longnmodule_version(long struct) Unsafe version ofmodule_version().static voidnmodule_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.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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_Classinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<FT_Module_Class>
-
module_flags
public long module_flags()- Returns:
- the value of the
module_flagsfield.
-
module_size
public long module_size()- Returns:
- the value of the
module_sizefield.
-
module_name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by themodule_namefield.
-
module_nameString
- Returns:
- the null-terminated string pointed to by the
module_namefield.
-
module_version
public long module_version()- Returns:
- the value of the
module_versionfield.
-
module_requires
public long module_requires()- Returns:
- the value of the
module_requiresfield.
-
module_interface
- Returns:
- a
ByteBufferview of the data pointed to by themodule_interfacefield.
-
module_init
- Returns:
- the value of the
module_initfield.
-
module_done
- Returns:
- the value of the
module_donefield.
-
get_interface
- Returns:
- the value of the
get_interfacefield.
-
module_flags
Sets the specified value to themodule_flagsfield. -
module_size
Sets the specified value to themodule_sizefield. -
module_name
Sets the address of the specified encoded string to themodule_namefield. -
module_version
Sets the specified value to themodule_versionfield. -
module_requires
Sets the specified value to themodule_requiresfield. -
module_interface
Sets the address of the specifiedByteBufferto themodule_interfacefield. -
module_init
Sets the specified value to themodule_initfield. -
module_done
Sets the specified value to themodule_donefield. -
get_interface
Sets the specified value to theget_interfacefield. -
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_Classinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFT_Module_Classinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFT_Module_Classinstance allocated withBufferUtils. -
create
Returns a newFT_Module_Classinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFT_Module_Class.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFT_Module_Class.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFT_Module_Class.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFT_Module_Class.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFT_Module_Classinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFT_Module_Classinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFT_Module_Class.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFT_Module_Class.Bufferinstance allocated on the specifiedMemoryStackand 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
-