public class NkStyleText
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct nk_style_text {
struct nk_color color;
struct nk_vec2 padding;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkStyleText.Buffer
An array of
NkStyleText structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
COLOR
The struct member offsets.
|
static int |
PADDING
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
NkStyleText(java.nio.ByteBuffer container)
Creates a
NkStyleText instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static NkStyleText |
calloc()
Returns a new
NkStyleText instance allocated with memCalloc. |
static NkStyleText.Buffer |
calloc(int capacity)
Returns a new
NkStyleText.Buffer instance allocated with memCalloc. |
static NkStyleText |
callocStack()
Returns a new
NkStyleText instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkStyleText.Buffer |
callocStack(int capacity)
Returns a new
NkStyleText.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkStyleText.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleText.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NkStyleText |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleText instance allocated on the specified MemoryStack and initializes all its bits to zero. |
NkColor |
color()
Returns a
NkColor view of the color field. |
NkStyleText |
color(java.util.function.Consumer<NkColor> consumer)
Passes the
color field to the specified Consumer. |
NkStyleText |
color(NkColor value)
Copies the specified
NkColor to the color field. |
static NkStyleText |
create()
Returns a new
NkStyleText instance allocated with BufferUtils. |
static NkStyleText.Buffer |
create(int capacity)
Returns a new
NkStyleText.Buffer instance allocated with BufferUtils. |
static NkStyleText |
create(long address)
Returns a new
NkStyleText instance for the specified memory address. |
static NkStyleText.Buffer |
create(long address,
int capacity)
Create a
NkStyleText.Buffer instance at the specified memory. |
static NkStyleText |
createSafe(long address)
|
static NkStyleText.Buffer |
createSafe(long address,
int capacity)
|
static NkStyleText |
malloc()
Returns a new
NkStyleText instance allocated with memAlloc. |
static NkStyleText.Buffer |
malloc(int capacity)
Returns a new
NkStyleText.Buffer instance allocated with memAlloc. |
static NkStyleText |
mallocStack()
Returns a new
NkStyleText instance allocated on the thread-local MemoryStack. |
static NkStyleText.Buffer |
mallocStack(int capacity)
Returns a new
NkStyleText.Buffer instance allocated on the thread-local MemoryStack. |
static NkStyleText.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleText.Buffer instance allocated on the specified MemoryStack. |
static NkStyleText |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleText instance allocated on the specified MemoryStack. |
static NkColor |
ncolor(long struct)
Unsafe version of
color(). |
static void |
ncolor(long struct,
NkColor value)
Unsafe version of
color. |
static NkVec2 |
npadding(long struct)
Unsafe version of
padding(). |
static void |
npadding(long struct,
NkVec2 value)
Unsafe version of
padding. |
NkVec2 |
padding()
Returns a
NkVec2 view of the padding field. |
NkStyleText |
padding(java.util.function.Consumer<NkVec2> consumer)
Passes the
padding field to the specified Consumer. |
NkStyleText |
padding(NkVec2 value)
Copies the specified
NkVec2 to the padding field. |
NkStyleText |
set(NkColor color,
NkVec2 padding)
Initializes this struct with the specified values.
|
NkStyleText |
set(NkStyleText src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int COLOR
public static final int PADDING
public NkStyleText(java.nio.ByteBuffer container)
NkStyleText 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 NkStyleText color(NkColor value)
NkColor to the color field.public NkStyleText color(java.util.function.Consumer<NkColor> consumer)
color field to the specified Consumer.public NkStyleText padding(NkVec2 value)
NkVec2 to the padding field.public NkStyleText padding(java.util.function.Consumer<NkVec2> consumer)
padding field to the specified Consumer.public NkStyleText set(NkColor color, NkVec2 padding)
public NkStyleText set(NkStyleText src)
src - the source structpublic static NkStyleText malloc()
NkStyleText instance allocated with memAlloc. The instance must be explicitly freed.public static NkStyleText calloc()
NkStyleText instance allocated with memCalloc. The instance must be explicitly freed.public static NkStyleText create()
NkStyleText instance allocated with BufferUtils.public static NkStyleText create(long address)
NkStyleText instance for the specified memory address.@Nullable public static NkStyleText createSafe(long address)
public static NkStyleText.Buffer malloc(int capacity)
NkStyleText.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkStyleText.Buffer calloc(int capacity)
NkStyleText.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkStyleText.Buffer create(int capacity)
NkStyleText.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static NkStyleText.Buffer create(long address, int capacity)
NkStyleText.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkStyleText.Buffer createSafe(long address, int capacity)
public static NkStyleText mallocStack()
NkStyleText instance allocated on the thread-local MemoryStack.public static NkStyleText callocStack()
NkStyleText instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static NkStyleText mallocStack(org.lwjgl.system.MemoryStack stack)
NkStyleText instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static NkStyleText callocStack(org.lwjgl.system.MemoryStack stack)
NkStyleText instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static NkStyleText.Buffer mallocStack(int capacity)
NkStyleText.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static NkStyleText.Buffer callocStack(int capacity)
NkStyleText.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static NkStyleText.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkStyleText.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NkStyleText.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkStyleText.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacityCopyright LWJGL. All Rights Reserved. License terms.