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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct member offsets.static final int
The struct member offsets.static 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 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_Metrics
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionlong
advance()
long
long
long
static FT_Incremental_Metrics
create
(long address) Returns a newFT_Incremental_Metrics
instance for the specified memory address.create
(long address, int capacity) Create aFT_Incremental_Metrics.Buffer
instance at the specified memory.static @Nullable FT_Incremental_Metrics
createSafe
(long address) static @Nullable FT_Incremental_Metrics.Buffer
createSafe
(long address, int capacity) static long
nadvance
(long struct) Unsafe version ofadvance()
.static long
nadvance_v
(long struct) Unsafe version ofadvance_v()
.static long
nbearing_x
(long struct) Unsafe version ofbearing_x()
.static long
nbearing_y
(long struct) Unsafe version ofbearing_y()
.int
sizeof()
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_Metrics
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)
.- Specified by:
sizeof
in classStruct<FT_Incremental_Metrics>
-
bearing_x
public long bearing_x()- Returns:
- the value of the
bearing_x
field.
-
bearing_y
public long bearing_y()- Returns:
- the value of the
bearing_y
field.
-
advance
public long advance()- Returns:
- the value of the
advance
field.
-
advance_v
public long advance_v()- Returns:
- the value of the
advance_v
field.
-
create
Returns a newFT_Incremental_Metrics
instance for the specified memory address. -
createSafe
-
create
Create aFT_Incremental_Metrics.Buffer
instance 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()
.
-