Package org.lwjgl.nuklear
Class NkUserFontGlyph.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkUserFontGlyph,NkUserFontGlyph.Buffer>
-
- org.lwjgl.nuklear.NkUserFontGlyph.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<NkUserFontGlyph>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- NkUserFontGlyph
public static class NkUserFontGlyph.Buffer extends org.lwjgl.system.StructBuffer<NkUserFontGlyph,NkUserFontGlyph.Buffer> implements org.lwjgl.system.NativeResource
An array ofNkUserFontGlyphstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatheight()NkUserFontGlyph.Bufferheight(float value)Sets the specified value to theNkUserFontGlyph.height()field.NkVec2offset()NkUserFontGlyph.Bufferoffset(java.util.function.Consumer<NkVec2> consumer)Passes theNkUserFontGlyph.offset()field to the specifiedConsumer.NkUserFontGlyph.Bufferoffset(NkVec2 value)Copies the specifiedNkVec2to theNkUserFontGlyph.offset()field.NkVec2.Bufferuv()NkVec2uv(int index)NkUserFontGlyph.Bufferuv(int index, java.util.function.Consumer<NkVec2> consumer)NkUserFontGlyph.Bufferuv(int index, NkVec2 value)Copies the specifiedNkVec2at the specified index of theNkUserFontGlyph.uv()field.NkUserFontGlyph.Bufferuv(java.util.function.Consumer<NkVec2.Buffer> consumer)Passes theNkUserFontGlyph.uv()field to the specifiedConsumer.NkUserFontGlyph.Bufferuv(NkVec2.Buffer value)Copies the specifiedNkVec2.Bufferto theNkUserFontGlyph.uv()field.floatwidth()NkUserFontGlyph.Bufferwidth(float value)Sets the specified value to theNkUserFontGlyph.width()field.floatxadvance()NkUserFontGlyph.Bufferxadvance(float value)Sets the specified value to theNkUserFontGlyph.xadvance()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkUserFontGlyph.Bufferinstance 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 byNkUserFontGlyph.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
uv
public NkVec2.Buffer uv()
- Returns:
- a
NkVec2.Buffer view of theNkUserFontGlyph.uv()field.
-
uv
public NkVec2 uv(int index)
- Returns:
- a
NkVec2view of the struct at the specified index of theNkUserFontGlyph.uv()field.
-
offset
public NkVec2 offset()
- Returns:
- a
NkVec2view of theNkUserFontGlyph.offset()field.
-
width
public float width()
- Returns:
- the value of the
NkUserFontGlyph.width()field.
-
height
public float height()
- Returns:
- the value of the
NkUserFontGlyph.height()field.
-
xadvance
public float xadvance()
- Returns:
- the value of the
NkUserFontGlyph.xadvance()field.
-
uv
public NkUserFontGlyph.Buffer uv(NkVec2.Buffer value)
Copies the specifiedNkVec2.Bufferto theNkUserFontGlyph.uv()field.
-
uv
public NkUserFontGlyph.Buffer uv(int index, NkVec2 value)
Copies the specifiedNkVec2at the specified index of theNkUserFontGlyph.uv()field.
-
uv
public NkUserFontGlyph.Buffer uv(java.util.function.Consumer<NkVec2.Buffer> consumer)
Passes theNkUserFontGlyph.uv()field to the specifiedConsumer.
-
uv
public NkUserFontGlyph.Buffer uv(int index, java.util.function.Consumer<NkVec2> consumer)
-
offset
public NkUserFontGlyph.Buffer offset(NkVec2 value)
Copies the specifiedNkVec2to theNkUserFontGlyph.offset()field.
-
offset
public NkUserFontGlyph.Buffer offset(java.util.function.Consumer<NkVec2> consumer)
Passes theNkUserFontGlyph.offset()field to the specifiedConsumer.
-
width
public NkUserFontGlyph.Buffer width(float value)
Sets the specified value to theNkUserFontGlyph.width()field.
-
height
public NkUserFontGlyph.Buffer height(float value)
Sets the specified value to theNkUserFontGlyph.height()field.
-
xadvance
public NkUserFontGlyph.Buffer xadvance(float value)
Sets the specified value to theNkUserFontGlyph.xadvance()field.
-
-