Package org.lwjgl.nuklear
Class NkFontConfig.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<NkFontConfig.Buffer>
org.lwjgl.system.StructBuffer<NkFontConfig,NkFontConfig.Buffer>
org.lwjgl.nuklear.NkFontConfig.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<NkFontConfig>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
NkFontConfig
public static class NkFontConfig.Buffer
extends org.lwjgl.system.StructBuffer<NkFontConfig,NkFontConfig.Buffer>
implements org.lwjgl.system.NativeResource
An array of
NkFontConfig structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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 newNkFontConfig.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionintcoord_type(int value) Sets the specified value to theNkFontConfig.coord_type()field.intfallback_glyph(int value) Sets the specified value to theNkFontConfig.fallback_glyph()field.@Nullable NkBakedFontfont()font(@Nullable NkBakedFont value) Sets the address of the specifiedNkBakedFontto theNkFontConfig.font()field.booleanmerge_mode(boolean value) Sets the specified value to theNkFontConfig.merge_mode()field.@Nullable NkFontConfign()n(@Nullable NkFontConfig value) Sets the address of the specifiedNkFontConfigto thenfield.@Nullable NkFontConfignext()next(@Nullable NkFontConfig value) Sets the address of the specifiedNkFontConfigto theNkFontConfig.next()field.booleanoversample_h(boolean value) Sets the specified value to theNkFontConfig.oversample_h()field.booleanoversample_v(boolean value) Sets the specified value to theNkFontConfig.oversample_v()field.@Nullable NkFontConfigp()p(@Nullable NkFontConfig value) Sets the address of the specifiedNkFontConfigto thepfield.padding()bytepadding(int index) padding(int index, byte value) Sets the specified value at the specified index of theNkFontConfig.padding()field.padding(ByteBuffer value) Copies the specifiedByteBufferto theNkFontConfig.padding()field.booleanpixel_snap(boolean value) Sets the specified value to theNkFontConfig.pixel_snap()field.@Nullable IntBufferrange(int capacity) Sets the address of the specifiedIntBufferto theNkFontConfig.range(int)field.floatsize()size(float value) Sets the specified value to theNkFontConfig.size()field.spacing()Passes theNkFontConfig.spacing()field to the specifiedConsumer.Copies the specifiedNkVec2to theNkFontConfig.spacing()field.@Nullable ByteBufferttf_blob()ttf_blob(@Nullable ByteBuffer value) Sets the address of the specifiedByteBufferto theNkFontConfig.ttf_blob()field.booleanttf_data_owned_by_atlas(boolean value) Sets the specified value to theNkFontConfig.ttf_data_owned_by_atlas()field.longttf_size()ttf_size(long value) Sets the specified value to theNkFontConfig.ttf_size()field.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 newNkFontConfig.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
NkFontConfig.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
NkFontConfigview of the struct pointed to by theNkFontConfig.next()field.
-
ttf_blob
- Returns:
- a
ByteBufferview of the data pointed to by theNkFontConfig.ttf_blob()field.
-
ttf_size
public long ttf_size()- Returns:
- the value of the
NkFontConfig.ttf_size()field.
-
ttf_data_owned_by_atlas
public boolean ttf_data_owned_by_atlas()- Returns:
- the value of the
NkFontConfig.ttf_data_owned_by_atlas()field.
-
merge_mode
public boolean merge_mode()- Returns:
- the value of the
NkFontConfig.merge_mode()field.
-
pixel_snap
public boolean pixel_snap()- Returns:
- the value of the
NkFontConfig.pixel_snap()field.
-
oversample_v
public boolean oversample_v()- Returns:
- the value of the
NkFontConfig.oversample_v()field.
-
oversample_h
public boolean oversample_h()- Returns:
- the value of the
NkFontConfig.oversample_h()field.
-
padding
- Returns:
- a
ByteBufferview of theNkFontConfig.padding()field.
-
padding
public byte padding(int index) - Returns:
- the value at the specified index of the
NkFontConfig.padding()field.
-
size
public float size()- Returns:
- the value of the
NkFontConfig.size()field.
-
coord_type
public int coord_type()- Returns:
- the value of the
NkFontConfig.coord_type()field.
-
spacing
- Returns:
- a
NkVec2view of theNkFontConfig.spacing()field.
-
range
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
IntBufferview of the data pointed to by theNkFontConfig.range(int)field.
-
font
- Returns:
- a
NkBakedFontview of the struct pointed to by theNkFontConfig.font()field.
-
fallback_glyph
public int fallback_glyph()- Returns:
- the value of the
NkFontConfig.fallback_glyph()field.
-
n
- Returns:
- a
NkFontConfigview of the struct pointed to by thenfield.
-
p
- Returns:
- a
NkFontConfigview of the struct pointed to by thepfield.
-
next
Sets the address of the specifiedNkFontConfigto theNkFontConfig.next()field. -
ttf_blob
Sets the address of the specifiedByteBufferto theNkFontConfig.ttf_blob()field. -
ttf_size
Sets the specified value to theNkFontConfig.ttf_size()field. -
ttf_data_owned_by_atlas
Sets the specified value to theNkFontConfig.ttf_data_owned_by_atlas()field. -
merge_mode
Sets the specified value to theNkFontConfig.merge_mode()field. -
pixel_snap
Sets the specified value to theNkFontConfig.pixel_snap()field. -
oversample_v
Sets the specified value to theNkFontConfig.oversample_v()field. -
oversample_h
Sets the specified value to theNkFontConfig.oversample_h()field. -
padding
Copies the specifiedByteBufferto theNkFontConfig.padding()field. -
padding
Sets the specified value at the specified index of theNkFontConfig.padding()field. -
size
Sets the specified value to theNkFontConfig.size()field. -
coord_type
Sets the specified value to theNkFontConfig.coord_type()field. -
spacing
Copies the specifiedNkVec2to theNkFontConfig.spacing()field. -
spacing
Passes theNkFontConfig.spacing()field to the specifiedConsumer. -
range
Sets the address of the specifiedIntBufferto theNkFontConfig.range(int)field. -
font
Sets the address of the specifiedNkBakedFontto theNkFontConfig.font()field. -
fallback_glyph
Sets the specified value to theNkFontConfig.fallback_glyph()field. -
n
Sets the address of the specifiedNkFontConfigto thenfield. -
p
Sets the address of the specifiedNkFontConfigto thepfield.
-