Package org.lwjgl.nuklear
Class NkDrawNullTexture
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkDrawNullTexture
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class NkDrawNullTexture extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Member documentation
texture
– texture handle to a texture with a white pixeluv
– coordinates to a white pixel in the texture
Layout
struct nk_draw_null_texture {
nk_handle
texture;struct nk_vec2
uv; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NkDrawNullTexture.Buffer
An array ofNkDrawNullTexture
structs.
-
Constructor Summary
Constructors Constructor Description NkDrawNullTexture(java.nio.ByteBuffer container)
Creates aNkDrawNullTexture
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 NkDrawNullTexture
calloc()
Returns a newNkDrawNullTexture
instance allocated withmemCalloc
.static NkDrawNullTexture.Buffer
calloc(int capacity)
Returns a newNkDrawNullTexture.Buffer
instance allocated withmemCalloc
.static NkDrawNullTexture
callocStack()
Returns a newNkDrawNullTexture
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NkDrawNullTexture.Buffer
callocStack(int capacity)
Returns a newNkDrawNullTexture.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NkDrawNullTexture.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkDrawNullTexture.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkDrawNullTexture
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkDrawNullTexture
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkDrawNullTexture
create()
Returns a newNkDrawNullTexture
instance allocated withBufferUtils
.static NkDrawNullTexture.Buffer
create(int capacity)
Returns a newNkDrawNullTexture.Buffer
instance allocated withBufferUtils
.static NkDrawNullTexture
create(long address)
Returns a newNkDrawNullTexture
instance for the specified memory address.static NkDrawNullTexture.Buffer
create(long address, int capacity)
Create aNkDrawNullTexture.Buffer
instance at the specified memory.static NkDrawNullTexture
createSafe(long address)
static NkDrawNullTexture.Buffer
createSafe(long address, int capacity)
static NkDrawNullTexture
malloc()
Returns a newNkDrawNullTexture
instance allocated withmemAlloc
.static NkDrawNullTexture.Buffer
malloc(int capacity)
Returns a newNkDrawNullTexture.Buffer
instance allocated withmemAlloc
.static NkDrawNullTexture
mallocStack()
Returns a newNkDrawNullTexture
instance allocated on the thread-localMemoryStack
.static NkDrawNullTexture.Buffer
mallocStack(int capacity)
Returns a newNkDrawNullTexture.Buffer
instance allocated on the thread-localMemoryStack
.static NkDrawNullTexture.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkDrawNullTexture.Buffer
instance allocated on the specifiedMemoryStack
.static NkDrawNullTexture
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkDrawNullTexture
instance allocated on the specifiedMemoryStack
.static NkHandle
ntexture(long struct)
Unsafe version oftexture()
.static void
ntexture(long struct, NkHandle value)
Unsafe version oftexture
.static NkVec2
nuv(long struct)
Unsafe version ofuv()
.static void
nuv(long struct, NkVec2 value)
Unsafe version ofuv
.NkDrawNullTexture
set(NkDrawNullTexture src)
Copies the specified struct data to this struct.NkDrawNullTexture
set(NkHandle texture, NkVec2 uv)
Initializes this struct with the specified values.int
sizeof()
NkHandle
texture()
Returns aNkHandle
view of thetexture
field.NkDrawNullTexture
texture(java.util.function.Consumer<NkHandle> consumer)
Passes thetexture
field to the specifiedConsumer
.NkDrawNullTexture
texture(NkHandle value)
Copies the specifiedNkHandle
to thetexture
field.NkVec2
uv()
Returns aNkVec2
view of theuv
field.NkDrawNullTexture
uv(java.util.function.Consumer<NkVec2> consumer)
Passes theuv
field to the specifiedConsumer
.NkDrawNullTexture
uv(NkVec2 value)
Copies the specifiedNkVec2
to theuv
field.
-
-
-
Constructor Detail
-
NkDrawNullTexture
public NkDrawNullTexture(java.nio.ByteBuffer container)
Creates aNkDrawNullTexture
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
-
texture
public NkDrawNullTexture texture(NkHandle value)
Copies the specifiedNkHandle
to thetexture
field.
-
texture
public NkDrawNullTexture texture(java.util.function.Consumer<NkHandle> consumer)
Passes thetexture
field to the specifiedConsumer
.
-
uv
public NkDrawNullTexture uv(NkVec2 value)
Copies the specifiedNkVec2
to theuv
field.
-
uv
public NkDrawNullTexture uv(java.util.function.Consumer<NkVec2> consumer)
Passes theuv
field to the specifiedConsumer
.
-
set
public NkDrawNullTexture set(NkHandle texture, NkVec2 uv)
Initializes this struct with the specified values.
-
set
public NkDrawNullTexture set(NkDrawNullTexture src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static NkDrawNullTexture malloc()
Returns a newNkDrawNullTexture
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static NkDrawNullTexture calloc()
Returns a newNkDrawNullTexture
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static NkDrawNullTexture create()
Returns a newNkDrawNullTexture
instance allocated withBufferUtils
.
-
create
public static NkDrawNullTexture create(long address)
Returns a newNkDrawNullTexture
instance for the specified memory address.
-
createSafe
@Nullable public static NkDrawNullTexture createSafe(long address)
-
malloc
public static NkDrawNullTexture.Buffer malloc(int capacity)
Returns a newNkDrawNullTexture.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static NkDrawNullTexture.Buffer calloc(int capacity)
Returns a newNkDrawNullTexture.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static NkDrawNullTexture.Buffer create(int capacity)
Returns a newNkDrawNullTexture.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static NkDrawNullTexture.Buffer create(long address, int capacity)
Create aNkDrawNullTexture.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static NkDrawNullTexture.Buffer createSafe(long address, int capacity)
-
mallocStack
public static NkDrawNullTexture mallocStack()
Returns a newNkDrawNullTexture
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static NkDrawNullTexture callocStack()
Returns a newNkDrawNullTexture
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static NkDrawNullTexture mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkDrawNullTexture
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static NkDrawNullTexture callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkDrawNullTexture
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static NkDrawNullTexture.Buffer mallocStack(int capacity)
Returns a newNkDrawNullTexture.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static NkDrawNullTexture.Buffer callocStack(int capacity)
Returns a newNkDrawNullTexture.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static NkDrawNullTexture.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkDrawNullTexture.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static NkDrawNullTexture.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkDrawNullTexture.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-