Package org.lwjgl.util.freetype
Class TT_HoriHeader.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<TT_HoriHeader.Buffer>
org.lwjgl.system.StructBuffer<TT_HoriHeader,TT_HoriHeader.Buffer>
org.lwjgl.util.freetype.TT_HoriHeader.Buffer
- All Implemented Interfaces:
Iterable<TT_HoriHeader>,Pointer
- Enclosing class:
TT_HoriHeader
An array of
TT_HoriHeader structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newTT_HoriHeader.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionshortshortAscender()shortshortshortshortshortLine_Gap()@Nullable ByteBufferlong_metrics(int capacity) shortshortshortshortReserved()shortReserved(int index) @Nullable ByteBuffershort_metrics(int capacity) longVersion()shortMethods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
-
Constructor Details
-
Buffer
Creates a newTT_HoriHeader.Bufferinstance backed by the specified container.Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by
TT_HoriHeader.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
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.
-