Package org.lwjgl.util.freetype
Class TT_Header
- All Implemented Interfaces:
Pointer
struct TT_Header {
FT_Fixed Table_Version;
FT_Fixed Font_Revision;
FT_Long CheckSum_Adjust;
FT_Long Magic_Number;
FT_UShort Flags;
FT_UShort Units_Per_EM;
FT_ULong Created[2];
FT_ULong Modified[2];
FT_Short xMin;
FT_Short yMin;
FT_Short xMax;
FT_Short yMax;
FT_UShort Mac_Style;
FT_UShort Lowest_Rec_PPEM;
FT_Short Font_Direction;
FT_Short Index_To_Loc_Format;
FT_Short Glyph_Data_Format;
}-
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 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.static final intThe struct member offsets.static final intThe struct member offsets.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
ConstructorsConstructorDescriptionTT_Header(ByteBuffer container) Creates aTT_Headerinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongstatic TT_Headercreate(long address) Returns a newTT_Headerinstance for the specified memory address.static TT_Header.Buffercreate(long address, int capacity) Create aTT_Header.Bufferinstance at the specified memory.Created()longCreated(int index) static @Nullable TT_HeadercreateSafe(long address) static @Nullable TT_Header.BuffercreateSafe(long address, int capacity) shortFlags()shortlongshortshortshortshortlongModified()longModified(int index) static longnCheckSum_Adjust(long struct) Unsafe version ofCheckSum_Adjust().static CLongBuffernCreated(long struct) Unsafe version ofCreated().static longnCreated(long struct, int index) Unsafe version ofCreated.static shortnFlags(long struct) Unsafe version ofFlags().static shortnFont_Direction(long struct) Unsafe version ofFont_Direction().static longnFont_Revision(long struct) Unsafe version ofFont_Revision().static shortnGlyph_Data_Format(long struct) Unsafe version ofGlyph_Data_Format().static shortnIndex_To_Loc_Format(long struct) Unsafe version ofIndex_To_Loc_Format().static shortnLowest_Rec_PPEM(long struct) Unsafe version ofLowest_Rec_PPEM().static shortnMac_Style(long struct) Unsafe version ofMac_Style().static longnMagic_Number(long struct) Unsafe version ofMagic_Number().static CLongBuffernModified(long struct) Unsafe version ofModified().static longnModified(long struct, int index) Unsafe version ofModified.static longnTable_Version(long struct) Unsafe version ofTable_Version().static shortnUnits_Per_EM(long struct) Unsafe version ofUnits_Per_EM().static shortnxMax(long struct) Unsafe version ofxMax().static shortnxMin(long struct) Unsafe version ofxMin().static shortnyMax(long struct) Unsafe version ofyMax().static shortnyMin(long struct) Unsafe version ofyMin().intsizeof()Returnssizeof(struct).longshortshortxMax()shortxMin()shortyMax()shortyMin()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. -
TABLE_VERSION
public static final int TABLE_VERSIONThe struct member offsets. -
FONT_REVISION
public static final int FONT_REVISIONThe struct member offsets. -
CHECKSUM_ADJUST
public static final int CHECKSUM_ADJUSTThe struct member offsets. -
MAGIC_NUMBER
public static final int MAGIC_NUMBERThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
UNITS_PER_EM
public static final int UNITS_PER_EMThe struct member offsets. -
CREATED
public static final int CREATEDThe struct member offsets. -
MODIFIED
public static final int MODIFIEDThe struct member offsets. -
XMIN
public static final int XMINThe struct member offsets. -
YMIN
public static final int YMINThe struct member offsets. -
XMAX
public static final int XMAXThe struct member offsets. -
YMAX
public static final int YMAXThe struct member offsets. -
MAC_STYLE
public static final int MAC_STYLEThe struct member offsets. -
LOWEST_REC_PPEM
public static final int LOWEST_REC_PPEMThe struct member offsets. -
FONT_DIRECTION
public static final int FONT_DIRECTIONThe struct member offsets. -
INDEX_TO_LOC_FORMAT
public static final int INDEX_TO_LOC_FORMATThe struct member offsets. -
GLYPH_DATA_FORMAT
public static final int GLYPH_DATA_FORMATThe struct member offsets.
-
-
Constructor Details
-
TT_Header
Creates aTT_Headerinstance 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). -
Table_Version
public long Table_Version()- Returns:
- the value of the
Table_Versionfield.
-
Font_Revision
public long Font_Revision()- Returns:
- the value of the
Font_Revisionfield.
-
CheckSum_Adjust
public long CheckSum_Adjust()- Returns:
- the value of the
CheckSum_Adjustfield.
-
Magic_Number
public long Magic_Number()- Returns:
- the value of the
Magic_Numberfield.
-
Flags
public short Flags()- Returns:
- the value of the
Flagsfield.
-
Units_Per_EM
public short Units_Per_EM()- Returns:
- the value of the
Units_Per_EMfield.
-
Created
- Returns:
- a
CLongBufferview of theCreatedfield.
-
Created
public long Created(int index) - Returns:
- the value at the specified index of the
Createdfield.
-
Modified
- Returns:
- a
CLongBufferview of theModifiedfield.
-
Modified
public long Modified(int index) - Returns:
- the value at the specified index of the
Modifiedfield.
-
xMin
public short xMin()- Returns:
- the value of the
xMinfield.
-
yMin
public short yMin()- Returns:
- the value of the
yMinfield.
-
xMax
public short xMax()- Returns:
- the value of the
xMaxfield.
-
yMax
public short yMax()- Returns:
- the value of the
yMaxfield.
-
Mac_Style
public short Mac_Style()- Returns:
- the value of the
Mac_Stylefield.
-
Lowest_Rec_PPEM
public short Lowest_Rec_PPEM()- Returns:
- the value of the
Lowest_Rec_PPEMfield.
-
Font_Direction
public short Font_Direction()- Returns:
- the value of the
Font_Directionfield.
-
Index_To_Loc_Format
public short Index_To_Loc_Format()- Returns:
- the value of the
Index_To_Loc_Formatfield.
-
Glyph_Data_Format
public short Glyph_Data_Format()- Returns:
- the value of the
Glyph_Data_Formatfield.
-
create
Returns a newTT_Headerinstance for the specified memory address. -
createSafe
-
create
Create aTT_Header.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nTable_Version
public static long nTable_Version(long struct) Unsafe version ofTable_Version(). -
nFont_Revision
public static long nFont_Revision(long struct) Unsafe version ofFont_Revision(). -
nCheckSum_Adjust
public static long nCheckSum_Adjust(long struct) Unsafe version ofCheckSum_Adjust(). -
nMagic_Number
public static long nMagic_Number(long struct) Unsafe version ofMagic_Number(). -
nFlags
public static short nFlags(long struct) Unsafe version ofFlags(). -
nUnits_Per_EM
public static short nUnits_Per_EM(long struct) Unsafe version ofUnits_Per_EM(). -
nCreated
Unsafe version ofCreated(). -
nCreated
public static long nCreated(long struct, int index) Unsafe version ofCreated. -
nModified
Unsafe version ofModified(). -
nModified
public static long nModified(long struct, int index) Unsafe version ofModified. -
nxMin
public static short nxMin(long struct) Unsafe version ofxMin(). -
nyMin
public static short nyMin(long struct) Unsafe version ofyMin(). -
nxMax
public static short nxMax(long struct) Unsafe version ofxMax(). -
nyMax
public static short nyMax(long struct) Unsafe version ofyMax(). -
nMac_Style
public static short nMac_Style(long struct) Unsafe version ofMac_Style(). -
nLowest_Rec_PPEM
public static short nLowest_Rec_PPEM(long struct) Unsafe version ofLowest_Rec_PPEM(). -
nFont_Direction
public static short nFont_Direction(long struct) Unsafe version ofFont_Direction(). -
nIndex_To_Loc_Format
public static short nIndex_To_Loc_Format(long struct) Unsafe version ofIndex_To_Loc_Format(). -
nGlyph_Data_Format
public static short nGlyph_Data_Format(long struct) Unsafe version ofGlyph_Data_Format().
-