Package org.lwjgl.util.freetype
Class FT_Glyph_Metrics
- All Implemented Interfaces:
Pointer
struct FT_Glyph_Metrics {
FT_Pos width;
FT_Pos height;
FT_Pos horiBearingX;
FT_Pos horiBearingY;
FT_Pos horiAdvance;
FT_Pos vertBearingX;
FT_Pos vertBearingY;
FT_Pos vertAdvance;
}
-
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 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionFT_Glyph_Metrics
(ByteBuffer container) Creates aFT_Glyph_Metrics
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_Glyph_Metrics
create
(long address) Returns a newFT_Glyph_Metrics
instance for the specified memory address.static FT_Glyph_Metrics.Buffer
create
(long address, int capacity) Create aFT_Glyph_Metrics.Buffer
instance at the specified memory.static @Nullable FT_Glyph_Metrics
createSafe
(long address) static @Nullable FT_Glyph_Metrics.Buffer
createSafe
(long address, int capacity) long
height()
long
long
long
static long
nheight
(long struct) Unsafe version ofheight()
.static long
nhoriAdvance
(long struct) Unsafe version ofhoriAdvance()
.static long
nhoriBearingX
(long struct) Unsafe version ofhoriBearingX()
.static long
nhoriBearingY
(long struct) Unsafe version ofhoriBearingY()
.static long
nvertAdvance
(long struct) Unsafe version ofvertAdvance()
.static long
nvertBearingX
(long struct) Unsafe version ofvertBearingX()
.static long
nvertBearingY
(long struct) Unsafe version ofvertBearingY()
.static long
nwidth
(long struct) Unsafe version ofwidth()
.int
sizeof()
Returnssizeof(struct)
.long
long
long
long
width()
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. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
HORIBEARINGX
public static final int HORIBEARINGXThe struct member offsets. -
HORIBEARINGY
public static final int HORIBEARINGYThe struct member offsets. -
HORIADVANCE
public static final int HORIADVANCEThe struct member offsets. -
VERTBEARINGX
public static final int VERTBEARINGXThe struct member offsets. -
VERTBEARINGY
public static final int VERTBEARINGYThe struct member offsets. -
VERTADVANCE
public static final int VERTADVANCEThe struct member offsets.
-
-
Constructor Details
-
FT_Glyph_Metrics
Creates aFT_Glyph_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_Glyph_Metrics>
-
width
public long width()- Returns:
- the value of the
width
field.
-
height
public long height()- Returns:
- the value of the
height
field.
-
horiBearingX
public long horiBearingX()- Returns:
- the value of the
horiBearingX
field.
-
horiBearingY
public long horiBearingY()- Returns:
- the value of the
horiBearingY
field.
-
horiAdvance
public long horiAdvance()- Returns:
- the value of the
horiAdvance
field.
-
vertBearingX
public long vertBearingX()- Returns:
- the value of the
vertBearingX
field.
-
vertBearingY
public long vertBearingY()- Returns:
- the value of the
vertBearingY
field.
-
vertAdvance
public long vertAdvance()- Returns:
- the value of the
vertAdvance
field.
-
create
Returns a newFT_Glyph_Metrics
instance for the specified memory address. -
createSafe
-
create
Create aFT_Glyph_Metrics.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nwidth
public static long nwidth(long struct) Unsafe version ofwidth()
. -
nheight
public static long nheight(long struct) Unsafe version ofheight()
. -
nhoriBearingX
public static long nhoriBearingX(long struct) Unsafe version ofhoriBearingX()
. -
nhoriBearingY
public static long nhoriBearingY(long struct) Unsafe version ofhoriBearingY()
. -
nhoriAdvance
public static long nhoriAdvance(long struct) Unsafe version ofhoriAdvance()
. -
nvertBearingX
public static long nvertBearingX(long struct) Unsafe version ofvertBearingX()
. -
nvertBearingY
public static long nvertBearingY(long struct) Unsafe version ofvertBearingY()
. -
nvertAdvance
public static long nvertAdvance(long struct) Unsafe version ofvertAdvance()
.
-