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.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionint
coord_type
(int value) Sets the specified value to thecoord_type
field.int
fallback_glyph
(int value) Sets the specified value to thefallback_glyph
field.@Nullable NkBakedFont
font()
font
(@Nullable NkBakedFont value) Sets the address of the specifiedNkBakedFont
to thefont
field.boolean
merge_mode
(boolean value) Sets the specified value to themerge_mode
field.@Nullable NkFontConfig
n()
n
(@Nullable NkFontConfig value) Sets the address of the specifiedNkFontConfig
to then
field.@Nullable NkFontConfig
next()
next
(@Nullable NkFontConfig value) Sets the address of the specifiedNkFontConfig
to thenext
field.boolean
oversample_h
(boolean value) Sets the specified value to theoversample_h
field.boolean
oversample_v
(boolean value) Sets the specified value to theoversample_v
field.@Nullable NkFontConfig
p()
p
(@Nullable NkFontConfig value) Sets the address of the specifiedNkFontConfig
to thep
field.padding()
byte
padding
(int index) padding
(int index, byte value) Sets the specified value at the specified index of thepadding
field.padding
(ByteBuffer value) Copies the specifiedByteBuffer
to thepadding
field.boolean
pixel_snap
(boolean value) Sets the specified value to thepixel_snap
field.@Nullable IntBuffer
range
(int capacity) Sets the address of the specifiedIntBuffer
to therange
field.float
size()
size
(float value) Sets the specified value to thesize
field.spacing()
Passes thespacing
field to the specifiedConsumer
.Copies the specifiedNkVec2
to thespacing
field.@Nullable ByteBuffer
ttf_blob()
ttf_blob
(@Nullable ByteBuffer value) Sets the address of the specifiedByteBuffer
to thettf_blob
field.boolean
ttf_data_owned_by_atlas
(boolean value) Sets the specified value to thettf_data_owned_by_atlas
field.long
ttf_size()
ttf_size
(long value) Sets the specified value to thettf_size
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 newNkFontConfig.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
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
NkFontConfig
view of the struct pointed to by thenext
field.
-
ttf_blob
- Returns:
- a
ByteBuffer
view of the data pointed to by thettf_blob
field.
-
ttf_size
public long ttf_size()- Returns:
- the value of the
ttf_size
field.
-
ttf_data_owned_by_atlas
public boolean ttf_data_owned_by_atlas()- Returns:
- the value of the
ttf_data_owned_by_atlas
field.
-
merge_mode
public boolean merge_mode()- Returns:
- the value of the
merge_mode
field.
-
pixel_snap
public boolean pixel_snap()- Returns:
- the value of the
pixel_snap
field.
-
oversample_v
public boolean oversample_v()- Returns:
- the value of the
oversample_v
field.
-
oversample_h
public boolean oversample_h()- Returns:
- the value of the
oversample_h
field.
-
padding
- Returns:
- a
ByteBuffer
view of thepadding
field.
-
padding
public byte padding(int index) - Returns:
- the value at the specified index of the
padding
field.
-
size
public float size()- Returns:
- the value of the
size
field.
-
coord_type
public int coord_type()- Returns:
- the value of the
coord_type
field.
-
spacing
- Returns:
- a
NkVec2
view of thespacing
field.
-
range
- Returns:
- a
IntBuffer
view of the data pointed to by therange
field.
-
font
- Returns:
- a
NkBakedFont
view of the struct pointed to by thefont
field.
-
fallback_glyph
public int fallback_glyph()- Returns:
- the value of the
fallback_glyph
field.
-
n
- Returns:
- a
NkFontConfig
view of the struct pointed to by then
field.
-
p
- Returns:
- a
NkFontConfig
view of the struct pointed to by thep
field.
-
next
Sets the address of the specifiedNkFontConfig
to thenext
field. -
ttf_blob
Sets the address of the specifiedByteBuffer
to thettf_blob
field. -
ttf_size
Sets the specified value to thettf_size
field. -
ttf_data_owned_by_atlas
Sets the specified value to thettf_data_owned_by_atlas
field. -
merge_mode
Sets the specified value to themerge_mode
field. -
pixel_snap
Sets the specified value to thepixel_snap
field. -
oversample_v
Sets the specified value to theoversample_v
field. -
oversample_h
Sets the specified value to theoversample_h
field. -
padding
Copies the specifiedByteBuffer
to thepadding
field. -
padding
Sets the specified value at the specified index of thepadding
field. -
size
Sets the specified value to thesize
field. -
coord_type
Sets the specified value to thecoord_type
field. -
spacing
Copies the specifiedNkVec2
to thespacing
field. -
spacing
Passes thespacing
field to the specifiedConsumer
. -
range
Sets the address of the specifiedIntBuffer
to therange
field. -
font
Sets the address of the specifiedNkBakedFont
to thefont
field. -
fallback_glyph
Sets the specified value to thefallback_glyph
field. -
n
Sets the address of the specifiedNkFontConfig
to then
field. -
p
Sets the address of the specifiedNkFontConfig
to thep
field.
-