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 Deprecated 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 NkClipboard.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkClipboard.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkClipboardcalloc(org.lwjgl.system.MemoryStack stack)Returns a newNkClipboardinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkClipboardcallocStack()Deprecated.static NkClipboard.BuffercallocStack(int capacity)Deprecated.static NkClipboard.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static NkClipboardcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.NkPluginCopycopy()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 NkClipboard.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkClipboard.Bufferinstance allocated on the specifiedMemoryStack.static NkClipboardmalloc(org.lwjgl.system.MemoryStack stack)Returns a newNkClipboardinstance allocated on the specifiedMemoryStack.static NkClipboardmallocStack()Deprecated.static NkClipboard.BuffermallocStack(int capacity)Deprecated.static NkClipboard.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static NkClipboardmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()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()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
-
paste
@Nullable public NkPluginPaste paste()
- Returns:
- the value of the
pastefield.
-
copy
@Nullable public NkPluginCopy copy()
- Returns:
- the value of the
copyfield.
-
userdata
public NkClipboard userdata(NkHandle value)
Copies the specifiedNkHandleto theuserdatafield.
-
userdata
public NkClipboard userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdatafield to the specifiedConsumer.
-
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
@Deprecated public static NkClipboard mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static NkClipboard callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static NkClipboard mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static NkClipboard callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static NkClipboard.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static NkClipboard.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static NkClipboard.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static NkClipboard.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static NkClipboard malloc(org.lwjgl.system.MemoryStack stack)
Returns a newNkClipboardinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static NkClipboard calloc(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
-
malloc
public static NkClipboard.Buffer malloc(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
-
calloc
public static NkClipboard.Buffer calloc(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.
-
-