Package org.lwjgl.util.freetype
Class FT_Open_Args
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct FT_Open_Args {
FT_UInt flags;
FT_Byte const * memory_base;
FT_Long memory_size;
FT_String * pathname;
{@link FT_Stream FT_Stream} stream;
FT_Module driver;
FT_Int num_params;
{@link FT_Parameter FT_Parameter} * params;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionFT_Open_Args
(ByteBuffer container) Creates aFT_Open_Args
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_Open_Args
calloc()
Returns a newFT_Open_Args
instance allocated withmemCalloc
.static FT_Open_Args.Buffer
calloc
(int capacity) Returns a newFT_Open_Args.Buffer
instance allocated withmemCalloc
.static FT_Open_Args.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newFT_Open_Args.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FT_Open_Args
calloc
(MemoryStack stack) Returns a newFT_Open_Args
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FT_Open_Args
create()
Returns a newFT_Open_Args
instance allocated withBufferUtils
.static FT_Open_Args.Buffer
create
(int capacity) Returns a newFT_Open_Args.Buffer
instance allocated withBufferUtils
.static FT_Open_Args
create
(long address) Returns a newFT_Open_Args
instance for the specified memory address.static FT_Open_Args.Buffer
create
(long address, int capacity) Create aFT_Open_Args.Buffer
instance at the specified memory.static @Nullable FT_Open_Args
createSafe
(long address) static @Nullable FT_Open_Args.Buffer
createSafe
(long address, int capacity) long
driver()
driver
(long value) Sets the specified value to thedriver
field.int
flags()
flags
(int value) Sets the specified value to theflags
field.static FT_Open_Args
malloc()
Returns a newFT_Open_Args
instance allocated withmemAlloc
.static FT_Open_Args.Buffer
malloc
(int capacity) Returns a newFT_Open_Args.Buffer
instance allocated withmemAlloc
.static FT_Open_Args.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newFT_Open_Args.Buffer
instance allocated on the specifiedMemoryStack
.static FT_Open_Args
malloc
(MemoryStack stack) Returns a newFT_Open_Args
instance allocated on the specifiedMemoryStack
.@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.static long
ndriver
(long struct) Unsafe version ofdriver()
.static void
ndriver
(long struct, long value) Unsafe version ofdriver
.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static @Nullable ByteBuffer
nmemory_base
(long struct) Unsafe version ofmemory_base
.static void
nmemory_base
(long struct, @Nullable ByteBuffer value) Unsafe version ofmemory_base
.static long
nmemory_size
(long struct) Unsafe version ofmemory_size()
.static void
nmemory_size
(long struct, long value) Sets the specified value to thememory_size
field of the specifiedstruct
.static int
nnum_params
(long struct) Unsafe version ofnum_params()
.static void
nnum_params
(long struct, int value) Sets the specified value to thenum_params
field of the specifiedstruct
.static @Nullable FT_Parameter.Buffer
nparams
(long struct) Unsafe version ofparams()
.static void
nparams
(long struct, @Nullable FT_Parameter.Buffer value) Unsafe version ofparams
.static @Nullable ByteBuffer
npathname
(long struct) Unsafe version ofpathname()
.static void
npathname
(long struct, @Nullable ByteBuffer value) Unsafe version ofpathname
.static @Nullable String
npathnameString
(long struct) Unsafe version ofpathnameString()
.static @Nullable FT_Stream
nstream$
(long struct) Unsafe version ofstream$()
.static void
Unsafe version ofstream$
.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
set
(int flags, @Nullable ByteBuffer memory_base, long memory_size, @Nullable ByteBuffer pathname, @Nullable FT_Stream stream$, long driver, int num_params, @Nullable FT_Parameter.Buffer params) Initializes this struct with the specified values.set
(FT_Open_Args src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.@Nullable FT_Stream
stream$()
Sets the address of the specifiedFT_Stream
to thestream
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
FLAGS
public static final int FLAGSThe struct member offsets. -
MEMORY_BASE
public static final int MEMORY_BASEThe struct member offsets. -
MEMORY_SIZE
public static final int MEMORY_SIZEThe struct member offsets. -
PATHNAME
public static final int PATHNAMEThe struct member offsets. -
STREAM
public static final int STREAMThe struct member offsets. -
DRIVER
public static final int DRIVERThe struct member offsets. -
NUM_PARAMS
public static final int NUM_PARAMSThe struct member offsets. -
PARAMS
public static final int PARAMSThe struct member offsets.
-
-
Constructor Details
-
FT_Open_Args
Creates aFT_Open_Args
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<FT_Open_Args>
-
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. -
set
public FT_Open_Args set(int flags, @Nullable ByteBuffer memory_base, long memory_size, @Nullable ByteBuffer pathname, @Nullable FT_Stream stream$, long driver, int num_params, @Nullable FT_Parameter.Buffer params) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newFT_Open_Args
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFT_Open_Args
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFT_Open_Args
instance allocated withBufferUtils
. -
create
Returns a newFT_Open_Args
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFT_Open_Args.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFT_Open_Args.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFT_Open_Args.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFT_Open_Args.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFT_Open_Args
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFT_Open_Args
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFT_Open_Args.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFT_Open_Args.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nflags
public static int nflags(long struct) Unsafe version offlags()
. -
nmemory_base
Unsafe version ofmemory_base
. -
nmemory_size
public static long nmemory_size(long struct) Unsafe version ofmemory_size()
. -
npathname
Unsafe version ofpathname()
. -
npathnameString
Unsafe version ofpathnameString()
. -
nstream$
Unsafe version ofstream$()
. -
ndriver
public static long ndriver(long struct) Unsafe version ofdriver()
. -
nnum_params
public static int nnum_params(long struct) Unsafe version ofnum_params()
. -
nparams
Unsafe version ofparams()
. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags
. -
nmemory_base
Unsafe version ofmemory_base
. -
nmemory_size
public static void nmemory_size(long struct, long value) Sets the specified value to thememory_size
field of the specifiedstruct
. -
npathname
Unsafe version ofpathname
. -
nstream$
Unsafe version ofstream$
. -
ndriver
public static void ndriver(long struct, long value) Unsafe version ofdriver
. -
nnum_params
public static void nnum_params(long struct, int value) Sets the specified value to thenum_params
field of the specifiedstruct
. -
nparams
Unsafe version ofparams
.
-