Package org.lwjgl.util.freetype
Class TT_HoriHeader
- All Implemented Interfaces:
Pointer
struct TT_HoriHeader {
FT_Fixed Version;
FT_Short Ascender;
FT_Short Descender;
FT_Short Line_Gap;
FT_UShort advance_Width_Max;
FT_Short min_Left_Side_Bearing;
FT_Short min_Right_Side_Bearing;
FT_Short xMax_Extent;
FT_Short caret_Slope_Rise;
FT_Short caret_Slope_Run;
FT_Short caret_Offset;
FT_Short Reserved[4];
FT_Short metric_Data_Format;
FT_UShort number_Of_HMetrics;
void * long_metrics;
void * short_metrics;
}-
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 member offsets.static 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 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
ConstructorsConstructorDescriptionTT_HoriHeader(ByteBuffer container) Creates aTT_HoriHeaderinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionshortshortAscender()shortshortshortstatic TT_HoriHeadercreate(long address) Returns a newTT_HoriHeaderinstance for the specified memory address.static TT_HoriHeader.Buffercreate(long address, int capacity) Create aTT_HoriHeader.Bufferinstance at the specified memory.static @Nullable TT_HoriHeadercreateSafe(long address) static @Nullable TT_HoriHeader.BuffercreateSafe(long address, int capacity) shortshortLine_Gap()@Nullable ByteBufferlong_metrics(int capacity) shortshortshortstatic shortnadvance_Width_Max(long struct) Unsafe version ofadvance_Width_Max().static shortnAscender(long struct) Unsafe version ofAscender().static shortncaret_Offset(long struct) Unsafe version ofcaret_Offset().static shortncaret_Slope_Rise(long struct) Unsafe version ofcaret_Slope_Rise().static shortncaret_Slope_Run(long struct) Unsafe version ofcaret_Slope_Run().static shortnDescender(long struct) Unsafe version ofDescender().static shortnLine_Gap(long struct) Unsafe version ofLine_Gap().static @Nullable ByteBuffernlong_metrics(long struct, int capacity) Unsafe version oflong_metrics.static shortnmetric_Data_Format(long struct) Unsafe version ofmetric_Data_Format().static shortnmin_Left_Side_Bearing(long struct) Unsafe version ofmin_Left_Side_Bearing().static shortnmin_Right_Side_Bearing(long struct) Unsafe version ofmin_Right_Side_Bearing().static shortnnumber_Of_HMetrics(long struct) Unsafe version ofnumber_Of_HMetrics().static ShortBuffernReserved(long struct) Unsafe version ofReserved().static shortnReserved(long struct, int index) Unsafe version ofReserved.static @Nullable ByteBuffernshort_metrics(long struct, int capacity) Unsafe version ofshort_metrics.shortstatic longnVersion(long struct) Unsafe version ofVersion().static shortnxMax_Extent(long struct) Unsafe version ofxMax_Extent().Reserved()shortReserved(int index) @Nullable ByteBuffershort_metrics(int capacity) intsizeof()Returnssizeof(struct).longVersion()shortMethods 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. -
VERSION
public static final int VERSIONThe struct member offsets. -
ASCENDER
public static final int ASCENDERThe struct member offsets. -
DESCENDER
public static final int DESCENDERThe struct member offsets. -
LINE_GAP
public static final int LINE_GAPThe struct member offsets. -
ADVANCE_WIDTH_MAX
public static final int ADVANCE_WIDTH_MAXThe struct member offsets. -
MIN_LEFT_SIDE_BEARING
public static final int MIN_LEFT_SIDE_BEARINGThe struct member offsets. -
MIN_RIGHT_SIDE_BEARING
public static final int MIN_RIGHT_SIDE_BEARINGThe struct member offsets. -
XMAX_EXTENT
public static final int XMAX_EXTENTThe struct member offsets. -
CARET_SLOPE_RISE
public static final int CARET_SLOPE_RISEThe struct member offsets. -
CARET_SLOPE_RUN
public static final int CARET_SLOPE_RUNThe struct member offsets. -
CARET_OFFSET
public static final int CARET_OFFSETThe struct member offsets. -
RESERVED
public static final int RESERVEDThe struct member offsets. -
METRIC_DATA_FORMAT
public static final int METRIC_DATA_FORMATThe struct member offsets. -
NUMBER_OF_HMETRICS
public static final int NUMBER_OF_HMETRICSThe struct member offsets. -
LONG_METRICS
public static final int LONG_METRICSThe struct member offsets. -
SHORT_METRICS
public static final int SHORT_METRICSThe struct member offsets.
-
-
Constructor Details
-
TT_HoriHeader
Creates aTT_HoriHeaderinstance 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<TT_HoriHeader>
-
Version
public long Version()- Returns:
- the value of the
Versionfield.
-
Ascender
public short Ascender()- Returns:
- the value of the
Ascenderfield.
-
Descender
public short Descender()- Returns:
- the value of the
Descenderfield.
-
Line_Gap
public short Line_Gap()- Returns:
- the value of the
Line_Gapfield.
-
advance_Width_Max
public short advance_Width_Max()- Returns:
- the value of the
advance_Width_Maxfield.
-
min_Left_Side_Bearing
public short min_Left_Side_Bearing()- Returns:
- the value of the
min_Left_Side_Bearingfield.
-
min_Right_Side_Bearing
public short min_Right_Side_Bearing()- Returns:
- the value of the
min_Right_Side_Bearingfield.
-
xMax_Extent
public short xMax_Extent()- Returns:
- the value of the
xMax_Extentfield.
-
caret_Slope_Rise
public short caret_Slope_Rise()- Returns:
- the value of the
caret_Slope_Risefield.
-
caret_Slope_Run
public short caret_Slope_Run()- Returns:
- the value of the
caret_Slope_Runfield.
-
caret_Offset
public short caret_Offset()- Returns:
- the value of the
caret_Offsetfield.
-
Reserved
- Returns:
- a
ShortBufferview of theReservedfield.
-
Reserved
public short Reserved(int index) - Returns:
- the value at the specified index of the
Reservedfield.
-
metric_Data_Format
public short metric_Data_Format()- Returns:
- the value of the
metric_Data_Formatfield.
-
number_Of_HMetrics
public short number_Of_HMetrics()- Returns:
- the value of the
number_Of_HMetricsfield.
-
long_metrics
- Returns:
- a
ByteBufferview of the data pointed to by thelong_metricsfield.
-
short_metrics
- Returns:
- a
ByteBufferview of the data pointed to by theshort_metricsfield.
-
create
Returns a newTT_HoriHeaderinstance for the specified memory address. -
createSafe
-
create
Create aTT_HoriHeader.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nVersion
public static long nVersion(long struct) Unsafe version ofVersion(). -
nAscender
public static short nAscender(long struct) Unsafe version ofAscender(). -
nDescender
public static short nDescender(long struct) Unsafe version ofDescender(). -
nLine_Gap
public static short nLine_Gap(long struct) Unsafe version ofLine_Gap(). -
nadvance_Width_Max
public static short nadvance_Width_Max(long struct) Unsafe version ofadvance_Width_Max(). -
nmin_Left_Side_Bearing
public static short nmin_Left_Side_Bearing(long struct) Unsafe version ofmin_Left_Side_Bearing(). -
nmin_Right_Side_Bearing
public static short nmin_Right_Side_Bearing(long struct) Unsafe version ofmin_Right_Side_Bearing(). -
nxMax_Extent
public static short nxMax_Extent(long struct) Unsafe version ofxMax_Extent(). -
ncaret_Slope_Rise
public static short ncaret_Slope_Rise(long struct) Unsafe version ofcaret_Slope_Rise(). -
ncaret_Slope_Run
public static short ncaret_Slope_Run(long struct) Unsafe version ofcaret_Slope_Run(). -
ncaret_Offset
public static short ncaret_Offset(long struct) Unsafe version ofcaret_Offset(). -
nReserved
Unsafe version ofReserved(). -
nReserved
public static short nReserved(long struct, int index) Unsafe version ofReserved. -
nmetric_Data_Format
public static short nmetric_Data_Format(long struct) Unsafe version ofmetric_Data_Format(). -
nnumber_Of_HMetrics
public static short nnumber_Of_HMetrics(long struct) Unsafe version ofnumber_Of_HMetrics(). -
nlong_metrics
Unsafe version oflong_metrics. -
nshort_metrics
Unsafe version ofshort_metrics.
-