public class NVGTextRow
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
start – pointer to the input text where the row startsend – pointer to the input text where the row ends (one past the last characternext – pointer to the beginning of the next rowwidth – logical width of the rowminx – actual left bound of the row. Logical width and bounds can differ because of kerning and some parts over extending.maxx – actual right bound of the row. Logical width and bounds can differ because of kerning and some parts over extending.
struct NVGtextRow {
char * start;
char * end;
char * next;
float width;
float minx;
float maxx;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NVGTextRow.Buffer
An array of
NVGTextRow structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
END
The struct member offsets.
|
static int |
MAXX
The struct member offsets.
|
static int |
MINX
The struct member offsets.
|
static int |
NEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
START
The struct member offsets.
|
static int |
WIDTH
The struct member offsets.
|
| Constructor and Description |
|---|
NVGTextRow(java.nio.ByteBuffer container)
Creates a
NVGTextRow instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static NVGTextRow |
calloc()
Returns a new
NVGTextRow instance allocated with memCalloc. |
static NVGTextRow.Buffer |
calloc(int capacity)
Returns a new
NVGTextRow.Buffer instance allocated with memCalloc. |
static NVGTextRow |
callocStack()
Returns a new
NVGTextRow instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NVGTextRow.Buffer |
callocStack(int capacity)
Returns a new
NVGTextRow.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NVGTextRow.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NVGTextRow.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NVGTextRow |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NVGTextRow instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NVGTextRow |
create()
Returns a new
NVGTextRow instance allocated with BufferUtils. |
static NVGTextRow.Buffer |
create(int capacity)
Returns a new
NVGTextRow.Buffer instance allocated with BufferUtils. |
static NVGTextRow |
create(long address)
Returns a new
NVGTextRow instance for the specified memory address. |
static NVGTextRow.Buffer |
create(long address,
int capacity)
Create a
NVGTextRow.Buffer instance at the specified memory. |
static NVGTextRow |
createSafe(long address)
|
static NVGTextRow.Buffer |
createSafe(long address,
int capacity)
|
long |
end()
Returns the value of the
end field. |
static NVGTextRow |
malloc()
Returns a new
NVGTextRow instance allocated with memAlloc. |
static NVGTextRow.Buffer |
malloc(int capacity)
Returns a new
NVGTextRow.Buffer instance allocated with memAlloc. |
static NVGTextRow |
mallocStack()
Returns a new
NVGTextRow instance allocated on the thread-local MemoryStack. |
static NVGTextRow.Buffer |
mallocStack(int capacity)
Returns a new
NVGTextRow.Buffer instance allocated on the thread-local MemoryStack. |
static NVGTextRow.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NVGTextRow.Buffer instance allocated on the specified MemoryStack. |
static NVGTextRow |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NVGTextRow instance allocated on the specified MemoryStack. |
float |
maxx()
Returns the value of the
maxx field. |
float |
minx()
Returns the value of the
minx field. |
static long |
nend(long struct)
Unsafe version of
end(). |
long |
next()
Returns the value of the
next field. |
static float |
nmaxx(long struct)
Unsafe version of
maxx(). |
static float |
nminx(long struct)
Unsafe version of
minx(). |
static long |
nnext(long struct)
Unsafe version of
next(). |
static long |
nstart(long struct)
Unsafe version of
start(). |
static float |
nwidth(long struct)
Unsafe version of
width(). |
int |
sizeof() |
long |
start()
Returns the value of the
start field. |
float |
width()
Returns the value of the
width field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int START
public static final int END
public static final int NEXT
public static final int WIDTH
public static final int MINX
public static final int MAXX
public NVGTextRow(java.nio.ByteBuffer container)
NVGTextRow 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic long start()
start field.public long end()
end field.public long next()
next field.public float width()
width field.public float minx()
minx field.public float maxx()
maxx field.public static NVGTextRow malloc()
NVGTextRow instance allocated with memAlloc. The instance must be explicitly freed.public static NVGTextRow calloc()
NVGTextRow instance allocated with memCalloc. The instance must be explicitly freed.public static NVGTextRow create()
NVGTextRow instance allocated with BufferUtils.public static NVGTextRow create(long address)
NVGTextRow instance for the specified memory address.@Nullable public static NVGTextRow createSafe(long address)
public static NVGTextRow.Buffer malloc(int capacity)
NVGTextRow.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NVGTextRow.Buffer calloc(int capacity)
NVGTextRow.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NVGTextRow.Buffer create(int capacity)
NVGTextRow.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static NVGTextRow.Buffer create(long address, int capacity)
NVGTextRow.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NVGTextRow.Buffer createSafe(long address, int capacity)
public static NVGTextRow mallocStack()
NVGTextRow instance allocated on the thread-local MemoryStack.public static NVGTextRow callocStack()
NVGTextRow instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static NVGTextRow mallocStack(org.lwjgl.system.MemoryStack stack)
NVGTextRow instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static NVGTextRow callocStack(org.lwjgl.system.MemoryStack stack)
NVGTextRow instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static NVGTextRow.Buffer mallocStack(int capacity)
NVGTextRow.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static NVGTextRow.Buffer callocStack(int capacity)
NVGTextRow.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static NVGTextRow.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NVGTextRow.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NVGTextRow.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NVGTextRow.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static long nstart(long struct)
start().public static long nend(long struct)
end().public static long nnext(long struct)
next().public static float nwidth(long struct)
width().public static float nminx(long struct)
minx().public static float nmaxx(long struct)
maxx().Copyright LWJGL. All Rights Reserved. License terms.