Package org.lwjgl.util.freetype
Class FT_CharMap
- All Implemented Interfaces:
Pointer
struct FT_CharMapRec {
{@link FT_Face FT_Face} face;
FT_Encoding encoding;
FT_UShort platform_id;
FT_UShort encoding_id;
}-
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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionFT_CharMap(ByteBuffer container) Creates aFT_CharMapinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_CharMapcreate(long address) Returns a newFT_CharMapinstance for the specified memory address.static FT_CharMap.Buffercreate(long address, int capacity) Create aFT_CharMap.Bufferinstance at the specified memory.static @Nullable FT_CharMapcreateSafe(long address) static @Nullable FT_CharMap.BuffercreateSafe(long address, int capacity) intencoding()shortface()static intnencoding(long struct) Unsafe version ofencoding().static shortnencoding_id(long struct) Unsafe version ofencoding_id().static FT_Facenface(long struct) Unsafe version offace().static shortnplatform_id(long struct) Unsafe version ofplatform_id().shortintsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
FACE
public static final int FACEThe struct member offsets. -
ENCODING
public static final int ENCODINGThe struct member offsets. -
PLATFORM_ID
public static final int PLATFORM_IDThe struct member offsets. -
ENCODING_ID
public static final int ENCODING_IDThe struct member offsets.
-
-
Constructor Details
-
FT_CharMap
Creates aFT_CharMapinstance 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_CharMap>
-
face
- Returns:
- a
FT_Faceview of the struct pointed to by thefacefield.
-
encoding
public int encoding()- Returns:
- the value of the
encodingfield.
-
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.
-
create
Returns a newFT_CharMapinstance for the specified memory address. -
createSafe
-
create
Create aFT_CharMap.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nface
Unsafe version offace(). -
nencoding
public static int nencoding(long struct) Unsafe version ofencoding(). -
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().
-