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.NativeResourceLayout
struct nk_clipboard {nk_handleuserdata;nk_plugin_pastepaste;nk_plugin_copycopy; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkClipboard.BufferAn array ofNkClipboardstructs.
-
Constructor Summary
Constructors Constructor Description NkClipboard(java.nio.ByteBuffer container)Creates aNkClipboardinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NkClipboardcalloc()Returns a newNkClipboardinstance allocated withmemCalloc.static NkClipboard.Buffercalloc(int capacity)Returns a newNkClipboard.Bufferinstance allocated withmemCalloc.static NkClipboardcallocStack()Returns a newNkClipboardinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkClipboard.BuffercallocStack(int capacity)Returns a newNkClipboard.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkClipboard.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkClipboard.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkClipboardcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkClipboardinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.NkPluginCopycopy()Returns the value of thecopyfield.NkClipboardcopy(NkPluginCopyI value)Sets the specified value to thecopyfield.static NkClipboardcreate()Returns a newNkClipboardinstance allocated withBufferUtils.static NkClipboard.Buffercreate(int capacity)Returns a newNkClipboard.Bufferinstance allocated withBufferUtils.static NkClipboardcreate(long address)Returns a newNkClipboardinstance for the specified memory address.static NkClipboard.Buffercreate(long address, int capacity)Create aNkClipboard.Bufferinstance at the specified memory.static NkClipboardcreateSafe(long address)static NkClipboard.BuffercreateSafe(long address, int capacity)static NkClipboardmalloc()Returns a newNkClipboardinstance allocated withmemAlloc.static NkClipboard.Buffermalloc(int capacity)Returns a newNkClipboard.Bufferinstance allocated withmemAlloc.static NkClipboardmallocStack()Returns a newNkClipboardinstance allocated on the thread-localMemoryStack.static NkClipboard.BuffermallocStack(int capacity)Returns a newNkClipboard.Bufferinstance allocated on the thread-localMemoryStack.static NkClipboard.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkClipboard.Bufferinstance allocated on the specifiedMemoryStack.static NkClipboardmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkClipboardinstance allocated on the specifiedMemoryStack.static NkPluginCopyncopy(long struct)Unsafe version ofcopy().static voidncopy(long struct, NkPluginCopyI value)Unsafe version ofcopy.static NkPluginPastenpaste(long struct)Unsafe version ofpaste().static voidnpaste(long struct, NkPluginPasteI value)Unsafe version ofpaste.static NkHandlenuserdata(long struct)Unsafe version ofuserdata().static voidnuserdata(long struct, NkHandle value)Unsafe version ofuserdata.NkPluginPastepaste()Returns the value of thepastefield.NkClipboardpaste(NkPluginPasteI value)Sets the specified value to thepastefield.NkClipboardset(NkClipboard src)Copies the specified struct data to this struct.NkClipboardset(NkHandle userdata, NkPluginPasteI paste, NkPluginCopyI copy)Initializes this struct with the specified values.intsizeof()NkHandleuserdata()Returns aNkHandleview of theuserdatafield.NkClipboarduserdata(java.util.function.Consumer<NkHandle> consumer)Passes theuserdatafield to the specifiedConsumer.NkClipboarduserdata(NkHandle value)Copies the specifiedNkHandleto theuserdatafield.
-
-
-
Constructor Detail
-
NkClipboard
public NkClipboard(java.nio.ByteBuffer container)
Creates aNkClipboardinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
userdata
public NkClipboard userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdatafield to the specifiedConsumer.
-
paste
@Nullable public NkPluginPaste paste()
Returns the value of thepastefield.
-
copy
@Nullable public NkPluginCopy copy()
Returns the value of thecopyfield.
-
userdata
public NkClipboard userdata(NkHandle value)
Copies the specifiedNkHandleto theuserdatafield.
-
paste
public NkClipboard paste(@Nullable NkPluginPasteI value)
Sets the specified value to thepastefield.
-
copy
public NkClipboard copy(@Nullable NkPluginCopyI value)
Sets the specified value to thecopyfield.
-
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 newNkClipboardinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static NkClipboard calloc()
Returns a newNkClipboardinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static NkClipboard create()
Returns a newNkClipboardinstance allocated withBufferUtils.
-
create
public static NkClipboard create(long address)
Returns a newNkClipboardinstance for the specified memory address.
-
createSafe
@Nullable public static NkClipboard createSafe(long address)
-
malloc
public static NkClipboard.Buffer malloc(int capacity)
Returns a newNkClipboard.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static NkClipboard.Buffer calloc(int capacity)
Returns a newNkClipboard.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static NkClipboard.Buffer create(int capacity)
Returns a newNkClipboard.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static NkClipboard.Buffer create(long address, int capacity)
Create aNkClipboard.Bufferinstance 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 newNkClipboardinstance allocated on the thread-localMemoryStack.
-
callocStack
public static NkClipboard callocStack()
Returns a newNkClipboardinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static NkClipboard mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkClipboardinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static NkClipboard callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkClipboardinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static NkClipboard.Buffer callocStack(int capacity)
Returns a newNkClipboard.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-