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.NativeResourceLayout
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 Deprecated 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 NkDrawNullTexture.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkDrawNullTexture.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkDrawNullTexturecalloc(org.lwjgl.system.MemoryStack stack)Returns a newNkDrawNullTextureinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkDrawNullTexturecallocStack()Deprecated.static NkDrawNullTexture.BuffercallocStack(int capacity)Deprecated.static NkDrawNullTexture.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static NkDrawNullTexturecallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 NkDrawNullTexture.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkDrawNullTexture.Bufferinstance allocated on the specifiedMemoryStack.static NkDrawNullTexturemalloc(org.lwjgl.system.MemoryStack stack)Returns a newNkDrawNullTextureinstance allocated on the specifiedMemoryStack.static NkDrawNullTexturemallocStack()Deprecated.static NkDrawNullTexture.BuffermallocStack(int capacity)Deprecated.static NkDrawNullTexture.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static NkDrawNullTexturemallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()texture handle to a texture with a white pixelNkDrawNullTexturetexture(java.util.function.Consumer<NkHandle> consumer)Passes thetexture()field to the specifiedConsumer.NkDrawNullTexturetexture(NkHandle value)NkVec2uv()coordinates to a white pixel in the textureNkDrawNullTextureuv(java.util.function.Consumer<NkVec2> consumer)Passes theuv()field to the specifiedConsumer.NkDrawNullTextureuv(NkVec2 value)
-
-
-
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 NkHandle texture()
texture handle to a texture with a white pixel
-
uv
public NkVec2 uv()
coordinates to a white pixel in the texture
-
texture
public NkDrawNullTexture texture(NkHandle value)
-
texture
public NkDrawNullTexture texture(java.util.function.Consumer<NkHandle> consumer)
Passes thetexture()field to the specifiedConsumer.
-
uv
public NkDrawNullTexture uv(NkVec2 value)
-
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 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
@Deprecated public static NkDrawNullTexture mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static NkDrawNullTexture callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static NkDrawNullTexture mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static NkDrawNullTexture callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static NkDrawNullTexture.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static NkDrawNullTexture.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static NkDrawNullTexture.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 NkDrawNullTexture.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static NkDrawNullTexture malloc(org.lwjgl.system.MemoryStack stack)
Returns a newNkDrawNullTextureinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static NkDrawNullTexture calloc(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
-
malloc
public static NkDrawNullTexture.Buffer malloc(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
-
calloc
public static NkDrawNullTexture.Buffer calloc(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
-
-