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.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionlong
driver()
driver
(long value) Sets the specified value to thedriver
field.int
flags()
flags
(int value) Sets the specified value to theflags
field.@Nullable ByteBuffer
memory_base
(@Nullable ByteBuffer value) Sets the address of the specifiedByteBuffer
to thememory_base
field.long
memory_size
(long value) Sets the specified value to thememory_size
field.int
num_params
(int value) Sets the specified value to thenum_params
field.@Nullable FT_Parameter.Buffer
params()
params
(@Nullable FT_Parameter.Buffer value) Sets the address of the specifiedFT_Parameter.Buffer
to theparams
field.@Nullable ByteBuffer
pathname()
pathname
(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thepathname
field.@Nullable String
@Nullable FT_Stream
stream$()
Sets the address of the specifiedFT_Stream
to thestream
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 newFT_Open_Args.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
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
flags
field.
-
memory_base
- Returns:
- a
ByteBuffer
view of the data pointed to by thememory_base
field.
-
memory_size
public long memory_size()- Returns:
- the value of the
memory_size
field.
-
pathname
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thepathname
field.
-
pathnameString
- Returns:
- the null-terminated string pointed to by the
pathname
field.
-
stream$
- Returns:
- a
FT_Stream
view of the struct pointed to by thestream
field.
-
driver
public long driver()- Returns:
- the value of the
driver
field.
-
num_params
public int num_params()- Returns:
- the value of the
num_params
field.
-
params
- Returns:
- a
FT_Parameter.Buffer
view of the struct array pointed to by theparams
field.
-
flags
Sets the specified value to theflags
field. -
memory_base
Sets the address of the specifiedByteBuffer
to thememory_base
field. -
memory_size
Sets the specified value to thememory_size
field. -
pathname
Sets the address of the specified encoded string to thepathname
field. -
stream$
Sets the address of the specifiedFT_Stream
to thestream
field. -
driver
Sets the specified value to thedriver
field. -
num_params
Sets the specified value to thenum_params
field. -
params
Sets the address of the specifiedFT_Parameter.Buffer
to theparams
field.
-