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.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 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 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.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.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_Header
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionlong
static TT_Header
create
(long address) Returns a newTT_Header
instance for the specified memory address.static TT_Header.Buffer
create
(long address, int capacity) Create aTT_Header.Buffer
instance at the specified memory.Created()
long
Created
(int index) static @Nullable TT_Header
createSafe
(long address) static @Nullable TT_Header.Buffer
createSafe
(long address, int capacity) short
Flags()
short
long
short
short
short
short
long
Modified()
long
Modified
(int index) static long
nCheckSum_Adjust
(long struct) Unsafe version ofCheckSum_Adjust()
.static CLongBuffer
nCreated
(long struct) Unsafe version ofCreated()
.static long
nCreated
(long struct, int index) Unsafe version ofCreated
.static short
nFlags
(long struct) Unsafe version ofFlags()
.static short
nFont_Direction
(long struct) Unsafe version ofFont_Direction()
.static long
nFont_Revision
(long struct) Unsafe version ofFont_Revision()
.static short
nGlyph_Data_Format
(long struct) Unsafe version ofGlyph_Data_Format()
.static short
nIndex_To_Loc_Format
(long struct) Unsafe version ofIndex_To_Loc_Format()
.static short
nLowest_Rec_PPEM
(long struct) Unsafe version ofLowest_Rec_PPEM()
.static short
nMac_Style
(long struct) Unsafe version ofMac_Style()
.static long
nMagic_Number
(long struct) Unsafe version ofMagic_Number()
.static CLongBuffer
nModified
(long struct) Unsafe version ofModified()
.static long
nModified
(long struct, int index) Unsafe version ofModified
.static long
nTable_Version
(long struct) Unsafe version ofTable_Version()
.static short
nUnits_Per_EM
(long struct) Unsafe version ofUnits_Per_EM()
.static short
nxMax
(long struct) Unsafe version ofxMax()
.static short
nxMin
(long struct) Unsafe version ofxMin()
.static short
nyMax
(long struct) Unsafe version ofyMax()
.static short
nyMin
(long struct) Unsafe version ofyMin()
.int
sizeof()
Returnssizeof(struct)
.long
short
short
xMax()
short
xMin()
short
yMax()
short
yMin()
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_Header
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)
. -
Table_Version
public long Table_Version()- Returns:
- the value of the
Table_Version
field.
-
Font_Revision
public long Font_Revision()- Returns:
- the value of the
Font_Revision
field.
-
CheckSum_Adjust
public long CheckSum_Adjust()- Returns:
- the value of the
CheckSum_Adjust
field.
-
Magic_Number
public long Magic_Number()- Returns:
- the value of the
Magic_Number
field.
-
Flags
public short Flags()- Returns:
- the value of the
Flags
field.
-
Units_Per_EM
public short Units_Per_EM()- Returns:
- the value of the
Units_Per_EM
field.
-
Created
- Returns:
- a
CLongBuffer
view of theCreated
field.
-
Created
public long Created(int index) - Returns:
- the value at the specified index of the
Created
field.
-
Modified
- Returns:
- a
CLongBuffer
view of theModified
field.
-
Modified
public long Modified(int index) - Returns:
- the value at the specified index of the
Modified
field.
-
xMin
public short xMin()- Returns:
- the value of the
xMin
field.
-
yMin
public short yMin()- Returns:
- the value of the
yMin
field.
-
xMax
public short xMax()- Returns:
- the value of the
xMax
field.
-
yMax
public short yMax()- Returns:
- the value of the
yMax
field.
-
Mac_Style
public short Mac_Style()- Returns:
- the value of the
Mac_Style
field.
-
Lowest_Rec_PPEM
public short Lowest_Rec_PPEM()- Returns:
- the value of the
Lowest_Rec_PPEM
field.
-
Font_Direction
public short Font_Direction()- Returns:
- the value of the
Font_Direction
field.
-
Index_To_Loc_Format
public short Index_To_Loc_Format()- Returns:
- the value of the
Index_To_Loc_Format
field.
-
Glyph_Data_Format
public short Glyph_Data_Format()- Returns:
- the value of the
Glyph_Data_Format
field.
-
create
Returns a newTT_Header
instance for the specified memory address. -
createSafe
-
create
Create aTT_Header.Buffer
instance 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()
.
-