public class NVGGlyphPosition
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
str – position of the glyph in the input stringx – the x-coordinate of the logical glyph positionminx – the left bound of the glyph shapemaxx – the right bound of the glyph shape
struct NVGglyphPosition {
char * str;
float x;
float minx;
float maxx;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NVGGlyphPosition.Buffer
An array of
NVGGlyphPosition structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MAXX
The struct member offsets.
|
static int |
MINX
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STR
The struct member offsets.
|
static int |
X
The struct member offsets.
|
| Constructor and Description |
|---|
NVGGlyphPosition(java.nio.ByteBuffer container)
Creates a
NVGGlyphPosition instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static NVGGlyphPosition |
calloc()
Returns a new
NVGGlyphPosition instance allocated with memCalloc. |
static NVGGlyphPosition.Buffer |
calloc(int capacity)
Returns a new
NVGGlyphPosition.Buffer instance allocated with memCalloc. |
static NVGGlyphPosition |
callocStack()
Returns a new
NVGGlyphPosition instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NVGGlyphPosition.Buffer |
callocStack(int capacity)
Returns a new
NVGGlyphPosition.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NVGGlyphPosition.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NVGGlyphPosition.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NVGGlyphPosition |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NVGGlyphPosition instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NVGGlyphPosition |
create()
Returns a new
NVGGlyphPosition instance allocated with BufferUtils. |
static NVGGlyphPosition.Buffer |
create(int capacity)
Returns a new
NVGGlyphPosition.Buffer instance allocated with BufferUtils. |
static NVGGlyphPosition |
create(long address)
Returns a new
NVGGlyphPosition instance for the specified memory address. |
static NVGGlyphPosition.Buffer |
create(long address,
int capacity)
Create a
NVGGlyphPosition.Buffer instance at the specified memory. |
static NVGGlyphPosition |
createSafe(long address)
|
static NVGGlyphPosition.Buffer |
createSafe(long address,
int capacity)
|
static NVGGlyphPosition |
malloc()
Returns a new
NVGGlyphPosition instance allocated with memAlloc. |
static NVGGlyphPosition.Buffer |
malloc(int capacity)
Returns a new
NVGGlyphPosition.Buffer instance allocated with memAlloc. |
static NVGGlyphPosition |
mallocStack()
Returns a new
NVGGlyphPosition instance allocated on the thread-local MemoryStack. |
static NVGGlyphPosition.Buffer |
mallocStack(int capacity)
Returns a new
NVGGlyphPosition.Buffer instance allocated on the thread-local MemoryStack. |
static NVGGlyphPosition.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NVGGlyphPosition.Buffer instance allocated on the specified MemoryStack. |
static NVGGlyphPosition |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NVGGlyphPosition 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 float |
nmaxx(long struct)
Unsafe version of
maxx(). |
static float |
nminx(long struct)
Unsafe version of
minx(). |
static long |
nstr(long struct)
Unsafe version of
str(). |
static float |
nx(long struct)
Unsafe version of
x(). |
int |
sizeof() |
long |
str()
Returns the value of the
str field. |
float |
x()
Returns the value of the
x field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STR
public static final int X
public static final int MINX
public static final int MAXX
public NVGGlyphPosition(java.nio.ByteBuffer container)
NVGGlyphPosition 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 str()
str field.public float x()
x field.public float minx()
minx field.public float maxx()
maxx field.public static NVGGlyphPosition malloc()
NVGGlyphPosition instance allocated with memAlloc. The instance must be explicitly freed.public static NVGGlyphPosition calloc()
NVGGlyphPosition instance allocated with memCalloc. The instance must be explicitly freed.public static NVGGlyphPosition create()
NVGGlyphPosition instance allocated with BufferUtils.public static NVGGlyphPosition create(long address)
NVGGlyphPosition instance for the specified memory address.@Nullable public static NVGGlyphPosition createSafe(long address)
public static NVGGlyphPosition.Buffer malloc(int capacity)
NVGGlyphPosition.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NVGGlyphPosition.Buffer calloc(int capacity)
NVGGlyphPosition.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NVGGlyphPosition.Buffer create(int capacity)
NVGGlyphPosition.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static NVGGlyphPosition.Buffer create(long address, int capacity)
NVGGlyphPosition.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NVGGlyphPosition.Buffer createSafe(long address, int capacity)
public static NVGGlyphPosition mallocStack()
NVGGlyphPosition instance allocated on the thread-local MemoryStack.public static NVGGlyphPosition callocStack()
NVGGlyphPosition instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static NVGGlyphPosition mallocStack(org.lwjgl.system.MemoryStack stack)
NVGGlyphPosition instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static NVGGlyphPosition callocStack(org.lwjgl.system.MemoryStack stack)
NVGGlyphPosition instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static NVGGlyphPosition.Buffer mallocStack(int capacity)
NVGGlyphPosition.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static NVGGlyphPosition.Buffer callocStack(int capacity)
NVGGlyphPosition.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static NVGGlyphPosition.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NVGGlyphPosition.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NVGGlyphPosition.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NVGGlyphPosition.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 nstr(long struct)
str().public static float nx(long struct)
x().public static float nminx(long struct)
minx().public static float nmaxx(long struct)
maxx().Copyright LWJGL. All Rights Reserved. License terms.