public static class NkUserFont.Buffer extends org.lwjgl.system.StructBuffer<NkUserFont,NkUserFont.Buffer> implements org.lwjgl.system.NativeResource
NkUserFont structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
NkUserFont.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
float |
height()
Returns the value of the
height field. |
NkUserFont.Buffer |
height(float value)
Sets the specified value to the
height field. |
NkQueryFontGlyphCallback |
query()
Returns the value of the
query field. |
NkUserFont.Buffer |
query(NkQueryFontGlyphCallbackI value)
Sets the specified value to the
query field. |
NkHandle |
texture()
Returns a
NkHandle view of the texture field. |
NkUserFont.Buffer |
texture(java.util.function.Consumer<NkHandle> consumer)
Passes the
texture field to the specified Consumer. |
NkUserFont.Buffer |
texture(NkHandle value)
Copies the specified
NkHandle to the texture field. |
NkHandle |
userdata()
Returns a
NkHandle view of the userdata field. |
NkUserFont.Buffer |
userdata(java.util.function.Consumer<NkHandle> consumer)
Passes the
userdata field to the specified Consumer. |
NkUserFont.Buffer |
userdata(NkHandle value)
Copies the specified
NkHandle to the userdata field. |
NkTextWidthCallback |
width()
Returns the value of the
width field. |
NkUserFont.Buffer |
width(NkTextWidthCallbackI value)
Sets the specified value to the
width field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
NkUserFont.Buffer instance backed by the specified container.
Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by NkUserFont.SIZEOF, and its mark will be undefined.
The created buffer instance holds a strong reference to the container object.
public Buffer(long address,
int cap)
public float height()
height field.@Nullable public NkTextWidthCallback width()
width field.@Nullable public NkQueryFontGlyphCallback query()
query field.public NkUserFont.Buffer userdata(NkHandle value)
NkHandle to the userdata field.public NkUserFont.Buffer userdata(java.util.function.Consumer<NkHandle> consumer)
userdata field to the specified Consumer.public NkUserFont.Buffer height(float value)
height field.public NkUserFont.Buffer width(@Nullable NkTextWidthCallbackI value)
width field.public NkUserFont.Buffer query(@Nullable NkQueryFontGlyphCallbackI value)
query field.public NkUserFont.Buffer texture(NkHandle value)
NkHandle to the texture field.public NkUserFont.Buffer texture(java.util.function.Consumer<NkHandle> consumer)
texture field to the specified Consumer.Copyright LWJGL. All Rights Reserved. License terms.