Package org.lwjgl.util.freetype
Class FT_SvgGlyph
- All Implemented Interfaces:
Pointer
struct FT_SvgGlyphRec {
{@link FT_Glyph FT_GlyphRec} root;
FT_Byte * svg_document;
FT_ULong svg_document_length;
FT_UInt glyph_index;
{@link FT_Size_Metrics FT_Size_Metrics} metrics;
FT_UShort units_per_EM;
FT_UShort start_glyph_id;
FT_UShort end_glyph_id;
{@link FT_Matrix FT_Matrix} transform;
{@link FT_Vector FT_Vector} delta;
}
-
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 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 size 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionFT_SvgGlyph
(ByteBuffer container) Creates aFT_SvgGlyph
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_SvgGlyph
create
(long address) Returns a newFT_SvgGlyph
instance for the specified memory address.static FT_SvgGlyph.Buffer
create
(long address, int capacity) Create aFT_SvgGlyph.Buffer
instance at the specified memory.static @Nullable FT_SvgGlyph
createSafe
(long address) static @Nullable FT_SvgGlyph.Buffer
createSafe
(long address, int capacity) delta()
short
int
metrics()
static FT_Vector
ndelta
(long struct) Unsafe version ofdelta()
.static short
nend_glyph_id
(long struct) Unsafe version ofend_glyph_id()
.static int
nglyph_index
(long struct) Unsafe version ofglyph_index()
.static FT_Size_Metrics
nmetrics
(long struct) Unsafe version ofmetrics()
.static FT_Glyph
nroot
(long struct) Unsafe version ofroot()
.static short
nstart_glyph_id
(long struct) Unsafe version ofstart_glyph_id()
.static ByteBuffer
nsvg_document
(long struct) Unsafe version ofsvg_document
.static long
nsvg_document_length
(long struct) Unsafe version ofsvg_document_length()
.static FT_Matrix
ntransform
(long struct) Unsafe version oftransform()
.static short
nunits_per_EM
(long struct) Unsafe version ofunits_per_EM()
.root()
int
sizeof()
Returnssizeof(struct)
.short
long
short
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. -
ROOT
public static final int ROOTThe struct member offsets. -
SVG_DOCUMENT
public static final int SVG_DOCUMENTThe struct member offsets. -
SVG_DOCUMENT_LENGTH
public static final int SVG_DOCUMENT_LENGTHThe struct member offsets. -
GLYPH_INDEX
public static final int GLYPH_INDEXThe struct member offsets. -
METRICS
public static final int METRICSThe struct member offsets. -
UNITS_PER_EM
public static final int UNITS_PER_EMThe struct member offsets. -
START_GLYPH_ID
public static final int START_GLYPH_IDThe struct member offsets. -
END_GLYPH_ID
public static final int END_GLYPH_IDThe struct member offsets. -
TRANSFORM
public static final int TRANSFORMThe struct member offsets. -
DELTA
public static final int DELTAThe struct member offsets.
-
-
Constructor Details
-
FT_SvgGlyph
Creates aFT_SvgGlyph
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_SvgGlyph>
-
root
- Returns:
- a
FT_Glyph
view of theroot
field.
-
svg_document
- Returns:
- a
ByteBuffer
view of the data pointed to by thesvg_document
field.
-
svg_document_length
public long svg_document_length()- Returns:
- the value of the
svg_document_length
field.
-
glyph_index
public int glyph_index()- Returns:
- the value of the
glyph_index
field.
-
metrics
- Returns:
- a
FT_Size_Metrics
view of themetrics
field.
-
units_per_EM
public short units_per_EM()- Returns:
- the value of the
units_per_EM
field.
-
start_glyph_id
public short start_glyph_id()- Returns:
- the value of the
start_glyph_id
field.
-
end_glyph_id
public short end_glyph_id()- Returns:
- the value of the
end_glyph_id
field.
-
transform
- Returns:
- a
FT_Matrix
view of thetransform
field.
-
delta
- Returns:
- a
FT_Vector
view of thedelta
field.
-
create
Returns a newFT_SvgGlyph
instance for the specified memory address. -
createSafe
-
create
Create aFT_SvgGlyph.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nroot
Unsafe version ofroot()
. -
nsvg_document
Unsafe version ofsvg_document
. -
nsvg_document_length
public static long nsvg_document_length(long struct) Unsafe version ofsvg_document_length()
. -
nglyph_index
public static int nglyph_index(long struct) Unsafe version ofglyph_index()
. -
nmetrics
Unsafe version ofmetrics()
. -
nunits_per_EM
public static short nunits_per_EM(long struct) Unsafe version ofunits_per_EM()
. -
nstart_glyph_id
public static short nstart_glyph_id(long struct) Unsafe version ofstart_glyph_id()
. -
nend_glyph_id
public static short nend_glyph_id(long struct) Unsafe version ofend_glyph_id()
. -
ntransform
Unsafe version oftransform()
. -
ndelta
Unsafe version ofdelta()
.
-