Package org.lwjgl.util.freetype
Class FT_Incremental_Metrics
- All Implemented Interfaces:
Pointer
struct FT_Incremental_MetricsRec {
FT_Long bearing_x;
FT_Long bearing_y;
FT_Long advance;
FT_Long advance_v;
}-
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 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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionFT_Incremental_Metrics(ByteBuffer container) Creates aFT_Incremental_Metricsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongadvance()longlonglongstatic FT_Incremental_Metricscreate(long address) Returns a newFT_Incremental_Metricsinstance for the specified memory address.create(long address, int capacity) Create aFT_Incremental_Metrics.Bufferinstance at the specified memory.static @Nullable FT_Incremental_MetricscreateSafe(long address) static @Nullable FT_Incremental_Metrics.BuffercreateSafe(long address, int capacity) static longnadvance(long struct) Unsafe version ofadvance().static longnadvance_v(long struct) Unsafe version ofadvance_v().static longnbearing_x(long struct) Unsafe version ofbearing_x().static longnbearing_y(long struct) Unsafe version ofbearing_y().intsizeof()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. -
BEARING_X
public static final int BEARING_XThe struct member offsets. -
BEARING_Y
public static final int BEARING_YThe struct member offsets. -
ADVANCE
public static final int ADVANCEThe struct member offsets. -
ADVANCE_V
public static final int ADVANCE_VThe struct member offsets.
-
-
Constructor Details
-
FT_Incremental_Metrics
Creates aFT_Incremental_Metricsinstance 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_Incremental_Metrics>
-
bearing_x
public long bearing_x()- Returns:
- the value of the
bearing_xfield.
-
bearing_y
public long bearing_y()- Returns:
- the value of the
bearing_yfield.
-
advance
public long advance()- Returns:
- the value of the
advancefield.
-
advance_v
public long advance_v()- Returns:
- the value of the
advance_vfield.
-
create
Returns a newFT_Incremental_Metricsinstance for the specified memory address. -
createSafe
-
create
Create aFT_Incremental_Metrics.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nbearing_x
public static long nbearing_x(long struct) Unsafe version ofbearing_x(). -
nbearing_y
public static long nbearing_y(long struct) Unsafe version ofbearing_y(). -
nadvance
public static long nadvance(long struct) Unsafe version ofadvance(). -
nadvance_v
public static long nadvance_v(long struct) Unsafe version ofadvance_v().
-