Package org.lwjgl.util.freetype
Class FT_Span
- All Implemented Interfaces:
Pointer
struct FT_Span {
short x;
unsigned short len;
unsigned char coverage;
}-
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 size in bytes.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_Span(ByteBuffer container) Creates aFT_Spaninstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbytecoverage()static FT_Spancreate(long address) Returns a newFT_Spaninstance for the specified memory address.static FT_Span.Buffercreate(long address, int capacity) Create aFT_Span.Bufferinstance at the specified memory.static @Nullable FT_SpancreateSafe(long address) static @Nullable FT_Span.BuffercreateSafe(long address, int capacity) shortlen()static bytencoverage(long struct) Unsafe version ofcoverage().static shortnlen(long struct) Unsafe version oflen().static shortnx(long struct) Unsafe version ofx().intsizeof()Returnssizeof(struct).shortx()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. -
X
public static final int XThe struct member offsets. -
LEN
public static final int LENThe struct member offsets. -
COVERAGE
public static final int COVERAGEThe struct member offsets.
-
-
Constructor Details
-
FT_Span
Creates aFT_Spaninstance 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). -
x
public short x()- Returns:
- the value of the
xfield.
-
len
public short len()- Returns:
- the value of the
lenfield.
-
coverage
public byte coverage()- Returns:
- the value of the
coveragefield.
-
create
Returns a newFT_Spaninstance for the specified memory address. -
createSafe
-
create
Create aFT_Span.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nx
public static short nx(long struct) Unsafe version ofx(). -
nlen
public static short nlen(long struct) Unsafe version oflen(). -
ncoverage
public static byte ncoverage(long struct) Unsafe version ofcoverage().
-