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

public Class FT_SvgGlyph

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

A structure used for OT-SVG glyphs. This is a 'sub-class' of FT_Glyph.

Layout


struct FT_SvgGlyphRec {
    FT_GlyphRec root;
    FT_Byte * svg_document;
    FT_ULong svg_document_length;
    FT_UInt glyph_index;
    FT_Size_Metrics metrics;
    FT_UShort units_per_EM;
    FT_UShort start_glyph_id;
    FT_UShort end_glyph_id;
    FT_Matrix transform;
    FT_Vector delta;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
FT_SvgGlyph.Buffer

An array of FT_SvgGlyph structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
DELTA

The struct member offsets.

public static final int
END_GLYPH_ID

The struct member offsets.

public static final int
GLYPH_INDEX

The struct member offsets.

public static final int
METRICS

The struct member offsets.

public static final int
ROOT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
START_GLYPH_ID

The struct member offsets.

public static final int
SVG_DOCUMENT

The struct member offsets.

public static final int
SVG_DOCUMENT_LENGTH

The struct member offsets.

public static final int
TRANSFORM

The struct member offsets.

public static final int
UNITS_PER_EM

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
FT_SvgGlyph(ByteBuffer container)

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

Method Summary

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

Returns a new FT_SvgGlyph instance for the specified memory address.

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

Create a FT_SvgGlyph.Buffer instance at the specified memory.

public static FT_SvgGlyph
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public FT_Vector

Returns:

a FT_Vector view of the delta field.
delta
()

public short

Returns:

the value of the end_glyph_id field.
end_glyph_id
()

public int

Returns:

the value of the glyph_index field.
glyph_index
()

public FT_Size_Metrics

Returns:

a FT_Size_Metrics view of the metrics field.
metrics
()

public static FT_Vector
ndelta(long struct)

Unsafe version of delta.

public static short
nend_glyph_id(long struct)

Unsafe version of end_glyph_id.

public static int
nglyph_index(long struct)

Unsafe version of glyph_index.

public static FT_Size_Metrics
nmetrics(long struct)

Unsafe version of metrics.

public static FT_Glyph
nroot(long struct)

Unsafe version of root.

public static short
nstart_glyph_id(long struct)

Unsafe version of start_glyph_id.

public static ByteBuffer
nsvg_document(long struct)

Unsafe version of svg_document.

public static long
nsvg_document_length(long struct)

Unsafe version of svg_document_length.

public static FT_Matrix
ntransform(long struct)

Unsafe version of transform.

public static short
nunits_per_EM(long struct)

Unsafe version of units_per_EM.

public FT_Glyph

Returns:

a FT_Glyph view of the root field.
root
()

public int
sizeof()

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

Returns sizeof(struct).
public short

Returns:

the value of the start_glyph_id field.
start_glyph_id
()

public ByteBuffer

Returns:

a ByteBuffer view of the data pointed to by the svg_document field.
svg_document
()

public long

Returns:

the value of the svg_document_length field.
svg_document_length
()

public FT_Matrix

Returns:

a FT_Matrix view of the transform field.
transform
()

public short

Returns:

the value of the units_per_EM field.
units_per_EM
()

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.

DELTAback to summary
public static final int DELTA

The struct member offsets.

END_GLYPH_IDback to summary
public static final int END_GLYPH_ID

The struct member offsets.

GLYPH_INDEXback to summary
public static final int GLYPH_INDEX

The struct member offsets.

METRICSback to summary
public static final int METRICS

The struct member offsets.

ROOTback to summary
public static final int ROOT

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

START_GLYPH_IDback to summary
public static final int START_GLYPH_ID

The struct member offsets.

SVG_DOCUMENTback to summary
public static final int SVG_DOCUMENT

The struct member offsets.

SVG_DOCUMENT_LENGTHback to summary
public static final int SVG_DOCUMENT_LENGTH

The struct member offsets.

TRANSFORMback to summary
public static final int TRANSFORM

The struct member offsets.

UNITS_PER_EMback to summary
public static final int UNITS_PER_EM

The struct member offsets.

Constructor Detail

FT_SvgGlyphback to summary
protected FT_SvgGlyph(long address, ByteBuffer container)
FT_SvgGlyphback to summary
public FT_SvgGlyph(ByteBuffer container)

Creates a FT_SvgGlyph 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 FT_SvgGlyph 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_SvgGlyph create(long address)

Returns a new FT_SvgGlyph instance for the specified memory address.

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

Create a FT_SvgGlyph.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static FT_SvgGlyph createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

Annotations
@Nullable
deltaback to summary
public FT_Vector delta()
Returns:FT_Vector

a FT_Vector view of the delta field.

end_glyph_idback to summary
public short end_glyph_id()
Returns:short

the value of the end_glyph_id field.

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

the value of the glyph_index field.

Annotations
@NativeType:FT_UInt
metricsback to summary
public FT_Size_Metrics metrics()
Returns:FT_Size_Metrics

a FT_Size_Metrics view of the metrics field.

ndeltaback to summary
public static FT_Vector ndelta(long struct)

Unsafe version of delta.

nend_glyph_idback to summary
public static short nend_glyph_id(long struct)

Unsafe version of end_glyph_id.

nglyph_indexback to summary
public static int nglyph_index(long struct)

Unsafe version of glyph_index.

nmetricsback to summary
public static FT_Size_Metrics nmetrics(long struct)

Unsafe version of metrics.

nrootback to summary
public static FT_Glyph nroot(long struct)

Unsafe version of root.

nstart_glyph_idback to summary
public static short nstart_glyph_id(long struct)

Unsafe version of start_glyph_id.

nsvg_documentback to summary
public static ByteBuffer nsvg_document(long struct)

Unsafe version of svg_document.

nsvg_document_lengthback to summary
public static long nsvg_document_length(long struct)

Unsafe version of svg_document_length.

ntransformback to summary
public static FT_Matrix ntransform(long struct)

Unsafe version of transform.

nunits_per_EMback to summary
public static short nunits_per_EM(long struct)

Unsafe version of units_per_EM.

rootback to summary
public FT_Glyph root()
Returns:FT_Glyph

a FT_Glyph view of the root field.

Annotations
@NativeType:FT_GlyphRec
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
start_glyph_idback to summary
public short start_glyph_id()
Returns:short

the value of the start_glyph_id field.

Annotations
@NativeType:FT_UShort
svg_documentback to summary
public ByteBuffer svg_document()
Returns:ByteBuffer

a ByteBuffer view of the data pointed to by the svg_document field.

Annotations
@NativeType:FT_Byte *
svg_document_lengthback to summary
public long svg_document_length()
Returns:long

the value of the svg_document_length field.

Annotations
@NativeType:FT_ULong
transformback to summary
public FT_Matrix transform()
Returns:FT_Matrix

a FT_Matrix view of the transform field.

units_per_EMback to summary
public short units_per_EM()
Returns:short

the value of the units_per_EM field.

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

public Class FT_SvgGlyph.Buffer

extends StructBuffer<FT_SvgGlyph, FT_SvgGlyph.Buffer>
Class Inheritance

An array of FT_SvgGlyph structs.

Field Summary

Modifier and TypeField and Description
private static final FT_SvgGlyph

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new FT_SvgGlyph.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 delta field.
delta
()

public short

Returns:

the value of the end_glyph_id field.
end_glyph_id
()

protected FT_SvgGlyph
public int

Returns:

the value of the glyph_index field.
glyph_index
()

public FT_Size_Metrics

Returns:

a FT_Size_Metrics view of the metrics field.
metrics
()

public FT_Glyph

Returns:

a FT_Glyph view of the root field.
root
()

protected FT_SvgGlyph.Buffer
public short

Returns:

the value of the start_glyph_id field.
start_glyph_id
()

public ByteBuffer

Returns:

a ByteBuffer view of the data pointed to by the svg_document field.
svg_document
()

public long

Returns:

the value of the svg_document_length field.
svg_document_length
()

public FT_Matrix

Returns:

a FT_Matrix view of the transform field.
transform
()

public short

Returns:

the value of the units_per_EM field.
units_per_EM
()

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final FT_SvgGlyph ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

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

deltaback to summary
public FT_Vector delta()
Returns:FT_Vector

a FT_Vector view of the delta field.

end_glyph_idback to summary
public short end_glyph_id()
Returns:short

the value of the end_glyph_id field.

Annotations
@NativeType:FT_UShort
getElementFactoryback to summary
protected FT_SvgGlyph 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
metricsback to summary
public FT_Size_Metrics metrics()
Returns:FT_Size_Metrics

a FT_Size_Metrics view of the metrics field.

rootback to summary
public FT_Glyph root()
Returns:FT_Glyph

a FT_Glyph view of the root field.

Annotations
@NativeType:FT_GlyphRec
selfback to summary
protected FT_SvgGlyph.Buffer self()

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

Annotations
@Override
start_glyph_idback to summary
public short start_glyph_id()
Returns:short

the value of the start_glyph_id field.

Annotations
@NativeType:FT_UShort
svg_documentback to summary
public ByteBuffer svg_document()
Returns:ByteBuffer

a ByteBuffer view of the data pointed to by the svg_document field.

Annotations
@NativeType:FT_Byte *
svg_document_lengthback to summary
public long svg_document_length()
Returns:long

the value of the svg_document_length field.

Annotations
@NativeType:FT_ULong
transformback to summary
public FT_Matrix transform()
Returns:FT_Matrix

a FT_Matrix view of the transform field.

units_per_EMback to summary
public short units_per_EM()
Returns:short

the value of the units_per_EM field.

Annotations
@NativeType:FT_UShort