public class NkClipboard
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct nk_clipboard {
nk_handle userdata;
nk_plugin_paste paste;
nk_plugin_copy copy;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkClipboard.Buffer
An array of
NkClipboard structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
COPY
The struct member offsets.
|
static int |
PASTE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
USERDATA
The struct member offsets.
|
| Constructor and Description |
|---|
NkClipboard(java.nio.ByteBuffer container)
Creates a
NkClipboard instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static NkClipboard |
calloc()
Returns a new
NkClipboard instance allocated with memCalloc. |
static NkClipboard.Buffer |
calloc(int capacity)
Returns a new
NkClipboard.Buffer instance allocated with memCalloc. |
static NkClipboard |
callocStack()
Returns a new
NkClipboard instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkClipboard.Buffer |
callocStack(int capacity)
Returns a new
NkClipboard.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkClipboard.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkClipboard.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NkClipboard |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkClipboard instance allocated on the specified MemoryStack and initializes all its bits to zero. |
NkPluginCopy |
copy()
Returns the value of the
copy field. |
NkClipboard |
copy(NkPluginCopyI value)
Sets the specified value to the
copy field. |
static NkClipboard |
create()
Returns a new
NkClipboard instance allocated with BufferUtils. |
static NkClipboard.Buffer |
create(int capacity)
Returns a new
NkClipboard.Buffer instance allocated with BufferUtils. |
static NkClipboard |
create(long address)
Returns a new
NkClipboard instance for the specified memory address. |
static NkClipboard.Buffer |
create(long address,
int capacity)
Create a
NkClipboard.Buffer instance at the specified memory. |
static NkClipboard |
createSafe(long address)
|
static NkClipboard.Buffer |
createSafe(long address,
int capacity)
|
static NkClipboard |
malloc()
Returns a new
NkClipboard instance allocated with memAlloc. |
static NkClipboard.Buffer |
malloc(int capacity)
Returns a new
NkClipboard.Buffer instance allocated with memAlloc. |
static NkClipboard |
mallocStack()
Returns a new
NkClipboard instance allocated on the thread-local MemoryStack. |
static NkClipboard.Buffer |
mallocStack(int capacity)
Returns a new
NkClipboard.Buffer instance allocated on the thread-local MemoryStack. |
static NkClipboard.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkClipboard.Buffer instance allocated on the specified MemoryStack. |
static NkClipboard |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkClipboard instance allocated on the specified MemoryStack. |
static NkPluginCopy |
ncopy(long struct)
Unsafe version of
copy(). |
static void |
ncopy(long struct,
NkPluginCopyI value)
Unsafe version of
copy. |
static NkPluginPaste |
npaste(long struct)
Unsafe version of
paste(). |
static void |
npaste(long struct,
NkPluginPasteI value)
Unsafe version of
paste. |
static NkHandle |
nuserdata(long struct)
Unsafe version of
userdata(). |
static void |
nuserdata(long struct,
NkHandle value)
Unsafe version of
userdata. |
NkPluginPaste |
paste()
Returns the value of the
paste field. |
NkClipboard |
paste(NkPluginPasteI value)
Sets the specified value to the
paste field. |
NkClipboard |
set(NkClipboard src)
Copies the specified struct data to this struct.
|
NkClipboard |
set(NkHandle userdata,
NkPluginPasteI paste,
NkPluginCopyI copy)
Initializes this struct with the specified values.
|
int |
sizeof() |
NkHandle |
userdata()
Returns a
NkHandle view of the userdata field. |
NkClipboard |
userdata(java.util.function.Consumer<NkHandle> consumer)
Passes the
userdata field to the specified Consumer. |
NkClipboard |
userdata(NkHandle value)
Copies the specified
NkHandle to the userdata field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int USERDATA
public static final int PASTE
public static final int COPY
public NkClipboard(java.nio.ByteBuffer container)
NkClipboard 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.Struct@Nullable public NkPluginPaste paste()
paste field.@Nullable public NkPluginCopy copy()
copy field.public NkClipboard userdata(NkHandle value)
NkHandle to the userdata field.public NkClipboard userdata(java.util.function.Consumer<NkHandle> consumer)
userdata field to the specified Consumer.public NkClipboard paste(@Nullable NkPluginPasteI value)
paste field.public NkClipboard copy(@Nullable NkPluginCopyI value)
copy field.public NkClipboard set(NkHandle userdata, NkPluginPasteI paste, NkPluginCopyI copy)
public NkClipboard set(NkClipboard src)
src - the source structpublic static NkClipboard malloc()
NkClipboard instance allocated with memAlloc. The instance must be explicitly freed.public static NkClipboard calloc()
NkClipboard instance allocated with memCalloc. The instance must be explicitly freed.public static NkClipboard create()
NkClipboard instance allocated with BufferUtils.public static NkClipboard create(long address)
NkClipboard instance for the specified memory address.@Nullable public static NkClipboard createSafe(long address)
public static NkClipboard.Buffer malloc(int capacity)
NkClipboard.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkClipboard.Buffer calloc(int capacity)
NkClipboard.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkClipboard.Buffer create(int capacity)
NkClipboard.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static NkClipboard.Buffer create(long address, int capacity)
NkClipboard.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkClipboard.Buffer createSafe(long address, int capacity)
public static NkClipboard mallocStack()
NkClipboard instance allocated on the thread-local MemoryStack.public static NkClipboard callocStack()
NkClipboard instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static NkClipboard mallocStack(org.lwjgl.system.MemoryStack stack)
NkClipboard instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static NkClipboard callocStack(org.lwjgl.system.MemoryStack stack)
NkClipboard instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static NkClipboard.Buffer mallocStack(int capacity)
NkClipboard.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static NkClipboard.Buffer callocStack(int capacity)
NkClipboard.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static NkClipboard.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkClipboard.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NkClipboard.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkClipboard.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 NkHandle nuserdata(long struct)
userdata().@Nullable public static NkPluginPaste npaste(long struct)
paste().@Nullable public static NkPluginCopy ncopy(long struct)
copy().public static void npaste(long struct,
@Nullable
NkPluginPasteI value)
paste.public static void ncopy(long struct,
@Nullable
NkPluginCopyI value)
copy.Copyright LWJGL. All Rights Reserved. License terms.