Package org.lwjgl.nuklear
Class NkClipboard
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkClipboard
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class NkClipboard extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Layout
struct nk_clipboard {
nk_handle
userdata;nk_plugin_paste
paste;nk_plugin_copy
copy; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NkClipboard.Buffer
An array ofNkClipboard
structs.
-
Constructor Summary
Constructors Constructor Description NkClipboard(java.nio.ByteBuffer container)
Creates aNkClipboard
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NkClipboard
calloc()
Returns a newNkClipboard
instance allocated withmemCalloc
.static NkClipboard.Buffer
calloc(int capacity)
Returns a newNkClipboard.Buffer
instance allocated withmemCalloc
.static NkClipboard
callocStack()
Returns a newNkClipboard
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NkClipboard.Buffer
callocStack(int capacity)
Returns a newNkClipboard.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NkClipboard.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkClipboard.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkClipboard
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkClipboard
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.NkPluginCopy
copy()
Returns the value of thecopy
field.NkClipboard
copy(NkPluginCopyI value)
Sets the specified value to thecopy
field.static NkClipboard
create()
Returns a newNkClipboard
instance allocated withBufferUtils
.static NkClipboard.Buffer
create(int capacity)
Returns a newNkClipboard.Buffer
instance allocated withBufferUtils
.static NkClipboard
create(long address)
Returns a newNkClipboard
instance for the specified memory address.static NkClipboard.Buffer
create(long address, int capacity)
Create aNkClipboard.Buffer
instance at the specified memory.static NkClipboard
createSafe(long address)
static NkClipboard.Buffer
createSafe(long address, int capacity)
static NkClipboard
malloc()
Returns a newNkClipboard
instance allocated withmemAlloc
.static NkClipboard.Buffer
malloc(int capacity)
Returns a newNkClipboard.Buffer
instance allocated withmemAlloc
.static NkClipboard
mallocStack()
Returns a newNkClipboard
instance allocated on the thread-localMemoryStack
.static NkClipboard.Buffer
mallocStack(int capacity)
Returns a newNkClipboard.Buffer
instance allocated on the thread-localMemoryStack
.static NkClipboard.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkClipboard.Buffer
instance allocated on the specifiedMemoryStack
.static NkClipboard
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkClipboard
instance allocated on the specifiedMemoryStack
.static NkPluginCopy
ncopy(long struct)
Unsafe version ofcopy()
.static void
ncopy(long struct, NkPluginCopyI value)
Unsafe version ofcopy
.static NkPluginPaste
npaste(long struct)
Unsafe version ofpaste()
.static void
npaste(long struct, NkPluginPasteI value)
Unsafe version ofpaste
.static NkHandle
nuserdata(long struct)
Unsafe version ofuserdata()
.static void
nuserdata(long struct, NkHandle value)
Unsafe version ofuserdata
.NkPluginPaste
paste()
Returns the value of thepaste
field.NkClipboard
paste(NkPluginPasteI value)
Sets the specified value to thepaste
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 aNkHandle
view of theuserdata
field.NkClipboard
userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdata
field to the specifiedConsumer
.NkClipboard
userdata(NkHandle value)
Copies the specifiedNkHandle
to theuserdata
field.
-
-
-
Constructor Detail
-
NkClipboard
public NkClipboard(java.nio.ByteBuffer container)
Creates aNkClipboard
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
paste
@Nullable public NkPluginPaste paste()
Returns the value of thepaste
field.
-
copy
@Nullable public NkPluginCopy copy()
Returns the value of thecopy
field.
-
userdata
public NkClipboard userdata(NkHandle value)
Copies the specifiedNkHandle
to theuserdata
field.
-
userdata
public NkClipboard userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdata
field to the specifiedConsumer
.
-
paste
public NkClipboard paste(@Nullable NkPluginPasteI value)
Sets the specified value to thepaste
field.
-
copy
public NkClipboard copy(@Nullable NkPluginCopyI value)
Sets the specified value to thecopy
field.
-
set
public NkClipboard set(NkHandle userdata, NkPluginPasteI paste, NkPluginCopyI copy)
Initializes this struct with the specified values.
-
set
public NkClipboard set(NkClipboard src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static NkClipboard malloc()
Returns a newNkClipboard
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static NkClipboard calloc()
Returns a newNkClipboard
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static NkClipboard create()
Returns a newNkClipboard
instance allocated withBufferUtils
.
-
create
public static NkClipboard create(long address)
Returns a newNkClipboard
instance for the specified memory address.
-
createSafe
@Nullable public static NkClipboard createSafe(long address)
-
malloc
public static NkClipboard.Buffer malloc(int capacity)
Returns a newNkClipboard.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static NkClipboard.Buffer calloc(int capacity)
Returns a newNkClipboard.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static NkClipboard.Buffer create(int capacity)
Returns a newNkClipboard.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static NkClipboard.Buffer create(long address, int capacity)
Create aNkClipboard.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static NkClipboard.Buffer createSafe(long address, int capacity)
-
mallocStack
public static NkClipboard mallocStack()
Returns a newNkClipboard
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static NkClipboard callocStack()
Returns a newNkClipboard
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static NkClipboard mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkClipboard
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static NkClipboard callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkClipboard
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static NkClipboard.Buffer mallocStack(int capacity)
Returns a newNkClipboard.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static NkClipboard.Buffer callocStack(int capacity)
Returns a newNkClipboard.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static NkClipboard.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkClipboard.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static NkClipboard.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkClipboard.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nuserdata
public static NkHandle nuserdata(long struct)
Unsafe version ofuserdata()
.
-
npaste
@Nullable public static NkPluginPaste npaste(long struct)
Unsafe version ofpaste()
.
-
ncopy
@Nullable public static NkPluginCopy ncopy(long struct)
Unsafe version ofcopy()
.
-
npaste
public static void npaste(long struct, @Nullable NkPluginPasteI value)
Unsafe version ofpaste
.
-
ncopy
public static void ncopy(long struct, @Nullable NkPluginCopyI value)
Unsafe version ofcopy
.
-
-