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.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newNkUserFontGlyph.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatheight()Returns the value of theheightfield.NkUserFontGlyph.Bufferheight(float value)Sets the specified value to theheightfield.NkVec2offset()Returns aNkVec2view of theoffsetfield.NkUserFontGlyph.Bufferoffset(java.util.function.Consumer<NkVec2> consumer)Passes theoffsetfield to the specifiedConsumer.NkUserFontGlyph.Bufferoffset(NkVec2 value)Copies the specifiedNkVec2to theoffsetfield.NkVec2.Bufferuv()Returns aNkVec2.Buffer view of theuvfield.NkVec2uv(int index)Returns aNkVec2view of the struct at the specified index of theuvfield.NkUserFontGlyph.Bufferuv(int index, NkVec2 value)Copies the specifiedNkVec2at the specified index of theuvfield.NkUserFontGlyph.Bufferuv(NkVec2.Buffer value)Copies the specifiedNkVec2.Bufferto theuvfield.floatwidth()Returns the value of thewidthfield.NkUserFontGlyph.Bufferwidth(float value)Sets the specified value to thewidthfield.floatxadvance()Returns the value of thexadvancefield.NkUserFontGlyph.Bufferxadvance(float value)Sets the specified value to thexadvancefield.
-
-
-
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 aNkVec2.Buffer view of theuvfield.
-
uv
public NkVec2 uv(int index)
Returns aNkVec2view of the struct at the specified index of theuvfield.
-
offset
public NkUserFontGlyph.Buffer offset(java.util.function.Consumer<NkVec2> consumer)
Passes theoffsetfield to the specifiedConsumer.
-
width
public float width()
Returns the value of thewidthfield.
-
height
public float height()
Returns the value of theheightfield.
-
xadvance
public float xadvance()
Returns the value of thexadvancefield.
-
uv
public NkUserFontGlyph.Buffer uv(NkVec2.Buffer value)
Copies the specifiedNkVec2.Bufferto theuvfield.
-
uv
public NkUserFontGlyph.Buffer uv(int index, NkVec2 value)
Copies the specifiedNkVec2at the specified index of theuvfield.
-
offset
public NkUserFontGlyph.Buffer offset(NkVec2 value)
Copies the specifiedNkVec2to theoffsetfield.
-
width
public NkUserFontGlyph.Buffer width(float value)
Sets the specified value to thewidthfield.
-
height
public NkUserFontGlyph.Buffer height(float value)
Sets the specified value to theheightfield.
-
xadvance
public NkUserFontGlyph.Buffer xadvance(float value)
Sets the specified value to thexadvancefield.
-
-