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.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 size in bytes.static final int
The struct member offsets.static final int
The 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_SfntName
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_SfntName
calloc()
Returns a newFT_SfntName
instance allocated withmemCalloc
.static FT_SfntName.Buffer
calloc
(int capacity) Returns a newFT_SfntName.Buffer
instance allocated withmemCalloc
.static FT_SfntName.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newFT_SfntName.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FT_SfntName
calloc
(MemoryStack stack) Returns a newFT_SfntName
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FT_SfntName
create()
Returns a newFT_SfntName
instance allocated withBufferUtils
.static FT_SfntName.Buffer
create
(int capacity) Returns a newFT_SfntName.Buffer
instance allocated withBufferUtils
.static FT_SfntName
create
(long address) Returns a newFT_SfntName
instance for the specified memory address.static FT_SfntName.Buffer
create
(long address, int capacity) Create aFT_SfntName.Buffer
instance at the specified memory.static @Nullable FT_SfntName
createSafe
(long address) static @Nullable FT_SfntName.Buffer
createSafe
(long address, int capacity) short
short
static FT_SfntName
malloc()
Returns a newFT_SfntName
instance allocated withmemAlloc
.static FT_SfntName.Buffer
malloc
(int capacity) Returns a newFT_SfntName.Buffer
instance allocated withmemAlloc
.static FT_SfntName.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newFT_SfntName.Buffer
instance allocated on the specifiedMemoryStack
.static FT_SfntName
malloc
(MemoryStack stack) Returns a newFT_SfntName
instance allocated on the specifiedMemoryStack
.short
name_id()
static short
nencoding_id
(long struct) Unsafe version ofencoding_id()
.static short
nlanguage_id
(long struct) Unsafe version oflanguage_id()
.static short
nname_id
(long struct) Unsafe version ofname_id()
.static short
nplatform_id
(long struct) Unsafe version ofplatform_id()
.static ByteBuffer
nstring
(long struct) Unsafe version ofstring
.static int
nstring_len
(long struct) Unsafe version ofstring_len()
.short
int
sizeof()
Returnssizeof(struct)
.string()
int
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. -
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_SfntName
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_SfntName>
-
platform_id
public short platform_id()- Returns:
- the value of the
platform_id
field.
-
encoding_id
public short encoding_id()- Returns:
- the value of the
encoding_id
field.
-
language_id
public short language_id()- Returns:
- the value of the
language_id
field.
-
name_id
public short name_id()- Returns:
- the value of the
name_id
field.
-
string
- Returns:
- a
ByteBuffer
view of the data pointed to by thestring
field.
-
string_len
public int string_len()- Returns:
- the value of the
string_len
field.
-
malloc
Returns a newFT_SfntName
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFT_SfntName
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFT_SfntName
instance allocated withBufferUtils
. -
create
Returns a newFT_SfntName
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFT_SfntName.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFT_SfntName.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFT_SfntName.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFT_SfntName.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFT_SfntName
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFT_SfntName
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFT_SfntName.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFT_SfntName.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-