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.NativeResourceMember 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_handletexture;struct nk_vec2uv; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkDrawNullTexture.BufferAn array ofNkDrawNullTexturestructs.
-
Constructor Summary
Constructors Constructor Description NkDrawNullTexture(java.nio.ByteBuffer container)Creates aNkDrawNullTextureinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NkDrawNullTexturecalloc()Returns a newNkDrawNullTextureinstance allocated withmemCalloc.static NkDrawNullTexture.Buffercalloc(int capacity)Returns a newNkDrawNullTexture.Bufferinstance allocated withmemCalloc.static NkDrawNullTexturecallocStack()Returns a newNkDrawNullTextureinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkDrawNullTexture.BuffercallocStack(int capacity)Returns a newNkDrawNullTexture.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkDrawNullTexture.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkDrawNullTexture.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkDrawNullTexturecallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkDrawNullTextureinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkDrawNullTexturecreate()Returns a newNkDrawNullTextureinstance allocated withBufferUtils.static NkDrawNullTexture.Buffercreate(int capacity)Returns a newNkDrawNullTexture.Bufferinstance allocated withBufferUtils.static NkDrawNullTexturecreate(long address)Returns a newNkDrawNullTextureinstance for the specified memory address.static NkDrawNullTexture.Buffercreate(long address, int capacity)Create aNkDrawNullTexture.Bufferinstance at the specified memory.static NkDrawNullTexturecreateSafe(long address)static NkDrawNullTexture.BuffercreateSafe(long address, int capacity)static NkDrawNullTexturemalloc()Returns a newNkDrawNullTextureinstance allocated withmemAlloc.static NkDrawNullTexture.Buffermalloc(int capacity)Returns a newNkDrawNullTexture.Bufferinstance allocated withmemAlloc.static NkDrawNullTexturemallocStack()Returns a newNkDrawNullTextureinstance allocated on the thread-localMemoryStack.static NkDrawNullTexture.BuffermallocStack(int capacity)Returns a newNkDrawNullTexture.Bufferinstance allocated on the thread-localMemoryStack.static NkDrawNullTexture.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkDrawNullTexture.Bufferinstance allocated on the specifiedMemoryStack.static NkDrawNullTexturemallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkDrawNullTextureinstance allocated on the specifiedMemoryStack.static NkHandlentexture(long struct)Unsafe version oftexture().static voidntexture(long struct, NkHandle value)Unsafe version oftexture.static NkVec2nuv(long struct)Unsafe version ofuv().static voidnuv(long struct, NkVec2 value)Unsafe version ofuv.NkDrawNullTextureset(NkDrawNullTexture src)Copies the specified struct data to this struct.NkDrawNullTextureset(NkHandle texture, NkVec2 uv)Initializes this struct with the specified values.intsizeof()NkHandletexture()Returns aNkHandleview of thetexturefield.NkDrawNullTexturetexture(java.util.function.Consumer<NkHandle> consumer)Passes thetexturefield to the specifiedConsumer.NkDrawNullTexturetexture(NkHandle value)Copies the specifiedNkHandleto thetexturefield.NkVec2uv()Returns aNkVec2view of theuvfield.NkDrawNullTextureuv(java.util.function.Consumer<NkVec2> consumer)Passes theuvfield to the specifiedConsumer.NkDrawNullTextureuv(NkVec2 value)Copies the specifiedNkVec2to theuvfield.
-
-
-
Constructor Detail
-
NkDrawNullTexture
public NkDrawNullTexture(java.nio.ByteBuffer container)
Creates aNkDrawNullTextureinstance 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
-
texture
public NkDrawNullTexture texture(java.util.function.Consumer<NkHandle> consumer)
Passes thetexturefield to the specifiedConsumer.
-
uv
public NkDrawNullTexture uv(java.util.function.Consumer<NkVec2> consumer)
Passes theuvfield to the specifiedConsumer.
-
texture
public NkDrawNullTexture texture(NkHandle value)
Copies the specifiedNkHandleto thetexturefield.
-
uv
public NkDrawNullTexture uv(NkVec2 value)
Copies the specifiedNkVec2to theuvfield.
-
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 newNkDrawNullTextureinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static NkDrawNullTexture calloc()
Returns a newNkDrawNullTextureinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static NkDrawNullTexture create()
Returns a newNkDrawNullTextureinstance allocated withBufferUtils.
-
create
public static NkDrawNullTexture create(long address)
Returns a newNkDrawNullTextureinstance for the specified memory address.
-
createSafe
@Nullable public static NkDrawNullTexture createSafe(long address)
-
malloc
public static NkDrawNullTexture.Buffer malloc(int capacity)
Returns a newNkDrawNullTexture.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static NkDrawNullTexture.Buffer calloc(int capacity)
Returns a newNkDrawNullTexture.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static NkDrawNullTexture.Buffer create(int capacity)
Returns a newNkDrawNullTexture.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static NkDrawNullTexture.Buffer create(long address, int capacity)
Create aNkDrawNullTexture.Bufferinstance 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 newNkDrawNullTextureinstance allocated on the thread-localMemoryStack.
-
callocStack
public static NkDrawNullTexture callocStack()
Returns a newNkDrawNullTextureinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static NkDrawNullTexture mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkDrawNullTextureinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static NkDrawNullTexture callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkDrawNullTextureinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static NkDrawNullTexture.Buffer callocStack(int capacity)
Returns a newNkDrawNullTexture.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-