Package org.lwjgl.nuklear
Class NkFontAtlas.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<NkFontAtlas>,NativeResource,Pointer
- Enclosing class:
NkFontAtlas
public static class NkFontAtlas.Buffer
extends StructBuffer<NkFontAtlas,NkFontAtlas.Buffer>
implements NativeResource
An array of
NkFontAtlas 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 newNkFontAtlas.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescription@Nullable NkFontConfigconfig()config(@Nullable NkFontConfig value) Sets the address of the specifiedNkFontConfigto theconfigfield.cursors()cursors(int index) Copies the specifiedNkCursorat the specified index of thecursorsfield.cursors(Consumer<NkCursor.Buffer> consumer) Passes thecursorsfield to the specifiedConsumer.cursors(NkCursor.Buffer value) Copies the specifiedNkCursor.Bufferto thecursorsfield.custom()Passes thecustomfield to the specifiedConsumer.Copies the specifiedNkRectito thecustomfield.@Nullable NkFontdefault_font(@Nullable NkFont value) Sets the address of the specifiedNkFontto thedefault_fontfield.intfont_num()font_num(int value) Sets the specified value to thefont_numfield.@Nullable NkFontfonts()Sets the address of the specifiedNkFontto thefontsfield.intglyph_count(int value) Sets the specified value to theglyph_countfield.@Nullable NkFontGlyph.Bufferglyphs()glyphs(@Nullable NkFontGlyph.Buffer value) Sets the address of the specifiedNkFontGlyph.Bufferto theglyphsfield.permanent(Consumer<NkAllocator> consumer) Passes thepermanentfield to the specifiedConsumer.permanent(NkAllocator value) Copies the specifiedNkAllocatorto thepermanentfield.@Nullable ByteBufferpixel()pixel(@Nullable ByteBuffer value) Sets the address of the specifiedByteBufferto thepixelfield.temporary(Consumer<NkAllocator> consumer) Passes thetemporaryfield to the specifiedConsumer.temporary(NkAllocator value) Copies the specifiedNkAllocatorto thetemporaryfield.inttex_height(int value) Sets the specified value to thetex_heightfield.inttex_width(int value) Sets the specified value to thetex_widthfield.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 newNkFontAtlas.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
NkFontAtlas.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
-
pixel
- Returns:
- a
ByteBufferview of the data pointed to by thepixelfield.
-
tex_width
public int tex_width()- Returns:
- the value of the
tex_widthfield.
-
tex_height
public int tex_height()- Returns:
- the value of the
tex_heightfield.
-
permanent
- Returns:
- a
NkAllocatorview of thepermanentfield.
-
temporary
- Returns:
- a
NkAllocatorview of thetemporaryfield.
-
custom
- Returns:
- a
NkRectiview of thecustomfield.
-
cursors
- Returns:
- a
NkCursor.Buffer view of thecursorsfield.
-
cursors
- Returns:
- a
NkCursorview of the struct at the specified index of thecursorsfield.
-
glyph_count
public int glyph_count()- Returns:
- the value of the
glyph_countfield.
-
glyphs
- Returns:
- a
NkFontGlyph.Bufferview of the struct array pointed to by theglyphsfield.
-
default_font
- Returns:
- a
NkFontview of the struct pointed to by thedefault_fontfield.
-
fonts
- Returns:
- a
NkFontview of the struct pointed to by thefontsfield.
-
config
- Returns:
- a
NkFontConfigview of the struct pointed to by theconfigfield.
-
font_num
public int font_num()- Returns:
- the value of the
font_numfield.
-
pixel
Sets the address of the specifiedByteBufferto thepixelfield. -
tex_width
Sets the specified value to thetex_widthfield. -
tex_height
Sets the specified value to thetex_heightfield. -
permanent
Copies the specifiedNkAllocatorto thepermanentfield. -
permanent
Passes thepermanentfield to the specifiedConsumer. -
temporary
Copies the specifiedNkAllocatorto thetemporaryfield. -
temporary
Passes thetemporaryfield to the specifiedConsumer. -
custom
Copies the specifiedNkRectito thecustomfield. -
custom
Passes thecustomfield to the specifiedConsumer. -
cursors
Copies the specifiedNkCursor.Bufferto thecursorsfield. -
cursors
Copies the specifiedNkCursorat the specified index of thecursorsfield. -
cursors
Passes thecursorsfield to the specifiedConsumer. -
cursors
-
glyph_count
Sets the specified value to theglyph_countfield. -
glyphs
Sets the address of the specifiedNkFontGlyph.Bufferto theglyphsfield. -
default_font
Sets the address of the specifiedNkFontto thedefault_fontfield. -
fonts
Sets the address of the specifiedNkFontto thefontsfield. -
config
Sets the address of the specifiedNkFontConfigto theconfigfield. -
font_num
Sets the specified value to thefont_numfield.
-