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

public Class FTC_SBit

extends Struct<FTC_SBit>
Class Inheritance
Annotations
@NativeType:struct FTC_SBitRec
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

A very compact structure used to describe a small glyph bitmap.

Layout


struct FTC_SBitRec {
    FT_Byte width;
    FT_Byte height;
    FT_Char left;
    FT_Char top;
    FT_Byte format;
    FT_Byte max_grays;
    FT_Short pitch;
    FT_Char xadvance;
    FT_Char yadvance;
    FT_Byte * buffer;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
FTC_SBit.Buffer

An array of FTC_SBit structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BUFFER

The struct member offsets.

public static final int
FORMAT

The struct member offsets.

public static final int
HEIGHT

The struct member offsets.

public static final int
LEFT

The struct member offsets.

public static final int
MAX_GRAYS

The struct member offsets.

public static final int
PITCH

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TOP

The struct member offsets.

public static final int
WIDTH

The struct member offsets.

public static final int
XADVANCE

The struct member offsets.

public static final int
YADVANCE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
FTC_SBit(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public ByteBuffer

Returns:

a ByteBuffer view of the data pointed to by the buffer field.
buffer
(int
the number of elements in the returned buffer
capacity
)

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

Returns a new FTC_SBit instance for the specified memory address.

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

Create a FTC_SBit.Buffer instance at the specified memory.

public static FTC_SBit
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public byte

Returns:

the value of the format field.
format
()

public byte

Returns:

the value of the height field.
height
()

public byte

Returns:

the value of the left field.
left
()

public byte

Returns:

the value of the max_grays field.
max_grays
()

public static ByteBuffer
nbuffer(long struct, int capacity)

Unsafe version of buffer.

public static byte
nformat(long struct)

Unsafe version of format.

public static byte
nheight(long struct)

Unsafe version of height.

public static byte
nleft(long struct)

Unsafe version of left.

public static byte
nmax_grays(long struct)

Unsafe version of max_grays.

public static short
npitch(long struct)

Unsafe version of pitch.

public static byte
ntop(long struct)

Unsafe version of top.

public static byte
nwidth(long struct)

Unsafe version of width.

public static byte
nxadvance(long struct)

Unsafe version of xadvance.

public static byte
nyadvance(long struct)

Unsafe version of yadvance.

public short

Returns:

the value of the pitch field.
pitch
()

public int
sizeof()

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

Returns sizeof(struct).
public byte

Returns:

the value of the top field.
top
()

public byte

Returns:

the value of the width field.
width
()

public byte

Returns:

the value of the xadvance field.
xadvance
()

public byte

Returns:

the value of the yadvance field.
yadvance
()

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.

BUFFERback to summary
public static final int BUFFER

The struct member offsets.

FORMATback to summary
public static final int FORMAT

The struct member offsets.

HEIGHTback to summary
public static final int HEIGHT

The struct member offsets.

LEFTback to summary
public static final int LEFT

The struct member offsets.

MAX_GRAYSback to summary
public static final int MAX_GRAYS

The struct member offsets.

PITCHback to summary
public static final int PITCH

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

TOPback to summary
public static final int TOP

The struct member offsets.

WIDTHback to summary
public static final int WIDTH

The struct member offsets.

XADVANCEback to summary
public static final int XADVANCE

The struct member offsets.

YADVANCEback to summary
public static final int YADVANCE

The struct member offsets.

Constructor Detail

FTC_SBitback to summary
protected FTC_SBit(long address, ByteBuffer container)
FTC_SBitback to summary
public FTC_SBit(ByteBuffer container)

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

bufferback to summary
public ByteBuffer buffer(int capacity)
Parameters
capacity:int

the number of elements in the returned buffer

Returns:ByteBuffer

a ByteBuffer view of the data pointed to by the buffer field.

Annotations
@NativeType:FT_Byte *
createback to summary
protected FTC_SBit 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 FTC_SBit create(long address)

Returns a new FTC_SBit instance for the specified memory address.

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

Create a FTC_SBit.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static FTC_SBit createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

Annotations
@Nullable
formatback to summary
public byte format()
Returns:byte

the value of the format field.

Annotations
@NativeType:FT_Byte
heightback to summary
public byte height()
Returns:byte

the value of the height field.

Annotations
@NativeType:FT_Byte
leftback to summary
public byte left()
Returns:byte

the value of the left field.

Annotations
@NativeType:FT_Char
max_graysback to summary
public byte max_grays()
Returns:byte

the value of the max_grays field.

Annotations
@NativeType:FT_Byte
nbufferback to summary
public static ByteBuffer nbuffer(long struct, int capacity)

Unsafe version of buffer.

nformatback to summary
public static byte nformat(long struct)

Unsafe version of format.

nheightback to summary
public static byte nheight(long struct)

Unsafe version of height.

nleftback to summary
public static byte nleft(long struct)

Unsafe version of left.

nmax_graysback to summary
public static byte nmax_grays(long struct)

Unsafe version of max_grays.

npitchback to summary
public static short npitch(long struct)

Unsafe version of pitch.

ntopback to summary
public static byte ntop(long struct)

Unsafe version of top.

nwidthback to summary
public static byte nwidth(long struct)

Unsafe version of width.

nxadvanceback to summary
public static byte nxadvance(long struct)

Unsafe version of xadvance.

nyadvanceback to summary
public static byte nyadvance(long struct)

Unsafe version of yadvance.

pitchback to summary
public short pitch()
Returns:short

the value of the pitch field.

Annotations
@NativeType:FT_Short
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
topback to summary
public byte top()
Returns:byte

the value of the top field.

Annotations
@NativeType:FT_Char
widthback to summary
public byte width()
Returns:byte

the value of the width field.

Annotations
@NativeType:FT_Byte
xadvanceback to summary
public byte xadvance()
Returns:byte

the value of the xadvance field.

Annotations
@NativeType:FT_Char
yadvanceback to summary
public byte yadvance()
Returns:byte

the value of the yadvance field.

Annotations
@NativeType:FT_Char
org.lwjgl.util.freetype back to summary

public Class FTC_SBit.Buffer

extends StructBuffer<FTC_SBit, FTC_SBit.Buffer>
Class Inheritance

An array of FTC_SBit structs.

Field Summary

Modifier and TypeField and Description
private static final FTC_SBit

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new FTC_SBit.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 ByteBuffer

Returns:

a ByteBuffer view of the data pointed to by the buffer field.
buffer
(int
the number of elements in the returned buffer
capacity
)

public byte

Returns:

the value of the format field.
format
()

protected FTC_SBit
public byte

Returns:

the value of the height field.
height
()

public byte

Returns:

the value of the left field.
left
()

public byte

Returns:

the value of the max_grays field.
max_grays
()

public short

Returns:

the value of the pitch field.
pitch
()

protected FTC_SBit.Buffer
public byte

Returns:

the value of the top field.
top
()

public byte

Returns:

the value of the width field.
width
()

public byte

Returns:

the value of the xadvance field.
xadvance
()

public byte

Returns:

the value of the yadvance field.
yadvance
()

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final FTC_SBit ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

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

bufferback to summary
public ByteBuffer buffer(int capacity)
Parameters
capacity:int

the number of elements in the returned buffer

Returns:ByteBuffer

a ByteBuffer view of the data pointed to by the buffer field.

Annotations
@NativeType:FT_Byte *
formatback to summary
public byte format()
Returns:byte

the value of the format field.

Annotations
@NativeType:FT_Byte
getElementFactoryback to summary
protected FTC_SBit getElementFactory()

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

Annotations
@Override
heightback to summary
public byte height()
Returns:byte

the value of the height field.

Annotations
@NativeType:FT_Byte
leftback to summary
public byte left()
Returns:byte

the value of the left field.

Annotations
@NativeType:FT_Char
max_graysback to summary
public byte max_grays()
Returns:byte

the value of the max_grays field.

Annotations
@NativeType:FT_Byte
pitchback to summary
public short pitch()
Returns:short

the value of the pitch field.

Annotations
@NativeType:FT_Short
selfback to summary
protected FTC_SBit.Buffer self()

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

Annotations
@Override
topback to summary
public byte top()
Returns:byte

the value of the top field.

Annotations
@NativeType:FT_Char
widthback to summary
public byte width()
Returns:byte

the value of the width field.

Annotations
@NativeType:FT_Byte
xadvanceback to summary
public byte xadvance()
Returns:byte

the value of the xadvance field.

Annotations
@NativeType:FT_Char
yadvanceback to summary
public byte yadvance()
Returns:byte

the value of the yadvance field.

Annotations
@NativeType:FT_Char