PackFontRange
struct stbtt_packedchar {
unsigned short x0;
unsigned short y0;
unsigned short x1;
unsigned short y1;
float xoff;
float yoff;
float xadvance;
float xoff2;
float yoff2;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | STBTTPackedchar.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | X0
The struct member offsets. |
| public static final int | X1
The struct member offsets. |
| public static final int | XADVANCE
The struct member offsets. |
| public static final int | XOFF
The struct member offsets. |
| public static final int | XOFF2
The struct member offsets. |
| public static final int | Y0
The struct member offsets. |
| public static final int | Y1
The struct member offsets. |
| public static final int | YOFF
The struct member offsets. |
| public static final int | YOFF2
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | STBTTPackedchar(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static STBTTPackedchar | |
| public static STBTTPackedchar. | calloc(int
the buffer capacity capacity)Returns a new |
| public static STBTTPackedchar | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static STBTTPackedchar. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static STBTTPackedchar | |
| public static STBTTPackedchar | |
| public static STBTTPackedchar. | |
| public static STBTTPackedchar. | |
| protected STBTTPackedchar | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static STBTTPackedchar | |
| public static STBTTPackedchar | |
| public static STBTTPackedchar. | create(int
the buffer capacity capacity)Returns a new |
| public static STBTTPackedchar. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static STBTTPackedchar | |
| public static STBTTPackedchar. | |
| public static STBTTPackedchar | |
| public static STBTTPackedchar. | malloc(int
the buffer capacity capacity)Returns a new |
| public static STBTTPackedchar | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static STBTTPackedchar. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static STBTTPackedchar | |
| public static STBTTPackedchar | |
| public static STBTTPackedchar. | |
| public static STBTTPackedchar. | |
| public static short | |
| public static void | |
| public static short | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static short | |
| public static void | |
| public static short | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public STBTTPackedchar | set(short x0, short y0, short x1, short y1, float xoff, float yoff, float xadvance, float xoff2, float yoff2)
Initializes this struct with the specified values. |
| public STBTTPackedchar | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public short | |
| public STBTTPackedchar | |
| public short | |
| public STBTTPackedchar | |
| public float | |
| public STBTTPackedchar | |
| public float | |
| public STBTTPackedchar | |
| public float | |
| public STBTTPackedchar | |
| public short | |
| public STBTTPackedchar | |
| public short | |
| public STBTTPackedchar | |
| public float | |
| public STBTTPackedchar | |
| public float | |
| public STBTTPackedchar |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| X0 | back to summary |
|---|---|
| public static final int X0 The struct member offsets. | |
| X1 | back to summary |
|---|---|
| public static final int X1 The struct member offsets. | |
| XADVANCE | back to summary |
|---|---|
| public static final int XADVANCE The struct member offsets. | |
| XOFF | back to summary |
|---|---|
| public static final int XOFF The struct member offsets. | |
| XOFF2 | back to summary |
|---|---|
| public static final int XOFF2 The struct member offsets. | |
| Y0 | back to summary |
|---|---|
| public static final int Y0 The struct member offsets. | |
| Y1 | back to summary |
|---|---|
| public static final int Y1 The struct member offsets. | |
| YOFF | back to summary |
|---|---|
| public static final int YOFF The struct member offsets. | |
| YOFF2 | back to summary |
|---|---|
| public static final int YOFF2 The struct member offsets. | |
| STBTTPackedchar | back to summary |
|---|---|
| protected STBTTPackedchar(long address, ByteBuffer container) | |
| STBTTPackedchar | back to summary |
|---|---|
| public STBTTPackedchar(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static STBTTPackedchar calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static STBTTPackedchar. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static STBTTPackedchar calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static STBTTPackedchar. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static STBTTPackedchar callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static STBTTPackedchar callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static STBTTPackedchar. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static STBTTPackedchar. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected STBTTPackedchar create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static STBTTPackedchar create() Returns a new | |
| create | back to summary |
|---|---|
| public static STBTTPackedchar create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static STBTTPackedchar. Returns a new
| |
| create | back to summary |
|---|---|
| public static STBTTPackedchar. Create a
| |
| createSafe | back to summary |
|---|---|
| public static STBTTPackedchar createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static STBTTPackedchar. Like
| |
| malloc | back to summary |
|---|---|
| public static STBTTPackedchar malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static STBTTPackedchar. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static STBTTPackedchar malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static STBTTPackedchar. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static STBTTPackedchar mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static STBTTPackedchar mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static STBTTPackedchar. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static STBTTPackedchar. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nx0 | back to summary |
|---|---|
| public static short nx0(long struct) Unsafe version of | |
| nx0 | back to summary |
|---|---|
| public static void nx0(long struct, short value) Unsafe version of | |
| nx1 | back to summary |
|---|---|
| public static short nx1(long struct) Unsafe version of | |
| nx1 | back to summary |
|---|---|
| public static void nx1(long struct, short value) Unsafe version of | |
| nxadvance | back to summary |
|---|---|
| public static float nxadvance(long struct) Unsafe version of | |
| nxadvance | back to summary |
|---|---|
| public static void nxadvance(long struct, float value) Unsafe version of | |
| nxoff | back to summary |
|---|---|
| public static float nxoff(long struct) Unsafe version of | |
| nxoff | back to summary |
|---|---|
| public static void nxoff(long struct, float value) Unsafe version of | |
| nxoff2 | back to summary |
|---|---|
| public static float nxoff2(long struct) Unsafe version of | |
| nxoff2 | back to summary |
|---|---|
| public static void nxoff2(long struct, float value) Unsafe version of | |
| ny0 | back to summary |
|---|---|
| public static short ny0(long struct) Unsafe version of | |
| ny0 | back to summary |
|---|---|
| public static void ny0(long struct, short value) Unsafe version of | |
| ny1 | back to summary |
|---|---|
| public static short ny1(long struct) Unsafe version of | |
| ny1 | back to summary |
|---|---|
| public static void ny1(long struct, short value) Unsafe version of | |
| nyoff | back to summary |
|---|---|
| public static float nyoff(long struct) Unsafe version of | |
| nyoff | back to summary |
|---|---|
| public static void nyoff(long struct, float value) Unsafe version of | |
| nyoff2 | back to summary |
|---|---|
| public static float nyoff2(long struct) Unsafe version of | |
| nyoff2 | back to summary |
|---|---|
| public static void nyoff2(long struct, float value) Unsafe version of | |
| set | back to summary |
|---|---|
| public STBTTPackedchar set(short x0, short y0, short x1, short y1, float xoff, float yoff, float xadvance, float xoff2, float yoff2) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public STBTTPackedchar set(STBTTPackedchar src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| x0 | back to summary |
|---|---|
public short x0()
| |
| x0 | back to summary |
|---|---|
| public STBTTPackedchar x0(short value) Sets the specified value to the | |
| x1 | back to summary |
|---|---|
public short x1()
| |
| x1 | back to summary |
|---|---|
| public STBTTPackedchar x1(short value) Sets the specified value to the | |
| xadvance | back to summary |
|---|---|
public float xadvance()
| |
| xadvance | back to summary |
|---|---|
| public STBTTPackedchar xadvance(float value) Sets the specified value to the | |
| xoff | back to summary |
|---|---|
public float xoff()
| |
| xoff | back to summary |
|---|---|
| public STBTTPackedchar xoff(float value) Sets the specified value to the | |
| xoff2 | back to summary |
|---|---|
public float xoff2()
| |
| xoff2 | back to summary |
|---|---|
| public STBTTPackedchar xoff2(float value) Sets the specified value to the | |
| y0 | back to summary |
|---|---|
public short y0()
| |
| y0 | back to summary |
|---|---|
| public STBTTPackedchar y0(short value) Sets the specified value to the | |
| y1 | back to summary |
|---|---|
public short y1()
| |
| y1 | back to summary |
|---|---|
| public STBTTPackedchar y1(short value) Sets the specified value to the | |
| yoff | back to summary |
|---|---|
public float yoff()
| |
| yoff | back to summary |
|---|---|
| public STBTTPackedchar yoff(float value) Sets the specified value to the | |
| yoff2 | back to summary |
|---|---|
public float yoff2()
| |
| yoff2 | back to summary |
|---|---|
| public STBTTPackedchar yoff2(float value) Sets the specified value to the | |
STBTTPackedchar structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final STBTTPackedchar |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected STBTTPackedchar | |
| protected STBTTPackedchar. | |
| public short | |
| public STBTTPackedchar. | |
| public short | |
| public STBTTPackedchar. | |
| public float | |
| public STBTTPackedchar. | |
| public float | |
| public STBTTPackedchar. | |
| public float | |
| public STBTTPackedchar. | |
| public short | |
| public STBTTPackedchar. | |
| public short | |
| public STBTTPackedchar. | |
| public float | |
| public STBTTPackedchar. | |
| public float | |
| public STBTTPackedchar. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final STBTTPackedchar ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new 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 The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| getElementFactory | back to summary |
|---|---|
| protected STBTTPackedchar getElementFactory() Implements abstract org.
| |
| self | back to summary |
|---|---|
| protected STBTTPackedchar. Implements abstract org.
| |
| x0 | back to summary |
|---|---|
public short x0()
| |
| x0 | back to summary |
|---|---|
| public STBTTPackedchar. Sets the specified value to the | |
| x1 | back to summary |
|---|---|
public short x1()
| |
| x1 | back to summary |
|---|---|
| public STBTTPackedchar. Sets the specified value to the | |
| xadvance | back to summary |
|---|---|
public float xadvance()
| |
| xadvance | back to summary |
|---|---|
| public STBTTPackedchar. Sets the specified value to the | |
| xoff | back to summary |
|---|---|
public float xoff()
| |
| xoff | back to summary |
|---|---|
| public STBTTPackedchar. Sets the specified value to the | |
| xoff2 | back to summary |
|---|---|
public float xoff2()
| |
| xoff2 | back to summary |
|---|---|
| public STBTTPackedchar. Sets the specified value to the | |
| y0 | back to summary |
|---|---|
public short y0()
| |
| y0 | back to summary |
|---|---|
| public STBTTPackedchar. Sets the specified value to the | |
| y1 | back to summary |
|---|---|
public short y1()
| |
| y1 | back to summary |
|---|---|
| public STBTTPackedchar. Sets the specified value to the | |
| yoff | back to summary |
|---|---|
public float yoff()
| |
| yoff | back to summary |
|---|---|
| public STBTTPackedchar. Sets the specified value to the | |
| yoff2 | back to summary |
|---|---|
public float yoff2()
| |
| yoff2 | back to summary |
|---|---|
| public STBTTPackedchar. Sets the specified value to the | |