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>,NativeResource,Pointer
- Enclosing class:
NkFontConfig
public static class NkFontConfig.Buffer
extends StructBuffer<NkFontConfig,NkFontConfig.Buffer>
implements NativeResource
An array of
NkFontConfig 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 newNkFontConfig.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionintcoord_type(int value) Sets the specified value to thecoord_typefield.intfallback_glyph(int value) Sets the specified value to thefallback_glyphfield.@Nullable NkBakedFontfont()font(@Nullable NkBakedFont value) Sets the address of the specifiedNkBakedFontto thefontfield.booleanmerge_mode(boolean value) Sets the specified value to themerge_modefield.@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 thenextfield.booleanoversample_h(boolean value) Sets the specified value to theoversample_hfield.booleanoversample_v(boolean value) Sets the specified value to theoversample_vfield.@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 thepaddingfield.padding(ByteBuffer value) Copies the specifiedByteBufferto thepaddingfield.booleanpixel_snap(boolean value) Sets the specified value to thepixel_snapfield.@Nullable IntBufferrange(int capacity) Sets the address of the specifiedIntBufferto therangefield.floatsize()size(float value) Sets the specified value to thesizefield.spacing()Passes thespacingfield to the specifiedConsumer.Copies the specifiedNkVec2to thespacingfield.@Nullable ByteBufferttf_blob()ttf_blob(@Nullable ByteBuffer value) Sets the address of the specifiedByteBufferto thettf_blobfield.booleanttf_data_owned_by_atlas(boolean value) Sets the specified value to thettf_data_owned_by_atlasfield.longttf_size()ttf_size(long value) Sets the specified value to thettf_sizefield.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 thenextfield.
-
ttf_blob
- Returns:
- a
ByteBufferview of the data pointed to by thettf_blobfield.
-
ttf_size
public long ttf_size()- Returns:
- the value of the
ttf_sizefield.
-
ttf_data_owned_by_atlas
public boolean ttf_data_owned_by_atlas()- Returns:
- the value of the
ttf_data_owned_by_atlasfield.
-
merge_mode
public boolean merge_mode()- Returns:
- the value of the
merge_modefield.
-
pixel_snap
public boolean pixel_snap()- Returns:
- the value of the
pixel_snapfield.
-
oversample_v
public boolean oversample_v()- Returns:
- the value of the
oversample_vfield.
-
oversample_h
public boolean oversample_h()- Returns:
- the value of the
oversample_hfield.
-
padding
- Returns:
- a
ByteBufferview of thepaddingfield.
-
padding
public byte padding(int index) - Returns:
- the value at the specified index of the
paddingfield.
-
size
public float size()- Returns:
- the value of the
sizefield.
-
coord_type
public int coord_type()- Returns:
- the value of the
coord_typefield.
-
spacing
- Returns:
- a
NkVec2view of thespacingfield.
-
range
- Returns:
- a
IntBufferview of the data pointed to by therangefield.
-
font
- Returns:
- a
NkBakedFontview of the struct pointed to by thefontfield.
-
fallback_glyph
public int fallback_glyph()- Returns:
- the value of the
fallback_glyphfield.
-
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 thenextfield. -
ttf_blob
Sets the address of the specifiedByteBufferto thettf_blobfield. -
ttf_size
Sets the specified value to thettf_sizefield. -
ttf_data_owned_by_atlas
Sets the specified value to thettf_data_owned_by_atlasfield. -
merge_mode
Sets the specified value to themerge_modefield. -
pixel_snap
Sets the specified value to thepixel_snapfield. -
oversample_v
Sets the specified value to theoversample_vfield. -
oversample_h
Sets the specified value to theoversample_hfield. -
padding
Copies the specifiedByteBufferto thepaddingfield. -
padding
Sets the specified value at the specified index of thepaddingfield. -
size
Sets the specified value to thesizefield. -
coord_type
Sets the specified value to thecoord_typefield. -
spacing
Copies the specifiedNkVec2to thespacingfield. -
spacing
Passes thespacingfield to the specifiedConsumer. -
range
Sets the address of the specifiedIntBufferto therangefield. -
font
Sets the address of the specifiedNkBakedFontto thefontfield. -
fallback_glyph
Sets the specified value to thefallback_glyphfield. -
n
Sets the address of the specifiedNkFontConfigto thenfield. -
p
Sets the address of the specifiedNkFontConfigto thepfield.
-