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

public Class TT_MaxProfile

extends Struct<TT_MaxProfile>
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

The maximum profile (maxp) table contains many max values, which can be used to pre-allocate arrays for speeding up glyph loading and hinting.

Layout


struct TT_MaxProfile {
    FT_Fixed version;
    FT_UShort numGlyphs;
    FT_UShort maxPoints;
    FT_UShort maxContours;
    FT_UShort maxCompositePoints;
    FT_UShort maxCompositeContours;
    FT_UShort maxZones;
    FT_UShort maxTwilightPoints;
    FT_UShort maxStorage;
    FT_UShort maxFunctionDefs;
    FT_UShort maxInstructionDefs;
    FT_UShort maxStackElements;
    FT_UShort maxSizeOfInstructions;
    FT_UShort maxComponentElements;
    FT_UShort maxComponentDepth;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
TT_MaxProfile.Buffer

An array of TT_MaxProfile structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
MAXCOMPONENTDEPTH

The struct member offsets.

public static final int
MAXCOMPONENTELEMENTS

The struct member offsets.

public static final int
MAXCOMPOSITECONTOURS

The struct member offsets.

public static final int
MAXCOMPOSITEPOINTS

The struct member offsets.

public static final int
MAXCONTOURS

The struct member offsets.

public static final int
MAXFUNCTIONDEFS

The struct member offsets.

public static final int
MAXINSTRUCTIONDEFS

The struct member offsets.

public static final int
MAXPOINTS

The struct member offsets.

public static final int
MAXSIZEOFINSTRUCTIONS

The struct member offsets.

public static final int
MAXSTACKELEMENTS

The struct member offsets.

public static final int
MAXSTORAGE

The struct member offsets.

public static final int
MAXTWILIGHTPOINTS

The struct member offsets.

public static final int
MAXZONES

The struct member offsets.

public static final int
NUMGLYPHS

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
VERSION

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
TT_MaxProfile(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
protected TT_MaxProfile
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 TT_MaxProfile
create(long address)

Returns a new TT_MaxProfile instance for the specified memory address.

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

Create a TT_MaxProfile.Buffer instance at the specified memory.

public static TT_MaxProfile
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public short

Returns:

the value of the maxComponentDepth field.
maxComponentDepth
()

public short

Returns:

the value of the maxComponentElements field.
maxComponentElements
()

public short

Returns:

the value of the maxCompositeContours field.
maxCompositeContours
()

public short

Returns:

the value of the maxCompositePoints field.
maxCompositePoints
()

public short

Returns:

the value of the maxContours field.
maxContours
()

public short

Returns:

the value of the maxFunctionDefs field.
maxFunctionDefs
()

public short

Returns:

the value of the maxInstructionDefs field.
maxInstructionDefs
()

public short

Returns:

the value of the maxPoints field.
maxPoints
()

public short

Returns:

the value of the maxSizeOfInstructions field.
maxSizeOfInstructions
()

public short

Returns:

the value of the maxStackElements field.
maxStackElements
()

public short

Returns:

the value of the maxStorage field.
maxStorage
()

public short

Returns:

the value of the maxTwilightPoints field.
maxTwilightPoints
()

public short

Returns:

the value of the maxZones field.
maxZones
()

public static short
nmaxComponentDepth(long struct)

Unsafe version of maxComponentDepth.

public static short
nmaxComponentElements(long struct)

Unsafe version of maxComponentElements.

public static short
nmaxCompositeContours(long struct)

Unsafe version of maxCompositeContours.

public static short
nmaxCompositePoints(long struct)

Unsafe version of maxCompositePoints.

public static short
nmaxContours(long struct)

Unsafe version of maxContours.

public static short
nmaxFunctionDefs(long struct)

Unsafe version of maxFunctionDefs.

public static short
nmaxInstructionDefs(long struct)

Unsafe version of maxInstructionDefs.

public static short
nmaxPoints(long struct)

Unsafe version of maxPoints.

public static short
nmaxSizeOfInstructions(long struct)

Unsafe version of maxSizeOfInstructions.

public static short
nmaxStackElements(long struct)

Unsafe version of maxStackElements.

public static short
nmaxStorage(long struct)

Unsafe version of maxStorage.

public static short
nmaxTwilightPoints(long struct)

Unsafe version of maxTwilightPoints.

public static short
nmaxZones(long struct)

Unsafe version of maxZones.

public static short
nnumGlyphs(long struct)

Unsafe version of numGlyphs.

public short

Returns:

the value of the numGlyphs field.
numGlyphs
()

public static long
nversion(long struct)

Unsafe version of version.

public int
sizeof()

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

Returns sizeof(struct).
public long

Returns:

the value of the version field.
version
()

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

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

MAXCOMPONENTDEPTHback to summary
public static final int MAXCOMPONENTDEPTH

The struct member offsets.

MAXCOMPONENTELEMENTSback to summary
public static final int MAXCOMPONENTELEMENTS

The struct member offsets.

MAXCOMPOSITECONTOURSback to summary
public static final int MAXCOMPOSITECONTOURS

The struct member offsets.

MAXCOMPOSITEPOINTSback to summary
public static final int MAXCOMPOSITEPOINTS

The struct member offsets.

MAXCONTOURSback to summary
public static final int MAXCONTOURS

The struct member offsets.

MAXFUNCTIONDEFSback to summary
public static final int MAXFUNCTIONDEFS

The struct member offsets.

MAXINSTRUCTIONDEFSback to summary
public static final int MAXINSTRUCTIONDEFS

The struct member offsets.

MAXPOINTSback to summary
public static final int MAXPOINTS

The struct member offsets.

MAXSIZEOFINSTRUCTIONSback to summary
public static final int MAXSIZEOFINSTRUCTIONS

The struct member offsets.

MAXSTACKELEMENTSback to summary
public static final int MAXSTACKELEMENTS

The struct member offsets.

MAXSTORAGEback to summary
public static final int MAXSTORAGE

The struct member offsets.

MAXTWILIGHTPOINTSback to summary
public static final int MAXTWILIGHTPOINTS

The struct member offsets.

MAXZONESback to summary
public static final int MAXZONES

The struct member offsets.

NUMGLYPHSback to summary
public static final int NUMGLYPHS

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

VERSIONback to summary
public static final int VERSION

The struct member offsets.

Constructor Detail

TT_MaxProfileback to summary
protected TT_MaxProfile(long address, ByteBuffer container)
TT_MaxProfileback to summary
public TT_MaxProfile(ByteBuffer container)

Creates a TT_MaxProfile 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

createback to summary
protected TT_MaxProfile 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 TT_MaxProfile create(long address)

Returns a new TT_MaxProfile instance for the specified memory address.

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

Create a TT_MaxProfile.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static TT_MaxProfile createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

Annotations
@Nullable
maxComponentDepthback to summary
public short maxComponentDepth()
Returns:short

the value of the maxComponentDepth field.

Annotations
@NativeType:FT_UShort
maxComponentElementsback to summary
public short maxComponentElements()
Returns:short

the value of the maxComponentElements field.

Annotations
@NativeType:FT_UShort
maxCompositeContoursback to summary
public short maxCompositeContours()
Returns:short

the value of the maxCompositeContours field.

Annotations
@NativeType:FT_UShort
maxCompositePointsback to summary
public short maxCompositePoints()
Returns:short

the value of the maxCompositePoints field.

Annotations
@NativeType:FT_UShort
maxContoursback to summary
public short maxContours()
Returns:short

the value of the maxContours field.

Annotations
@NativeType:FT_UShort
maxFunctionDefsback to summary
public short maxFunctionDefs()
Returns:short

the value of the maxFunctionDefs field.

Annotations
@NativeType:FT_UShort
maxInstructionDefsback to summary
public short maxInstructionDefs()
Returns:short

the value of the maxInstructionDefs field.

Annotations
@NativeType:FT_UShort
maxPointsback to summary
public short maxPoints()
Returns:short

the value of the maxPoints field.

Annotations
@NativeType:FT_UShort
maxSizeOfInstructionsback to summary
public short maxSizeOfInstructions()
Returns:short

the value of the maxSizeOfInstructions field.

Annotations
@NativeType:FT_UShort
maxStackElementsback to summary
public short maxStackElements()
Returns:short

the value of the maxStackElements field.

Annotations
@NativeType:FT_UShort
maxStorageback to summary
public short maxStorage()
Returns:short

the value of the maxStorage field.

Annotations
@NativeType:FT_UShort
maxTwilightPointsback to summary
public short maxTwilightPoints()
Returns:short

the value of the maxTwilightPoints field.

Annotations
@NativeType:FT_UShort
maxZonesback to summary
public short maxZones()
Returns:short

the value of the maxZones field.

Annotations
@NativeType:FT_UShort
nmaxComponentDepthback to summary
public static short nmaxComponentDepth(long struct)

Unsafe version of maxComponentDepth.

nmaxComponentElementsback to summary
public static short nmaxComponentElements(long struct)

Unsafe version of maxComponentElements.

nmaxCompositeContoursback to summary
public static short nmaxCompositeContours(long struct)

Unsafe version of maxCompositeContours.

nmaxCompositePointsback to summary
public static short nmaxCompositePoints(long struct)

Unsafe version of maxCompositePoints.

nmaxContoursback to summary
public static short nmaxContours(long struct)

Unsafe version of maxContours.

nmaxFunctionDefsback to summary
public static short nmaxFunctionDefs(long struct)

Unsafe version of maxFunctionDefs.

nmaxInstructionDefsback to summary
public static short nmaxInstructionDefs(long struct)

Unsafe version of maxInstructionDefs.

nmaxPointsback to summary
public static short nmaxPoints(long struct)

Unsafe version of maxPoints.

nmaxSizeOfInstructionsback to summary
public static short nmaxSizeOfInstructions(long struct)

Unsafe version of maxSizeOfInstructions.

nmaxStackElementsback to summary
public static short nmaxStackElements(long struct)

Unsafe version of maxStackElements.

nmaxStorageback to summary
public static short nmaxStorage(long struct)

Unsafe version of maxStorage.

nmaxTwilightPointsback to summary
public static short nmaxTwilightPoints(long struct)

Unsafe version of maxTwilightPoints.

nmaxZonesback to summary
public static short nmaxZones(long struct)

Unsafe version of maxZones.

nnumGlyphsback to summary
public static short nnumGlyphs(long struct)

Unsafe version of numGlyphs.

numGlyphsback to summary
public short numGlyphs()
Returns:short

the value of the numGlyphs field.

Annotations
@NativeType:FT_UShort
nversionback to summary
public static long nversion(long struct)

Unsafe version of version.

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
versionback to summary
public long version()
Returns:long

the value of the version field.

Annotations
@NativeType:FT_Fixed
org.lwjgl.util.freetype back to summary

public Class TT_MaxProfile.Buffer

extends StructBuffer<TT_MaxProfile, TT_MaxProfile.Buffer>
Class Inheritance

An array of TT_MaxProfile structs.

Field Summary

Modifier and TypeField and Description
private static final TT_MaxProfile

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new TT_MaxProfile.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
protected TT_MaxProfile
public short

Returns:

the value of the maxComponentDepth field.
maxComponentDepth
()

public short

Returns:

the value of the maxComponentElements field.
maxComponentElements
()

public short

Returns:

the value of the maxCompositeContours field.
maxCompositeContours
()

public short

Returns:

the value of the maxCompositePoints field.
maxCompositePoints
()

public short

Returns:

the value of the maxContours field.
maxContours
()

public short

Returns:

the value of the maxFunctionDefs field.
maxFunctionDefs
()

public short

Returns:

the value of the maxInstructionDefs field.
maxInstructionDefs
()

public short

Returns:

the value of the maxPoints field.
maxPoints
()

public short

Returns:

the value of the maxSizeOfInstructions field.
maxSizeOfInstructions
()

public short

Returns:

the value of the maxStackElements field.
maxStackElements
()

public short

Returns:

the value of the maxStorage field.
maxStorage
()

public short

Returns:

the value of the maxTwilightPoints field.
maxTwilightPoints
()

public short

Returns:

the value of the maxZones field.
maxZones
()

public short

Returns:

the value of the numGlyphs field.
numGlyphs
()

protected TT_MaxProfile.Buffer
public long

Returns:

the value of the version field.
version
()

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final TT_MaxProfile ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new TT_MaxProfile.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 TT_MaxProfile#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

getElementFactoryback to summary
protected TT_MaxProfile getElementFactory()

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

Annotations
@Override
maxComponentDepthback to summary
public short maxComponentDepth()
Returns:short

the value of the maxComponentDepth field.

Annotations
@NativeType:FT_UShort
maxComponentElementsback to summary
public short maxComponentElements()
Returns:short

the value of the maxComponentElements field.

Annotations
@NativeType:FT_UShort
maxCompositeContoursback to summary
public short maxCompositeContours()
Returns:short

the value of the maxCompositeContours field.

Annotations
@NativeType:FT_UShort
maxCompositePointsback to summary
public short maxCompositePoints()
Returns:short

the value of the maxCompositePoints field.

Annotations
@NativeType:FT_UShort
maxContoursback to summary
public short maxContours()
Returns:short

the value of the maxContours field.

Annotations
@NativeType:FT_UShort
maxFunctionDefsback to summary
public short maxFunctionDefs()
Returns:short

the value of the maxFunctionDefs field.

Annotations
@NativeType:FT_UShort
maxInstructionDefsback to summary
public short maxInstructionDefs()
Returns:short

the value of the maxInstructionDefs field.

Annotations
@NativeType:FT_UShort
maxPointsback to summary
public short maxPoints()
Returns:short

the value of the maxPoints field.

Annotations
@NativeType:FT_UShort
maxSizeOfInstructionsback to summary
public short maxSizeOfInstructions()
Returns:short

the value of the maxSizeOfInstructions field.

Annotations
@NativeType:FT_UShort
maxStackElementsback to summary
public short maxStackElements()
Returns:short

the value of the maxStackElements field.

Annotations
@NativeType:FT_UShort
maxStorageback to summary
public short maxStorage()
Returns:short

the value of the maxStorage field.

Annotations
@NativeType:FT_UShort
maxTwilightPointsback to summary
public short maxTwilightPoints()
Returns:short

the value of the maxTwilightPoints field.

Annotations
@NativeType:FT_UShort
maxZonesback to summary
public short maxZones()
Returns:short

the value of the maxZones field.

Annotations
@NativeType:FT_UShort
numGlyphsback to summary
public short numGlyphs()
Returns:short

the value of the numGlyphs field.

Annotations
@NativeType:FT_UShort
selfback to summary
protected TT_MaxProfile.Buffer self()

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

Annotations
@Override
versionback to summary
public long version()
Returns:long

the value of the version field.

Annotations
@NativeType:FT_Fixed