Package org.lwjgl.nuklear
Class NkFont.Buffer
- All Implemented Interfaces:
AutoCloseable
,Iterable<NkFont>
,NativeResource
,Pointer
- Enclosing class:
NkFont
public static class NkFont.Buffer
extends StructBuffer<NkFont,NkFont.Buffer>
implements NativeResource
An array of
NkFont
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 newNkFont.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.@Nullable NkFontGlyph
fallback()
fallback
(@Nullable NkFontGlyph value) Sets the address of the specifiedNkFontGlyph
to thefallback
field.int
fallback_codepoint
(int value) Sets the specified value to thefallback_codepoint
field.@Nullable NkFontGlyph
glyphs()
glyphs
(@Nullable NkFontGlyph value) Sets the address of the specifiedNkFontGlyph
to theglyphs
field.handle()
handle
(Consumer<NkUserFont> consumer) Passes thehandle
field to the specifiedConsumer
.handle
(NkUserFont value) Copies the specifiedNkUserFont
to thehandle
field.info()
info
(Consumer<NkBakedFont> consumer) Passes theinfo
field to the specifiedConsumer
.info
(NkBakedFont value) Copies the specifiedNkBakedFont
to theinfo
field.@Nullable NkFont
next()
Sets the address of the specifiedNkFont
to thenext
field.float
scale()
scale
(float value) Sets the specified value to thescale
field.texture()
Passes thetexture
field to the specifiedConsumer
.Copies the specifiedNkHandle
to thetexture
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 newNkFont.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
NkFont.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
-
next
- Returns:
- a
NkFont
view of the struct pointed to by thenext
field.
-
handle
- Returns:
- a
NkUserFont
view of thehandle
field.
-
info
- Returns:
- a
NkBakedFont
view of theinfo
field.
-
scale
public float scale()- Returns:
- the value of the
scale
field.
-
glyphs
- Returns:
- a
NkFontGlyph
view of the struct pointed to by theglyphs
field.
-
fallback
- Returns:
- a
NkFontGlyph
view of the struct pointed to by thefallback
field.
-
fallback_codepoint
public int fallback_codepoint()- Returns:
- the value of the
fallback_codepoint
field.
-
texture
- Returns:
- a
NkHandle
view of thetexture
field.
-
config
- Returns:
- a
NkFontConfig
view of the struct pointed to by theconfig
field.
-
next
Sets the address of the specifiedNkFont
to thenext
field. -
handle
Copies the specifiedNkUserFont
to thehandle
field. -
handle
Passes thehandle
field to the specifiedConsumer
. -
info
Copies the specifiedNkBakedFont
to theinfo
field. -
info
Passes theinfo
field to the specifiedConsumer
. -
scale
Sets the specified value to thescale
field. -
glyphs
Sets the address of the specifiedNkFontGlyph
to theglyphs
field. -
fallback
Sets the address of the specifiedNkFontGlyph
to thefallback
field. -
fallback_codepoint
Sets the specified value to thefallback_codepoint
field. -
texture
Copies the specifiedNkHandle
to thetexture
field. -
texture
Passes thetexture
field to the specifiedConsumer
. -
config
Sets the address of the specifiedNkFontConfig
to theconfig
field.
-