Package org.lwjgl.nuklear
Class NkClipboard
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct nk_clipboard {
{@link NkHandle nk_handle} userdata;
{@link NkPluginPasteI nk_plugin_paste} paste;
{@link NkPluginCopyI nk_plugin_copy} copy;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The 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 aNkClipboard
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic NkClipboard
calloc()
Returns a newNkClipboard
instance allocated withmemCalloc
.static NkClipboard.Buffer
calloc
(int capacity) Returns a newNkClipboard.Buffer
instance allocated withmemCalloc
.static NkClipboard.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newNkClipboard.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkClipboard
calloc
(MemoryStack stack) Returns a newNkClipboard
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkClipboard
Deprecated.static NkClipboard.Buffer
callocStack
(int capacity) Deprecated.static NkClipboard.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static NkClipboard
callocStack
(MemoryStack stack) Deprecated.@Nullable NkPluginCopy
copy()
copy
(@Nullable 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 @Nullable NkClipboard
createSafe
(long address) static @Nullable 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.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newNkClipboard.Buffer
instance allocated on the specifiedMemoryStack
.static NkClipboard
malloc
(MemoryStack stack) Returns a newNkClipboard
instance allocated on the specifiedMemoryStack
.static NkClipboard
Deprecated.static NkClipboard.Buffer
mallocStack
(int capacity) Deprecated.static NkClipboard.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static NkClipboard
mallocStack
(MemoryStack stack) Deprecated.static @Nullable NkPluginCopy
ncopy
(long struct) Unsafe version ofcopy()
.static void
ncopy
(long struct, @Nullable NkPluginCopyI value) Unsafe version ofcopy
.static @Nullable NkPluginPaste
npaste
(long struct) Unsafe version ofpaste()
.static void
npaste
(long struct, @Nullable NkPluginPasteI value) Unsafe version ofpaste
.static NkHandle
nuserdata
(long struct) Unsafe version ofuserdata()
.static void
Unsafe version ofuserdata
.@Nullable NkPluginPaste
paste()
paste
(@Nullable NkPluginPasteI value) Sets the specified value to thepaste
field.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.int
sizeof()
Returnssizeof(struct)
.userdata()
Passes theuserdata
field to the specifiedConsumer
.Copies the specifiedNkHandle
to theuserdata
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<NkClipboard>
-
userdata
- Returns:
- a
NkHandle
view of theuserdata
field.
-
paste
- Returns:
- the value of the
paste
field.
-
copy
- Returns:
- the value of the
copy
field.
-
userdata
Copies the specifiedNkHandle
to theuserdata
field. -
userdata
Passes theuserdata
field to the specifiedConsumer
. -
paste
Sets the specified value to thepaste
field. -
copy
Sets the specified value to thecopy
field. -
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 newNkClipboard
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newNkClipboard
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newNkClipboard
instance allocated withBufferUtils
. -
create
Returns a newNkClipboard
instance for the specified memory address. -
createSafe
-
malloc
Returns a newNkClipboard.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newNkClipboard.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newNkClipboard.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aNkClipboard.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newNkClipboard
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newNkClipboard
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newNkClipboard.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newNkClipboard.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-