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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe 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_Argsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_Open_Argscalloc()Returns a newFT_Open_Argsinstance allocated withmemCalloc.static FT_Open_Args.Buffercalloc(int capacity) Returns a newFT_Open_Args.Bufferinstance allocated withmemCalloc.static FT_Open_Args.Buffercalloc(int capacity, MemoryStack stack) Returns a newFT_Open_Args.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FT_Open_Argscalloc(MemoryStack stack) Returns a newFT_Open_Argsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FT_Open_Argscreate()Returns a newFT_Open_Argsinstance allocated withBufferUtils.static FT_Open_Args.Buffercreate(int capacity) Returns a newFT_Open_Args.Bufferinstance allocated withBufferUtils.static FT_Open_Argscreate(long address) Returns a newFT_Open_Argsinstance for the specified memory address.static FT_Open_Args.Buffercreate(long address, int capacity) Create aFT_Open_Args.Bufferinstance at the specified memory.static @Nullable FT_Open_ArgscreateSafe(long address) static @Nullable FT_Open_Args.BuffercreateSafe(long address, int capacity) longdriver()driver(long value) Sets the specified value to thedriverfield.intflags()flags(int value) Sets the specified value to theflagsfield.static FT_Open_Argsmalloc()Returns a newFT_Open_Argsinstance allocated withmemAlloc.static FT_Open_Args.Buffermalloc(int capacity) Returns a newFT_Open_Args.Bufferinstance allocated withmemAlloc.static FT_Open_Args.Buffermalloc(int capacity, MemoryStack stack) Returns a newFT_Open_Args.Bufferinstance allocated on the specifiedMemoryStack.static FT_Open_Argsmalloc(MemoryStack stack) Returns a newFT_Open_Argsinstance allocated on the specifiedMemoryStack.@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.static longndriver(long struct) Unsafe version ofdriver().static voidndriver(long struct, long value) Unsafe version ofdriver.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static @Nullable ByteBuffernmemory_base(long struct) Unsafe version ofmemory_base.static voidnmemory_base(long struct, @Nullable ByteBuffer value) Unsafe version ofmemory_base.static longnmemory_size(long struct) Unsafe version ofmemory_size().static voidnmemory_size(long struct, long value) Sets the specified value to thememory_sizefield of the specifiedstruct.static intnnum_params(long struct) Unsafe version ofnum_params().static voidnnum_params(long struct, int value) Sets the specified value to thenum_paramsfield of the specifiedstruct.static @Nullable FT_Parameter.Buffernparams(long struct) Unsafe version ofparams().static voidnparams(long struct, @Nullable FT_Parameter.Buffer value) Unsafe version ofparams.static @Nullable ByteBuffernpathname(long struct) Unsafe version ofpathname().static voidnpathname(long struct, @Nullable ByteBuffer value) Unsafe version ofpathname.static @Nullable StringnpathnameString(long struct) Unsafe version ofpathnameString().static @Nullable FT_Streamnstream$(long struct) Unsafe version ofstream$().static voidUnsafe version ofstream$.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 Stringset(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.intsizeof()Returnssizeof(struct).@Nullable FT_Streamstream$()Sets the address of the specifiedFT_Streamto thestreamfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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_Argsinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<FT_Open_Args>
-
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. -
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_Argsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFT_Open_Argsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFT_Open_Argsinstance allocated withBufferUtils. -
create
Returns a newFT_Open_Argsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFT_Open_Args.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFT_Open_Args.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFT_Open_Args.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFT_Open_Args.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFT_Open_Argsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFT_Open_Argsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFT_Open_Args.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFT_Open_Args.Bufferinstance allocated on the specifiedMemoryStackand 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_sizefield 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_paramsfield of the specifiedstruct. -
nparams
Unsafe version ofparams.
-