Top Description Inners Fields Constructors Methods
org.lwjgl.util.freetype

public Class FT_GlyphSlot

extends Struct<FT_GlyphSlot>
Class Inheritance
Annotations
@NativeType:struct FT_GlyphSlotRec
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

FreeType root glyph slot class structure. A glyph slot is a container where individual glyphs can be loaded, be they in outline or bitmap format.

Layout


struct FT_GlyphSlotRec {
    FT_Library library;
    FT_Face face;
    FT_GlyphSlot next;
    FT_UInt glyph_index;
    FT_Generic generic;
    FT_Glyph_Metrics metrics;
    FT_Fixed linearHoriAdvance;
    FT_Fixed linearVertAdvance;
    FT_Vector advance;
    FT_Glyph_Format format;
    FT_Bitmap bitmap;
    FT_Int bitmap_left;
    FT_Int bitmap_top;
    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 and Inner Type Summary

Modifier and TypeClass and Description
public static class
FT_GlyphSlot.Buffer

An array of FT_GlyphSlot structs.

Field Summary

Modifier and TypeField and Description
public static final int
ADVANCE

The struct member offsets.

public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BITMAP

The struct member offsets.

public static final int
BITMAP_LEFT

The struct member offsets.

public static final int
BITMAP_TOP

The struct member offsets.

public static final int
CONTROL_DATA

The struct member offsets.

public static final int
CONTROL_LEN

The struct member offsets.

public static final int
FACE

The struct member offsets.

public static final int
FORMAT

The struct member offsets.

public static final int
GENERIC

The struct member offsets.

public static final int
GLYPH_INDEX

The struct member offsets.

public static final int
INTERNAL

The struct member offsets.

public static final int
LIBRARY

The struct member offsets.

public static final int
LINEARHORIADVANCE

The struct member offsets.

public static final int
LINEARVERTADVANCE

The struct member offsets.

public static final int
LSB_DELTA

The struct member offsets.

public static final int
METRICS

The struct member offsets.

public static final int
NEXT

The struct member offsets.

public static final int
NUM_SUBGLYPHS

The struct member offsets.

public static final int
OTHER

The struct member offsets.

public static final int
OUTLINE

The struct member offsets.

public static final int
RSB_DELTA

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SUBGLYPHS

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
FT_GlyphSlot(long address, ByteBuffer container)

public
FT_GlyphSlot(ByteBuffer container)

Creates a FT_GlyphSlot instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public FT_Vector

Returns:

a FT_Vector view of the advance field.
advance
()

public FT_Bitmap

Returns:

a FT_Bitmap view of the bitmap field.
bitmap
()

public int

Returns:

the value of the bitmap_left field.
bitmap_left
()

public int

Returns:

the value of the bitmap_top field.
bitmap_top
()

protected FT_GlyphSlot
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static FT_GlyphSlot
create(long address)

Returns a new FT_GlyphSlot instance for the specified memory address.

public static FT_GlyphSlot.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a FT_GlyphSlot.Buffer instance at the specified memory.

public static FT_GlyphSlot
createSafe(long address)

Like create, but returns null if address is NULL.

public static FT_GlyphSlot.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public FT_Face

Returns:

a FT_Face view of the struct pointed to by the face field.
face
()

public int

Returns:

the value of the format field.
format
()

public FT_Generic

Returns:

a FT_Generic view of the generic field.
generic
()

public int

Returns:

the value of the glyph_index field.
glyph_index
()

public long

Returns:

the value of the library field.
library
()

public long

Returns:

the value of the linearHoriAdvance field.
linearHoriAdvance
()

public long

Returns:

the value of the linearVertAdvance field.
linearVertAdvance
()

public long

Returns:

the value of the lsb_delta field.
lsb_delta
()

public FT_Glyph_Metrics

Returns:

a FT_Glyph_Metrics view of the metrics field.
metrics
()

public static FT_Vector
nadvance(long struct)

Unsafe version of advance.

public static FT_Bitmap
nbitmap(long struct)

Unsafe version of bitmap.

public static int
nbitmap_left(long struct)

Unsafe version of bitmap_left.

public static int
nbitmap_top(long struct)

Unsafe version of bitmap_top.

public static ByteBuffer
ncontrol_data(long struct)

public static long
ncontrol_len(long struct)

public FT_GlyphSlot

Returns:

a FT_GlyphSlot view of the struct pointed to by the next field.
next
()

public static FT_Face
nface(long struct)

Unsafe version of face.

public static int
nformat(long struct)

Unsafe version of format.

public static FT_Generic
ngeneric(long struct)

Unsafe version of generic.

public static int
nglyph_index(long struct)

Unsafe version of glyph_index.

public static long
ninternal(long struct)

public static long
nlibrary(long struct)

Unsafe version of library.

public static long
nlinearHoriAdvance(long struct)

Unsafe version of linearHoriAdvance.

public static long
nlinearVertAdvance(long struct)

Unsafe version of linearVertAdvance.

public static long
nlsb_delta(long struct)

Unsafe version of lsb_delta.

public static FT_Glyph_Metrics
nmetrics(long struct)

Unsafe version of metrics.

public static FT_GlyphSlot
nnext(long struct)

Unsafe version of next.

public static int
nnum_subglyphs(long struct)

public static long
nother(long struct)

public static FT_Outline
noutline(long struct)

Unsafe version of outline.

public static long
nrsb_delta(long struct)

Unsafe version of rsb_delta.

public static long
nsubglyphs(long struct)

public FT_Outline

Returns:

a FT_Outline view of the outline field.
outline
()

public long

Returns:

the value of the rsb_delta field.
rsb_delta
()

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ADVANCEback to summary
public static final int ADVANCE

The struct member offsets.

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

BITMAPback to summary
public static final int BITMAP

The struct member offsets.

BITMAP_LEFTback to summary
public static final int BITMAP_LEFT

The struct member offsets.

BITMAP_TOPback to summary
public static final int BITMAP_TOP

The struct member offsets.

CONTROL_DATAback to summary
public static final int CONTROL_DATA

The struct member offsets.

CONTROL_LENback to summary
public static final int CONTROL_LEN

The struct member offsets.

FACEback to summary
public static final int FACE

The struct member offsets.

FORMATback to summary
public static final int FORMAT

The struct member offsets.

GENERICback to summary
public static final int GENERIC

The struct member offsets.

GLYPH_INDEXback to summary
public static final int GLYPH_INDEX

The struct member offsets.

INTERNALback to summary
public static final int INTERNAL

The struct member offsets.

LIBRARYback to summary
public static final int LIBRARY

The struct member offsets.

LINEARHORIADVANCEback to summary
public static final int LINEARHORIADVANCE

The struct member offsets.

LINEARVERTADVANCEback to summary
public static final int LINEARVERTADVANCE

The struct member offsets.

LSB_DELTAback to summary
public static final int LSB_DELTA

The struct member offsets.

METRICSback to summary
public static final int METRICS

The struct member offsets.

NEXTback to summary
public static final int NEXT

The struct member offsets.

NUM_SUBGLYPHSback to summary
public static final int NUM_SUBGLYPHS

The struct member offsets.

OTHERback to summary
public static final int OTHER

The struct member offsets.

OUTLINEback to summary
public static final int OUTLINE

The struct member offsets.

RSB_DELTAback to summary
public static final int RSB_DELTA

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

SUBGLYPHSback to summary
public static final int SUBGLYPHS

The struct member offsets.

Constructor Detail

FT_GlyphSlotback to summary
protected FT_GlyphSlot(long address, ByteBuffer container)
FT_GlyphSlotback to summary
public FT_GlyphSlot(ByteBuffer container)

Creates a FT_GlyphSlot instance at the current position of the specified ByteBuffer 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 Detail

advanceback to summary
public FT_Vector advance()
Returns:FT_Vector

a FT_Vector view of the advance field.

bitmapback to summary
public FT_Bitmap bitmap()
Returns:FT_Bitmap

a FT_Bitmap view of the bitmap field.

bitmap_leftback to summary
public int bitmap_left()
Returns:int

the value of the bitmap_left field.

Annotations
@NativeType:FT_Int
bitmap_topback to summary
public int bitmap_top()
Returns:int

the value of the bitmap_top field.

Annotations
@NativeType:FT_Int
createback to summary
protected FT_GlyphSlot create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static FT_GlyphSlot create(long address)

Returns a new FT_GlyphSlot instance for the specified memory address.

createback to summary
public static FT_GlyphSlot.Buffer create(long address, int capacity)

Create a FT_GlyphSlot.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static FT_GlyphSlot createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static FT_GlyphSlot.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
faceback to summary
public FT_Face face()
Returns:FT_Face

a FT_Face view of the struct pointed to by the face field.

formatback to summary
public int format()
Returns:int

the value of the format field.

Annotations
@NativeType:FT_Glyph_Format
genericback to summary
public FT_Generic generic()
Returns:FT_Generic

a FT_Generic view of the generic field.

glyph_indexback to summary
public int glyph_index()
Returns:int

the value of the glyph_index field.

Annotations
@NativeType:FT_UInt
libraryback to summary
public long library()
Returns:long

the value of the library field.

Annotations
@NativeType:FT_Library
linearHoriAdvanceback to summary
public long linearHoriAdvance()
Returns:long

the value of the linearHoriAdvance field.

Annotations
@NativeType:FT_Fixed
linearVertAdvanceback to summary
public long linearVertAdvance()
Returns:long

the value of the linearVertAdvance field.

Annotations
@NativeType:FT_Fixed
lsb_deltaback to summary
public long lsb_delta()
Returns:long

the value of the lsb_delta field.

Annotations
@NativeType:FT_Pos
metricsback to summary
public FT_Glyph_Metrics metrics()
Returns:FT_Glyph_Metrics

a FT_Glyph_Metrics view of the metrics field.

nadvanceback to summary
public static FT_Vector nadvance(long struct)

Unsafe version of advance.

nbitmapback to summary
public static FT_Bitmap nbitmap(long struct)

Unsafe version of bitmap.

nbitmap_leftback to summary
public static int nbitmap_left(long struct)

Unsafe version of bitmap_left.

nbitmap_topback to summary
public static int nbitmap_top(long struct)

Unsafe version of bitmap_top.

ncontrol_databack to summary
public static ByteBuffer ncontrol_data(long struct)
Annotations
@Nullable
ncontrol_lenback to summary
public static long ncontrol_len(long struct)
nextback to summary
public FT_GlyphSlot next()
Returns:FT_GlyphSlot

a FT_GlyphSlot view of the struct pointed to by the next field.

Annotations
@Nullable
nfaceback to summary
public static FT_Face nface(long struct)

Unsafe version of face.

nformatback to summary
public static int nformat(long struct)

Unsafe version of format.

ngenericback to summary
public static FT_Generic ngeneric(long struct)

Unsafe version of generic.

nglyph_indexback to summary
public static int nglyph_index(long struct)

Unsafe version of glyph_index.

ninternalback to summary
public static long ninternal(long struct)
nlibraryback to summary
public static long nlibrary(long struct)

Unsafe version of library.

nlinearHoriAdvanceback to summary
public static long nlinearHoriAdvance(long struct)

Unsafe version of linearHoriAdvance.

nlinearVertAdvanceback to summary
public static long nlinearVertAdvance(long struct)

Unsafe version of linearVertAdvance.

nlsb_deltaback to summary
public static long nlsb_delta(long struct)

Unsafe version of lsb_delta.

nmetricsback to summary
public static FT_Glyph_Metrics nmetrics(long struct)

Unsafe version of metrics.

nnextback to summary
public static FT_GlyphSlot nnext(long struct)

Unsafe version of next.

Annotations
@Nullable
nnum_subglyphsback to summary
public static int nnum_subglyphs(long struct)
notherback to summary
public static long nother(long struct)
noutlineback to summary
public static FT_Outline noutline(long struct)

Unsafe version of outline.

nrsb_deltaback to summary
public static long nrsb_delta(long struct)

Unsafe version of rsb_delta.

nsubglyphsback to summary
public static long nsubglyphs(long struct)
outlineback to summary
public FT_Outline outline()
Returns:FT_Outline

a FT_Outline view of the outline field.

rsb_deltaback to summary
public long rsb_delta()
Returns:long

the value of the rsb_delta field.

Annotations
@NativeType:FT_Pos
sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
org.lwjgl.util.freetype back to summary

public Class FT_GlyphSlot.Buffer

extends StructBuffer<FT_GlyphSlot, FT_GlyphSlot.Buffer>
Class Inheritance

An array of FT_GlyphSlot structs.

Field Summary

Modifier and TypeField and Description
private static final FT_GlyphSlot

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new FT_GlyphSlot.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public FT_Vector

Returns:

a FT_Vector view of the advance field.
advance
()

public FT_Bitmap

Returns:

a FT_Bitmap view of the bitmap field.
bitmap
()

public int

Returns:

the value of the bitmap_left field.
bitmap_left
()

public int

Returns:

the value of the bitmap_top field.
bitmap_top
()

public FT_Face

Returns:

a FT_Face view of the struct pointed to by the face field.
face
()

public int

Returns:

the value of the format field.
format
()

public FT_Generic

Returns:

a FT_Generic view of the generic field.
generic
()

protected FT_GlyphSlot
public int

Returns:

the value of the glyph_index field.
glyph_index
()

public long

Returns:

the value of the library field.
library
()

public long

Returns:

the value of the linearHoriAdvance field.
linearHoriAdvance
()

public long

Returns:

the value of the linearVertAdvance field.
linearVertAdvance
()

public long

Returns:

the value of the lsb_delta field.
lsb_delta
()

public FT_Glyph_Metrics

Returns:

a FT_Glyph_Metrics view of the metrics field.
metrics
()

public FT_GlyphSlot

Returns:

a FT_GlyphSlot view of the struct pointed to by the next field.
next
()

public FT_Outline

Returns:

a FT_Outline view of the outline field.
outline
()

public long

Returns:

the value of the rsb_delta field.
rsb_delta
()

protected FT_GlyphSlot.Buffer
Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final FT_GlyphSlot ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new FT_GlyphSlot.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by FT_GlyphSlot#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

advanceback to summary
public FT_Vector advance()
Returns:FT_Vector

a FT_Vector view of the advance field.

bitmapback to summary
public FT_Bitmap bitmap()
Returns:FT_Bitmap

a FT_Bitmap view of the bitmap field.

bitmap_leftback to summary
public int bitmap_left()
Returns:int

the value of the bitmap_left field.

Annotations
@NativeType:FT_Int
bitmap_topback to summary
public int bitmap_top()
Returns:int

the value of the bitmap_top field.

Annotations
@NativeType:FT_Int
faceback to summary
public FT_Face face()
Returns:FT_Face

a FT_Face view of the struct pointed to by the face field.

formatback to summary
public int format()
Returns:int

the value of the format field.

Annotations
@NativeType:FT_Glyph_Format
genericback to summary
public FT_Generic generic()
Returns:FT_Generic

a FT_Generic view of the generic field.

getElementFactoryback to summary
protected FT_GlyphSlot getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
glyph_indexback to summary
public int glyph_index()
Returns:int

the value of the glyph_index field.

Annotations
@NativeType:FT_UInt
libraryback to summary
public long library()
Returns:long

the value of the library field.

Annotations
@NativeType:FT_Library
linearHoriAdvanceback to summary
public long linearHoriAdvance()
Returns:long

the value of the linearHoriAdvance field.

Annotations
@NativeType:FT_Fixed
linearVertAdvanceback to summary
public long linearVertAdvance()
Returns:long

the value of the linearVertAdvance field.

Annotations
@NativeType:FT_Fixed
lsb_deltaback to summary
public long lsb_delta()
Returns:long

the value of the lsb_delta field.

Annotations
@NativeType:FT_Pos
metricsback to summary
public FT_Glyph_Metrics metrics()
Returns:FT_Glyph_Metrics

a FT_Glyph_Metrics view of the metrics field.

nextback to summary
public FT_GlyphSlot next()
Returns:FT_GlyphSlot

a FT_GlyphSlot view of the struct pointed to by the next field.

Annotations
@Nullable
outlineback to summary
public FT_Outline outline()
Returns:FT_Outline

a FT_Outline view of the outline field.

rsb_deltaback to summary
public long rsb_delta()
Returns:long

the value of the rsb_delta field.

Annotations
@NativeType:FT_Pos
selfback to summary
protected FT_GlyphSlot.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override