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