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.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescription@Nullable NkFontConfig
config()
config
(@Nullable NkFontConfig value) Sets the address of the specifiedNkFontConfig
to theconfig
field.cursors()
cursors
(int index) Copies the specifiedNkCursor
at the specified index of thecursors
field.cursors
(Consumer<NkCursor.Buffer> consumer) Passes thecursors
field to the specifiedConsumer
.cursors
(NkCursor.Buffer value) Copies the specifiedNkCursor.Buffer
to thecursors
field.custom()
Passes thecustom
field to the specifiedConsumer
.Copies the specifiedNkRecti
to thecustom
field.@Nullable NkFont
default_font
(@Nullable NkFont value) Sets the address of the specifiedNkFont
to thedefault_font
field.int
font_num()
font_num
(int value) Sets the specified value to thefont_num
field.@Nullable NkFont
fonts()
Sets the address of the specifiedNkFont
to thefonts
field.int
glyph_count
(int value) Sets the specified value to theglyph_count
field.@Nullable NkFontGlyph.Buffer
glyphs()
glyphs
(@Nullable NkFontGlyph.Buffer value) Sets the address of the specifiedNkFontGlyph.Buffer
to theglyphs
field.permanent
(Consumer<NkAllocator> consumer) Passes thepermanent
field to the specifiedConsumer
.permanent
(NkAllocator value) Copies the specifiedNkAllocator
to thepermanent
field.@Nullable ByteBuffer
pixel()
pixel
(@Nullable ByteBuffer value) Sets the address of the specifiedByteBuffer
to thepixel
field.temporary
(Consumer<NkAllocator> consumer) Passes thetemporary
field to the specifiedConsumer
.temporary
(NkAllocator value) Copies the specifiedNkAllocator
to thetemporary
field.int
tex_height
(int value) Sets the specified value to thetex_height
field.int
tex_width
(int value) Sets the specified value to thetex_width
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods 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, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newNkFontAtlas.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 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
ByteBuffer
view of the data pointed to by thepixel
field.
-
tex_width
public int tex_width()- Returns:
- the value of the
tex_width
field.
-
tex_height
public int tex_height()- Returns:
- the value of the
tex_height
field.
-
permanent
- Returns:
- a
NkAllocator
view of thepermanent
field.
-
temporary
- Returns:
- a
NkAllocator
view of thetemporary
field.
-
custom
- Returns:
- a
NkRecti
view of thecustom
field.
-
cursors
- Returns:
- a
NkCursor
.Buffer view of thecursors
field.
-
cursors
- Returns:
- a
NkCursor
view of the struct at the specified index of thecursors
field.
-
glyph_count
public int glyph_count()- Returns:
- the value of the
glyph_count
field.
-
glyphs
- Returns:
- a
NkFontGlyph.Buffer
view of the struct array pointed to by theglyphs
field.
-
default_font
- Returns:
- a
NkFont
view of the struct pointed to by thedefault_font
field.
-
fonts
- Returns:
- a
NkFont
view of the struct pointed to by thefonts
field.
-
config
- Returns:
- a
NkFontConfig
view of the struct pointed to by theconfig
field.
-
font_num
public int font_num()- Returns:
- the value of the
font_num
field.
-
pixel
Sets the address of the specifiedByteBuffer
to thepixel
field. -
tex_width
Sets the specified value to thetex_width
field. -
tex_height
Sets the specified value to thetex_height
field. -
permanent
Copies the specifiedNkAllocator
to thepermanent
field. -
permanent
Passes thepermanent
field to the specifiedConsumer
. -
temporary
Copies the specifiedNkAllocator
to thetemporary
field. -
temporary
Passes thetemporary
field to the specifiedConsumer
. -
custom
Copies the specifiedNkRecti
to thecustom
field. -
custom
Passes thecustom
field to the specifiedConsumer
. -
cursors
Copies the specifiedNkCursor.Buffer
to thecursors
field. -
cursors
Copies the specifiedNkCursor
at the specified index of thecursors
field. -
cursors
Passes thecursors
field to the specifiedConsumer
. -
cursors
-
glyph_count
Sets the specified value to theglyph_count
field. -
glyphs
Sets the address of the specifiedNkFontGlyph.Buffer
to theglyphs
field. -
default_font
Sets the address of the specifiedNkFont
to thedefault_font
field. -
fonts
Sets the address of the specifiedNkFont
to thefonts
field. -
config
Sets the address of the specifiedNkFontConfig
to theconfig
field. -
font_num
Sets the specified value to thefont_num
field.
-