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 ofNkUserFontGlyph
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
height()
Returns the value of theheight
field.NkUserFontGlyph.Buffer
height(float value)
Sets the specified value to theheight
field.NkVec2
offset()
Returns aNkVec2
view of theoffset
field.NkUserFontGlyph.Buffer
offset(java.util.function.Consumer<NkVec2> consumer)
Passes theoffset
field to the specifiedConsumer
.NkUserFontGlyph.Buffer
offset(NkVec2 value)
Copies the specifiedNkVec2
to theoffset
field.NkVec2.Buffer
uv()
Returns aNkVec2
.Buffer view of theuv
field.NkVec2
uv(int index)
Returns aNkVec2
view of the struct at the specified index of theuv
field.NkUserFontGlyph.Buffer
uv(int index, java.util.function.Consumer<NkVec2> consumer)
Passes the element atindex
of theuv
field to the specifiedConsumer
.NkUserFontGlyph.Buffer
uv(int index, NkVec2 value)
Copies the specifiedNkVec2
at the specified index of theuv
field.NkUserFontGlyph.Buffer
uv(java.util.function.Consumer<NkVec2.Buffer> consumer)
Passes theuv
field to the specifiedConsumer
.NkUserFontGlyph.Buffer
uv(NkVec2.Buffer value)
Copies the specifiedNkVec2.Buffer
to theuv
field.float
width()
Returns the value of thewidth
field.NkUserFontGlyph.Buffer
width(float value)
Sets the specified value to thewidth
field.float
xadvance()
Returns the value of thexadvance
field.NkUserFontGlyph.Buffer
xadvance(float value)
Sets the specified value to thexadvance
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkUserFontGlyph.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 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 theuv
field.
-
uv
public NkVec2 uv(int index)
Returns aNkVec2
view of the struct at the specified index of theuv
field.
-
width
public float width()
Returns the value of thewidth
field.
-
height
public float height()
Returns the value of theheight
field.
-
xadvance
public float xadvance()
Returns the value of thexadvance
field.
-
uv
public NkUserFontGlyph.Buffer uv(NkVec2.Buffer value)
Copies the specifiedNkVec2.Buffer
to theuv
field.
-
uv
public NkUserFontGlyph.Buffer uv(int index, NkVec2 value)
Copies the specifiedNkVec2
at the specified index of theuv
field.
-
uv
public NkUserFontGlyph.Buffer uv(java.util.function.Consumer<NkVec2.Buffer> consumer)
Passes theuv
field to the specifiedConsumer
.
-
uv
public NkUserFontGlyph.Buffer uv(int index, java.util.function.Consumer<NkVec2> consumer)
Passes the element atindex
of theuv
field to the specifiedConsumer
.
-
offset
public NkUserFontGlyph.Buffer offset(NkVec2 value)
Copies the specifiedNkVec2
to theoffset
field.
-
offset
public NkUserFontGlyph.Buffer offset(java.util.function.Consumer<NkVec2> consumer)
Passes theoffset
field to the specifiedConsumer
.
-
width
public NkUserFontGlyph.Buffer width(float value)
Sets the specified value to thewidth
field.
-
height
public NkUserFontGlyph.Buffer height(float value)
Sets the specified value to theheight
field.
-
xadvance
public NkUserFontGlyph.Buffer xadvance(float value)
Sets the specified value to thexadvance
field.
-
-