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

public Class FT_Span

extends Struct<FT_Span>
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

A structure to model a single span of consecutive pixels when rendering an anti-aliased bitmap.

Layout


struct FT_Span {
    short x;
    unsigned short len;
    unsigned char coverage;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
FT_Span.Buffer

An array of FT_Span structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
COVERAGE

The struct member offsets.

public static final int
LEN

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
X

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
FT_Span(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public byte

Returns:

the value of the coverage field.
coverage
()

protected FT_Span
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_Span
create(long address)

Returns a new FT_Span instance for the specified memory address.

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

Create a FT_Span.Buffer instance at the specified memory.

public static FT_Span
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public short

Returns:

the value of the len field.
len
()

public static byte
ncoverage(long struct)

Unsafe version of coverage.

public static short
nlen(long struct)

Unsafe version of len.

public static short
nx(long struct)

Unsafe version of x.

public int
sizeof()

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

Returns sizeof(struct).
public short

Returns:

the value of the x field.
x
()

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.

COVERAGEback to summary
public static final int COVERAGE

The struct member offsets.

LENback to summary
public static final int LEN

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

Xback to summary
public static final int X

The struct member offsets.

Constructor Detail

FT_Spanback to summary
protected FT_Span(long address, ByteBuffer container)
FT_Spanback to summary
public FT_Span(ByteBuffer container)

Creates a FT_Span 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

coverageback to summary
public byte coverage()
Returns:byte

the value of the coverage field.

Annotations
@NativeType:unsigned char
createback to summary
protected FT_Span 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_Span create(long address)

Returns a new FT_Span instance for the specified memory address.

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

Create a FT_Span.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static FT_Span createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

Annotations
@Nullable
lenback to summary
public short len()
Returns:short

the value of the len field.

Annotations
@NativeType:unsigned short
ncoverageback to summary
public static byte ncoverage(long struct)

Unsafe version of coverage.

nlenback to summary
public static short nlen(long struct)

Unsafe version of len.

nxback to summary
public static short nx(long struct)

Unsafe version of x.

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
xback to summary
public short x()
Returns:short

the value of the x field.

org.lwjgl.util.freetype back to summary

public Class FT_Span.Buffer

extends StructBuffer<FT_Span, FT_Span.Buffer>
Class Inheritance

An array of FT_Span structs.

Field Summary

Modifier and TypeField and Description
private static final FT_Span

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new FT_Span.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 byte

Returns:

the value of the coverage field.
coverage
()

protected FT_Span
public short

Returns:

the value of the len field.
len
()

protected FT_Span.Buffer
public short

Returns:

the value of the x field.
x
()

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final FT_Span ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new FT_Span.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_Span#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

coverageback to summary
public byte coverage()
Returns:byte

the value of the coverage field.

Annotations
@NativeType:unsigned char
getElementFactoryback to summary
protected FT_Span getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
lenback to summary
public short len()
Returns:short

the value of the len field.

Annotations
@NativeType:unsigned short
selfback to summary
protected FT_Span.Buffer self()

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

Annotations
@Override
xback to summary
public short x()
Returns:short

the value of the x field.