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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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 size 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.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_Metricsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_Glyph_Metricscreate(long address) Returns a newFT_Glyph_Metricsinstance for the specified memory address.static FT_Glyph_Metrics.Buffercreate(long address, int capacity) Create aFT_Glyph_Metrics.Bufferinstance at the specified memory.static @Nullable FT_Glyph_MetricscreateSafe(long address) static @Nullable FT_Glyph_Metrics.BuffercreateSafe(long address, int capacity) longheight()longlonglongstatic longnheight(long struct) Unsafe version ofheight().static longnhoriAdvance(long struct) Unsafe version ofhoriAdvance().static longnhoriBearingX(long struct) Unsafe version ofhoriBearingX().static longnhoriBearingY(long struct) Unsafe version ofhoriBearingY().static longnvertAdvance(long struct) Unsafe version ofvertAdvance().static longnvertBearingX(long struct) Unsafe version ofvertBearingX().static longnvertBearingY(long struct) Unsafe version ofvertBearingY().static longnwidth(long struct) Unsafe version ofwidth().intsizeof()Returnssizeof(struct).longlonglonglongwidth()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_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_Glyph_Metrics>
-
width
public long width()- Returns:
- the value of the
widthfield.
-
height
public long height()- Returns:
- the value of the
heightfield.
-
horiBearingX
public long horiBearingX()- Returns:
- the value of the
horiBearingXfield.
-
horiBearingY
public long horiBearingY()- Returns:
- the value of the
horiBearingYfield.
-
horiAdvance
public long horiAdvance()- Returns:
- the value of the
horiAdvancefield.
-
vertBearingX
public long vertBearingX()- Returns:
- the value of the
vertBearingXfield.
-
vertBearingY
public long vertBearingY()- Returns:
- the value of the
vertBearingYfield.
-
vertAdvance
public long vertAdvance()- Returns:
- the value of the
vertAdvancefield.
-
create
Returns a newFT_Glyph_Metricsinstance for the specified memory address. -
createSafe
-
create
Create aFT_Glyph_Metrics.Bufferinstance 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().
-