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.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 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 member offsets.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 member offsets.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 member offsets.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 member offsets.static final intThe struct size in bytes.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_GlyphSlot(ByteBuffer container) Creates aFT_GlyphSlotinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionadvance()bitmap()intintstatic FT_GlyphSlotcreate(long address) Returns a newFT_GlyphSlotinstance for the specified memory address.static FT_GlyphSlot.Buffercreate(long address, int capacity) Create aFT_GlyphSlot.Bufferinstance at the specified memory.static @Nullable FT_GlyphSlotcreateSafe(long address) static @Nullable FT_GlyphSlot.BuffercreateSafe(long address, int capacity) face()intformat()generic()intlonglibrary()longlonglongmetrics()static FT_Vectornadvance(long struct) Unsafe version ofadvance().static FT_Bitmapnbitmap(long struct) Unsafe version ofbitmap().static intnbitmap_left(long struct) Unsafe version ofbitmap_left().static intnbitmap_top(long struct) Unsafe version ofbitmap_top().static @Nullable ByteBufferncontrol_data(long struct) static longncontrol_len(long struct) @Nullable FT_GlyphSlotnext()static FT_Facenface(long struct) Unsafe version offace().static intnformat(long struct) Unsafe version offormat().static FT_Genericngeneric(long struct) Unsafe version ofgeneric().static intnglyph_index(long struct) Unsafe version ofglyph_index().static longninternal(long struct) static longnlibrary(long struct) Unsafe version oflibrary().static longnlinearHoriAdvance(long struct) Unsafe version oflinearHoriAdvance().static longnlinearVertAdvance(long struct) Unsafe version oflinearVertAdvance().static longnlsb_delta(long struct) Unsafe version oflsb_delta().static FT_Glyph_Metricsnmetrics(long struct) Unsafe version ofmetrics().static @Nullable FT_GlyphSlotnnext(long struct) Unsafe version ofnext().static intnnum_subglyphs(long struct) static longnother(long struct) static FT_Outlinenoutline(long struct) Unsafe version ofoutline().static longnrsb_delta(long struct) Unsafe version ofrsb_delta().static longnsubglyphs(long struct) outline()longintsizeof()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_GlyphSlotinstance 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_GlyphSlot>
-
library
public long library()- Returns:
- the value of the
libraryfield.
-
face
- Returns:
- a
FT_Faceview of the struct pointed to by thefacefield.
-
next
- Returns:
- a
FT_GlyphSlotview of the struct pointed to by thenextfield.
-
glyph_index
public int glyph_index()- Returns:
- the value of the
glyph_indexfield.
-
generic
- Returns:
- a
FT_Genericview of thegenericfield.
-
metrics
- Returns:
- a
FT_Glyph_Metricsview of themetricsfield.
-
linearHoriAdvance
public long linearHoriAdvance()- Returns:
- the value of the
linearHoriAdvancefield.
-
linearVertAdvance
public long linearVertAdvance()- Returns:
- the value of the
linearVertAdvancefield.
-
advance
- Returns:
- a
FT_Vectorview of theadvancefield.
-
format
public int format()- Returns:
- the value of the
formatfield.
-
bitmap
- Returns:
- a
FT_Bitmapview of thebitmapfield.
-
bitmap_left
public int bitmap_left()- Returns:
- the value of the
bitmap_leftfield.
-
bitmap_top
public int bitmap_top()- Returns:
- the value of the
bitmap_topfield.
-
outline
- Returns:
- a
FT_Outlineview of theoutlinefield.
-
lsb_delta
public long lsb_delta()- Returns:
- the value of the
lsb_deltafield.
-
rsb_delta
public long rsb_delta()- Returns:
- the value of the
rsb_deltafield.
-
create
Returns a newFT_GlyphSlotinstance for the specified memory address. -
createSafe
-
create
Create aFT_GlyphSlot.Bufferinstance 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)
-