Package org.lwjgl.nuklear
Class NkFontGlyph.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<NkFontGlyph>,NativeResource,Pointer
- Enclosing class:
NkFontGlyph
public static class NkFontGlyph.Buffer
extends StructBuffer<NkFontGlyph,NkFontGlyph.Buffer>
implements NativeResource
An array of
NkFontGlyph structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newNkFontGlyph.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionintcodepoint(int value) Sets the specified value to thecodepointfield.floath()h(float value) Sets the specified value to thehfield.floatu0()u0(float value) Sets the specified value to theu0field.floatu1()u1(float value) Sets the specified value to theu1field.floatv0()v0(float value) Sets the specified value to thev0field.floatv1()v1(float value) Sets the specified value to thev1field.floatw()w(float value) Sets the specified value to thewfield.floatx0()x0(float value) Sets the specified value to thex0field.floatx1()x1(float value) Sets the specified value to thex1field.floatxadvance()xadvance(float value) Sets the specified value to thexadvancefield.floaty0()y0(float value) Sets the specified value to they0field.floaty1()y1(float value) Sets the specified value to they1field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newNkFontGlyph.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 by
NkFontGlyph.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 Details
-
codepoint
public int codepoint()- Returns:
- the value of the
codepointfield.
-
xadvance
public float xadvance()- Returns:
- the value of the
xadvancefield.
-
x0
public float x0()- Returns:
- the value of the
x0field.
-
y0
public float y0()- Returns:
- the value of the
y0field.
-
x1
public float x1()- Returns:
- the value of the
x1field.
-
y1
public float y1()- Returns:
- the value of the
y1field.
-
w
public float w()- Returns:
- the value of the
wfield.
-
h
public float h()- Returns:
- the value of the
hfield.
-
u0
public float u0()- Returns:
- the value of the
u0field.
-
v0
public float v0()- Returns:
- the value of the
v0field.
-
u1
public float u1()- Returns:
- the value of the
u1field.
-
v1
public float v1()- Returns:
- the value of the
v1field.
-
codepoint
Sets the specified value to thecodepointfield. -
xadvance
Sets the specified value to thexadvancefield. -
x0
Sets the specified value to thex0field. -
y0
Sets the specified value to they0field. -
x1
Sets the specified value to thex1field. -
y1
Sets the specified value to they1field. -
w
Sets the specified value to thewfield. -
h
Sets the specified value to thehfield. -
u0
Sets the specified value to theu0field. -
v0
Sets the specified value to thev0field. -
u1
Sets the specified value to theu1field. -
v1
Sets the specified value to thev1field.
-