Package org.lwjgl.nuklear
Class NkClipboard
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct nk_clipboard {
nk_handle userdata;
nk_plugin_paste paste;
nk_plugin_copy copy;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionNkClipboard(ByteBuffer container) Creates aNkClipboardinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic NkClipboardcalloc()Returns a newNkClipboardinstance allocated withmemCalloc.static NkClipboard.Buffercalloc(int capacity) Returns a newNkClipboard.Bufferinstance allocated withmemCalloc.static NkClipboard.Buffercalloc(int capacity, MemoryStack stack) Returns a newNkClipboard.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkClipboardcalloc(MemoryStack stack) Returns a newNkClipboardinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.@Nullable NkPluginCopycopy()copy(@Nullable 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 @Nullable NkClipboardcreateSafe(long address) static @Nullable 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, MemoryStack stack) Returns a newNkClipboard.Bufferinstance allocated on the specifiedMemoryStack.static NkClipboardmalloc(MemoryStack stack) Returns a newNkClipboardinstance allocated on the specifiedMemoryStack.static @Nullable NkPluginCopyncopy(long struct) Unsafe version ofcopy().static voidncopy(long struct, @Nullable NkPluginCopyI value) Unsafe version ofcopy.static @Nullable NkPluginPastenpaste(long struct) Unsafe version ofpaste().static voidnpaste(long struct, @Nullable NkPluginPasteI value) Unsafe version ofpaste.static NkHandlenuserdata(long struct) Unsafe version ofuserdata().static voidUnsafe version ofuserdata.@Nullable NkPluginPastepaste()paste(@Nullable NkPluginPasteI value) Sets the specified value to thepastefield.set(NkClipboard src) Copies the specified struct data to this struct.set(NkHandle userdata, NkPluginPasteI paste, NkPluginCopyI copy) Initializes this struct with the specified values.intsizeof()Returnssizeof(struct).userdata()Passes theuserdatafield to the specifiedConsumer.Copies the specifiedNkHandleto theuserdatafield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
USERDATA
public static final int USERDATAThe struct member offsets. -
PASTE
public static final int PASTEThe struct member offsets. -
COPY
public static final int COPYThe struct member offsets.
-
-
Constructor Details
-
NkClipboard
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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<NkClipboard>
-
userdata
- Returns:
- a
NkHandleview of theuserdatafield.
-
paste
- Returns:
- the value of the
pastefield.
-
copy
- Returns:
- the value of the
copyfield.
-
userdata
Copies the specifiedNkHandleto theuserdatafield. -
userdata
Passes theuserdatafield to the specifiedConsumer. -
paste
Sets the specified value to thepastefield. -
copy
Sets the specified value to thecopyfield. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newNkClipboardinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newNkClipboardinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newNkClipboardinstance allocated withBufferUtils. -
create
Returns a newNkClipboardinstance for the specified memory address. -
createSafe
-
malloc
Returns a newNkClipboard.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newNkClipboard.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newNkClipboard.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aNkClipboard.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newNkClipboardinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newNkClipboardinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newNkClipboard.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newNkClipboard.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nuserdata
Unsafe version ofuserdata(). -
npaste
Unsafe version ofpaste(). -
ncopy
Unsafe version ofcopy(). -
nuserdata
Unsafe version ofuserdata. -
npaste
Unsafe version ofpaste. -
ncopy
Unsafe version ofcopy.
-