public static class NkClipboard.Buffer extends org.lwjgl.system.StructBuffer<NkClipboard,NkClipboard.Buffer> implements org.lwjgl.system.NativeResource
NkClipboard structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
NkClipboard.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
NkPluginCopy |
copy()
Returns the value of the
copy field. |
NkClipboard.Buffer |
copy(NkPluginCopyI value)
Sets the specified value to the
copy field. |
NkPluginPaste |
paste()
Returns the value of the
paste field. |
NkClipboard.Buffer |
paste(NkPluginPasteI value)
Sets the specified value to the
paste field. |
NkHandle |
userdata()
Returns a
NkHandle view of the userdata field. |
NkClipboard.Buffer |
userdata(java.util.function.Consumer<NkHandle> consumer)
Passes the
userdata field to the specified Consumer. |
NkClipboard.Buffer |
userdata(NkHandle value)
Copies the specified
NkHandle to the userdata field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
NkClipboard.Buffer instance backed by the specified container.
Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by NkClipboard.SIZEOF, and its mark will be undefined.
The created buffer instance holds a strong reference to the container object.
public Buffer(long address,
int cap)
@Nullable public NkPluginPaste paste()
paste field.@Nullable public NkPluginCopy copy()
copy field.public NkClipboard.Buffer userdata(NkHandle value)
NkHandle to the userdata field.public NkClipboard.Buffer userdata(java.util.function.Consumer<NkHandle> consumer)
userdata field to the specified Consumer.public NkClipboard.Buffer paste(@Nullable NkPluginPasteI value)
paste field.public NkClipboard.Buffer copy(@Nullable NkPluginCopyI value)
copy field.Copyright LWJGL. All Rights Reserved. License terms.