Package org.lwjgl.util.freetype
Class FT_SfntName
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct FT_SfntName {
FT_UShort platform_id;
FT_UShort encoding_id;
FT_UShort language_id;
FT_UShort name_id;
FT_Byte * string;
FT_UInt string_len;
}-
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 size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionFT_SfntName(ByteBuffer container) Creates aFT_SfntNameinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_SfntNamecalloc()Returns a newFT_SfntNameinstance allocated withmemCalloc.static FT_SfntName.Buffercalloc(int capacity) Returns a newFT_SfntName.Bufferinstance allocated withmemCalloc.static FT_SfntName.Buffercalloc(int capacity, MemoryStack stack) Returns a newFT_SfntName.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FT_SfntNamecalloc(MemoryStack stack) Returns a newFT_SfntNameinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FT_SfntNamecreate()Returns a newFT_SfntNameinstance allocated withBufferUtils.static FT_SfntName.Buffercreate(int capacity) Returns a newFT_SfntName.Bufferinstance allocated withBufferUtils.static FT_SfntNamecreate(long address) Returns a newFT_SfntNameinstance for the specified memory address.static FT_SfntName.Buffercreate(long address, int capacity) Create aFT_SfntName.Bufferinstance at the specified memory.static @Nullable FT_SfntNamecreateSafe(long address) static @Nullable FT_SfntName.BuffercreateSafe(long address, int capacity) shortshortstatic FT_SfntNamemalloc()Returns a newFT_SfntNameinstance allocated withmemAlloc.static FT_SfntName.Buffermalloc(int capacity) Returns a newFT_SfntName.Bufferinstance allocated withmemAlloc.static FT_SfntName.Buffermalloc(int capacity, MemoryStack stack) Returns a newFT_SfntName.Bufferinstance allocated on the specifiedMemoryStack.static FT_SfntNamemalloc(MemoryStack stack) Returns a newFT_SfntNameinstance allocated on the specifiedMemoryStack.shortname_id()static shortnencoding_id(long struct) Unsafe version ofencoding_id().static shortnlanguage_id(long struct) Unsafe version oflanguage_id().static shortnname_id(long struct) Unsafe version ofname_id().static shortnplatform_id(long struct) Unsafe version ofplatform_id().static ByteBuffernstring(long struct) Unsafe version ofstring.static intnstring_len(long struct) Unsafe version ofstring_len().shortintsizeof()Returnssizeof(struct).string()intMethods 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. -
PLATFORM_ID
public static final int PLATFORM_IDThe struct member offsets. -
ENCODING_ID
public static final int ENCODING_IDThe struct member offsets. -
LANGUAGE_ID
public static final int LANGUAGE_IDThe struct member offsets. -
NAME_ID
public static final int NAME_IDThe struct member offsets. -
STRING
public static final int STRINGThe struct member offsets. -
STRING_LEN
public static final int STRING_LENThe struct member offsets.
-
-
Constructor Details
-
FT_SfntName
Creates aFT_SfntNameinstance 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_SfntName>
-
platform_id
public short platform_id()- Returns:
- the value of the
platform_idfield.
-
encoding_id
public short encoding_id()- Returns:
- the value of the
encoding_idfield.
-
language_id
public short language_id()- Returns:
- the value of the
language_idfield.
-
name_id
public short name_id()- Returns:
- the value of the
name_idfield.
-
string
- Returns:
- a
ByteBufferview of the data pointed to by thestringfield.
-
string_len
public int string_len()- Returns:
- the value of the
string_lenfield.
-
malloc
Returns a newFT_SfntNameinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFT_SfntNameinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFT_SfntNameinstance allocated withBufferUtils. -
create
Returns a newFT_SfntNameinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFT_SfntName.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFT_SfntName.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFT_SfntName.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFT_SfntName.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFT_SfntNameinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFT_SfntNameinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFT_SfntName.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFT_SfntName.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nplatform_id
public static short nplatform_id(long struct) Unsafe version ofplatform_id(). -
nencoding_id
public static short nencoding_id(long struct) Unsafe version ofencoding_id(). -
nlanguage_id
public static short nlanguage_id(long struct) Unsafe version oflanguage_id(). -
nname_id
public static short nname_id(long struct) Unsafe version ofname_id(). -
nstring
Unsafe version ofstring. -
nstring_len
public static int nstring_len(long struct) Unsafe version ofstring_len().
-