Package org.lwjgl.util.freetype
Class FT_Open_Args.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<FT_Open_Args.Buffer>
org.lwjgl.system.StructBuffer<FT_Open_Args,FT_Open_Args.Buffer>
org.lwjgl.util.freetype.FT_Open_Args.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<FT_Open_Args>,NativeResource,Pointer
- Enclosing class:
FT_Open_Args
public static class FT_Open_Args.Buffer
extends StructBuffer<FT_Open_Args,FT_Open_Args.Buffer>
implements NativeResource
An array of
FT_Open_Args 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 newFT_Open_Args.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionlongdriver()driver(long value) Sets the specified value to thedriverfield.intflags()flags(int value) Sets the specified value to theflagsfield.@Nullable ByteBuffermemory_base(@Nullable ByteBuffer value) Sets the address of the specifiedByteBufferto thememory_basefield.longmemory_size(long value) Sets the specified value to thememory_sizefield.intnum_params(int value) Sets the specified value to thenum_paramsfield.@Nullable FT_Parameter.Bufferparams()params(@Nullable FT_Parameter.Buffer value) Sets the address of the specifiedFT_Parameter.Bufferto theparamsfield.@Nullable ByteBufferpathname()pathname(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thepathnamefield.@Nullable String@Nullable FT_Streamstream$()Sets the address of the specifiedFT_Streamto thestreamfield.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 newFT_Open_Args.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
FT_Open_Args.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
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
memory_base
- Returns:
- a
ByteBufferview of the data pointed to by thememory_basefield.
-
memory_size
public long memory_size()- Returns:
- the value of the
memory_sizefield.
-
pathname
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thepathnamefield.
-
pathnameString
- Returns:
- the null-terminated string pointed to by the
pathnamefield.
-
stream$
- Returns:
- a
FT_Streamview of the struct pointed to by thestreamfield.
-
driver
public long driver()- Returns:
- the value of the
driverfield.
-
num_params
public int num_params()- Returns:
- the value of the
num_paramsfield.
-
params
- Returns:
- a
FT_Parameter.Bufferview of the struct array pointed to by theparamsfield.
-
flags
Sets the specified value to theflagsfield. -
memory_base
Sets the address of the specifiedByteBufferto thememory_basefield. -
memory_size
Sets the specified value to thememory_sizefield. -
pathname
Sets the address of the specified encoded string to thepathnamefield. -
stream$
Sets the address of the specifiedFT_Streamto thestreamfield. -
driver
Sets the specified value to thedriverfield. -
num_params
Sets the specified value to thenum_paramsfield. -
params
Sets the address of the specifiedFT_Parameter.Bufferto theparamsfield.
-