Package org.lwjgl.util.freetype
Class FT_GlyphSlot
- All Implemented Interfaces:
Pointer
struct FT_GlyphSlotRec {
FT_Library library;
{@link FT_Face FT_Face} face;
{@link FT_GlyphSlot FT_GlyphSlot} next;
FT_UInt glyph_index;
{@link FT_Generic FT_Generic} generic;
{@link FT_Glyph_Metrics FT_Glyph_Metrics} metrics;
FT_Fixed linearHoriAdvance;
FT_Fixed linearVertAdvance;
{@link FT_Vector FT_Vector} advance;
FT_Glyph_Format format;
{@link FT_Bitmap FT_Bitmap} bitmap;
FT_Int bitmap_left;
FT_Int bitmap_top;
{@link FT_Outline FT_Outline} outline;
FT_UInt num_subglyphs;
FT_SubGlyph subglyphs;
void * control_data;
long control_len;
FT_Pos lsb_delta;
FT_Pos rsb_delta;
void * other;
FT_Slot_Internal internal;
}
-
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 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 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 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 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 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionFT_GlyphSlot
(ByteBuffer container) Creates aFT_GlyphSlot
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionadvance()
bitmap()
int
int
static FT_GlyphSlot
create
(long address) Returns a newFT_GlyphSlot
instance for the specified memory address.static FT_GlyphSlot.Buffer
create
(long address, int capacity) Create aFT_GlyphSlot.Buffer
instance at the specified memory.static @Nullable FT_GlyphSlot
createSafe
(long address) static @Nullable FT_GlyphSlot.Buffer
createSafe
(long address, int capacity) face()
int
format()
generic()
int
long
library()
long
long
long
metrics()
static FT_Vector
nadvance
(long struct) Unsafe version ofadvance()
.static FT_Bitmap
nbitmap
(long struct) Unsafe version ofbitmap()
.static int
nbitmap_left
(long struct) Unsafe version ofbitmap_left()
.static int
nbitmap_top
(long struct) Unsafe version ofbitmap_top()
.static @Nullable ByteBuffer
ncontrol_data
(long struct) static long
ncontrol_len
(long struct) @Nullable FT_GlyphSlot
next()
static FT_Face
nface
(long struct) Unsafe version offace()
.static int
nformat
(long struct) Unsafe version offormat()
.static FT_Generic
ngeneric
(long struct) Unsafe version ofgeneric()
.static int
nglyph_index
(long struct) Unsafe version ofglyph_index()
.static long
ninternal
(long struct) static long
nlibrary
(long struct) Unsafe version oflibrary()
.static long
nlinearHoriAdvance
(long struct) Unsafe version oflinearHoriAdvance()
.static long
nlinearVertAdvance
(long struct) Unsafe version oflinearVertAdvance()
.static long
nlsb_delta
(long struct) Unsafe version oflsb_delta()
.static FT_Glyph_Metrics
nmetrics
(long struct) Unsafe version ofmetrics()
.static @Nullable FT_GlyphSlot
nnext
(long struct) Unsafe version ofnext()
.static int
nnum_subglyphs
(long struct) static long
nother
(long struct) static FT_Outline
noutline
(long struct) Unsafe version ofoutline()
.static long
nrsb_delta
(long struct) Unsafe version ofrsb_delta()
.static long
nsubglyphs
(long struct) outline()
long
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. -
LIBRARY
public static final int LIBRARYThe struct member offsets. -
FACE
public static final int FACEThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets. -
GLYPH_INDEX
public static final int GLYPH_INDEXThe struct member offsets. -
GENERIC
public static final int GENERICThe struct member offsets. -
METRICS
public static final int METRICSThe struct member offsets. -
LINEARHORIADVANCE
public static final int LINEARHORIADVANCEThe struct member offsets. -
LINEARVERTADVANCE
public static final int LINEARVERTADVANCEThe struct member offsets. -
ADVANCE
public static final int ADVANCEThe struct member offsets. -
FORMAT
public static final int FORMATThe struct member offsets. -
BITMAP
public static final int BITMAPThe struct member offsets. -
BITMAP_LEFT
public static final int BITMAP_LEFTThe struct member offsets. -
BITMAP_TOP
public static final int BITMAP_TOPThe struct member offsets. -
OUTLINE
public static final int OUTLINEThe struct member offsets. -
NUM_SUBGLYPHS
public static final int NUM_SUBGLYPHSThe struct member offsets. -
SUBGLYPHS
public static final int SUBGLYPHSThe struct member offsets. -
CONTROL_DATA
public static final int CONTROL_DATAThe struct member offsets. -
CONTROL_LEN
public static final int CONTROL_LENThe struct member offsets. -
LSB_DELTA
public static final int LSB_DELTAThe struct member offsets. -
RSB_DELTA
public static final int RSB_DELTAThe struct member offsets. -
OTHER
public static final int OTHERThe struct member offsets. -
INTERNAL
public static final int INTERNALThe struct member offsets.
-
-
Constructor Details
-
FT_GlyphSlot
Creates aFT_GlyphSlot
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_GlyphSlot>
-
library
public long library()- Returns:
- the value of the
library
field.
-
face
- Returns:
- a
FT_Face
view of the struct pointed to by theface
field.
-
next
- Returns:
- a
FT_GlyphSlot
view of the struct pointed to by thenext
field.
-
glyph_index
public int glyph_index()- Returns:
- the value of the
glyph_index
field.
-
generic
- Returns:
- a
FT_Generic
view of thegeneric
field.
-
metrics
- Returns:
- a
FT_Glyph_Metrics
view of themetrics
field.
-
linearHoriAdvance
public long linearHoriAdvance()- Returns:
- the value of the
linearHoriAdvance
field.
-
linearVertAdvance
public long linearVertAdvance()- Returns:
- the value of the
linearVertAdvance
field.
-
advance
- Returns:
- a
FT_Vector
view of theadvance
field.
-
format
public int format()- Returns:
- the value of the
format
field.
-
bitmap
- Returns:
- a
FT_Bitmap
view of thebitmap
field.
-
bitmap_left
public int bitmap_left()- Returns:
- the value of the
bitmap_left
field.
-
bitmap_top
public int bitmap_top()- Returns:
- the value of the
bitmap_top
field.
-
outline
- Returns:
- a
FT_Outline
view of theoutline
field.
-
lsb_delta
public long lsb_delta()- Returns:
- the value of the
lsb_delta
field.
-
rsb_delta
public long rsb_delta()- Returns:
- the value of the
rsb_delta
field.
-
create
Returns a newFT_GlyphSlot
instance for the specified memory address. -
createSafe
-
create
Create aFT_GlyphSlot.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nlibrary
public static long nlibrary(long struct) Unsafe version oflibrary()
. -
nface
Unsafe version offace()
. -
nnext
Unsafe version ofnext()
. -
nglyph_index
public static int nglyph_index(long struct) Unsafe version ofglyph_index()
. -
ngeneric
Unsafe version ofgeneric()
. -
nmetrics
Unsafe version ofmetrics()
. -
nlinearHoriAdvance
public static long nlinearHoriAdvance(long struct) Unsafe version oflinearHoriAdvance()
. -
nlinearVertAdvance
public static long nlinearVertAdvance(long struct) Unsafe version oflinearVertAdvance()
. -
nadvance
Unsafe version ofadvance()
. -
nformat
public static int nformat(long struct) Unsafe version offormat()
. -
nbitmap
Unsafe version ofbitmap()
. -
nbitmap_left
public static int nbitmap_left(long struct) Unsafe version ofbitmap_left()
. -
nbitmap_top
public static int nbitmap_top(long struct) Unsafe version ofbitmap_top()
. -
noutline
Unsafe version ofoutline()
. -
nnum_subglyphs
public static int nnum_subglyphs(long struct) -
nsubglyphs
public static long nsubglyphs(long struct) -
ncontrol_data
-
ncontrol_len
public static long ncontrol_len(long struct) -
nlsb_delta
public static long nlsb_delta(long struct) Unsafe version oflsb_delta()
. -
nrsb_delta
public static long nrsb_delta(long struct) Unsafe version ofrsb_delta()
. -
nother
public static long nother(long struct) -
ninternal
public static long ninternal(long struct)
-