Package org.lwjgl.util.freetype
Class FT_SVG_Document
- All Implemented Interfaces:
Pointer
struct FT_SVG_DocumentRec {
FT_Byte * svg_document;
FT_ULong svg_document_length;
{@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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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 size 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionFT_SVG_Document(ByteBuffer container) Creates aFT_SVG_Documentinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_SVG_Documentcreate(long address) Returns a newFT_SVG_Documentinstance for the specified memory address.static FT_SVG_Document.Buffercreate(long address, int capacity) Create aFT_SVG_Document.Bufferinstance at the specified memory.static @Nullable FT_SVG_DocumentcreateSafe(long address) static @Nullable FT_SVG_Document.BuffercreateSafe(long address, int capacity) delta()shortmetrics()static FT_Vectorndelta(long struct) Unsafe version ofdelta().static shortnend_glyph_id(long struct) Unsafe version ofend_glyph_id().static FT_Size_Metricsnmetrics(long struct) Unsafe version ofmetrics().static shortnstart_glyph_id(long struct) Unsafe version ofstart_glyph_id().static ByteBuffernsvg_document(long struct) Unsafe version ofsvg_document.static longnsvg_document_length(long struct) Unsafe version ofsvg_document_length().static FT_Matrixntransform(long struct) Unsafe version oftransform().static shortnunits_per_EM(long struct) Unsafe version ofunits_per_EM().intsizeof()Returnssizeof(struct).shortlongshortMethods 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. -
SVG_DOCUMENT
public static final int SVG_DOCUMENTThe struct member offsets. -
SVG_DOCUMENT_LENGTH
public static final int SVG_DOCUMENT_LENGTHThe 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_SVG_Document
Creates aFT_SVG_Documentinstance 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_SVG_Document>
-
svg_document
- Returns:
- a
ByteBufferview of the data pointed to by thesvg_documentfield.
-
svg_document_length
public long svg_document_length()- Returns:
- the value of the
svg_document_lengthfield.
-
metrics
- Returns:
- a
FT_Size_Metricsview of themetricsfield.
-
units_per_EM
public short units_per_EM()- Returns:
- the value of the
units_per_EMfield.
-
start_glyph_id
public short start_glyph_id()- Returns:
- the value of the
start_glyph_idfield.
-
end_glyph_id
public short end_glyph_id()- Returns:
- the value of the
end_glyph_idfield.
-
transform
- Returns:
- a
FT_Matrixview of thetransformfield.
-
delta
- Returns:
- a
FT_Vectorview of thedeltafield.
-
create
Returns a newFT_SVG_Documentinstance for the specified memory address. -
createSafe
-
create
Create aFT_SVG_Document.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nsvg_document
Unsafe version ofsvg_document. -
nsvg_document_length
public static long nsvg_document_length(long struct) Unsafe version ofsvg_document_length(). -
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().
-