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.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 size in bytes.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_Span
(ByteBuffer container) Creates aFT_Span
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionbyte
coverage()
static FT_Span
create
(long address) Returns a newFT_Span
instance for the specified memory address.static FT_Span.Buffer
create
(long address, int capacity) Create aFT_Span.Buffer
instance at the specified memory.static @Nullable FT_Span
createSafe
(long address) static @Nullable FT_Span.Buffer
createSafe
(long address, int capacity) short
len()
static byte
ncoverage
(long struct) Unsafe version ofcoverage()
.static short
nlen
(long struct) Unsafe version oflen()
.static short
nx
(long struct) Unsafe version ofx()
.int
sizeof()
Returnssizeof(struct)
.short
x()
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_Span
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)
. -
x
public short x()- Returns:
- the value of the
x
field.
-
len
public short len()- Returns:
- the value of the
len
field.
-
coverage
public byte coverage()- Returns:
- the value of the
coverage
field.
-
create
Returns a newFT_Span
instance for the specified memory address. -
createSafe
-
create
Create aFT_Span.Buffer
instance 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()
.
-