Package org.lwjgl.util.freetype
Class FT_Raster_Params
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct FT_Raster_Params {
{@link FT_Bitmap FT_Bitmap} const * target;
void const * source;
int flags;
{@link FT_SpanFuncI FT_SpanFunc} gray_spans;
{@link FT_SpanFuncI FT_SpanFunc} black_spans;
FT_Raster_BitTest_Func bit_test;
FT_Raster_BitTest_Func bit_set;
void * user;
{@link FT_BBox FT_BBox} clip_box;
}-
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 size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.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_Raster_Params(ByteBuffer container) Creates aFT_Raster_Paramsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_Raster_Paramscalloc()Returns a newFT_Raster_Paramsinstance allocated withmemCalloc.static FT_Raster_Params.Buffercalloc(int capacity) Returns a newFT_Raster_Params.Bufferinstance allocated withmemCalloc.static FT_Raster_Params.Buffercalloc(int capacity, MemoryStack stack) Returns a newFT_Raster_Params.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FT_Raster_Paramscalloc(MemoryStack stack) Returns a newFT_Raster_Paramsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.clip_box()Passes theclip_boxfield to the specifiedConsumer.Copies the specifiedFT_BBoxto theclip_boxfield.static FT_Raster_Paramscreate()Returns a newFT_Raster_Paramsinstance allocated withBufferUtils.static FT_Raster_Params.Buffercreate(int capacity) Returns a newFT_Raster_Params.Bufferinstance allocated withBufferUtils.static FT_Raster_Paramscreate(long address) Returns a newFT_Raster_Paramsinstance for the specified memory address.static FT_Raster_Params.Buffercreate(long address, int capacity) Create aFT_Raster_Params.Bufferinstance at the specified memory.static @Nullable FT_Raster_ParamscreateSafe(long address) static @Nullable FT_Raster_Params.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.@Nullable FT_SpanFuncgray_spans(@Nullable FT_SpanFuncI value) Sets the specified value to thegray_spansfield.static FT_Raster_Paramsmalloc()Returns a newFT_Raster_Paramsinstance allocated withmemAlloc.static FT_Raster_Params.Buffermalloc(int capacity) Returns a newFT_Raster_Params.Bufferinstance allocated withmemAlloc.static FT_Raster_Params.Buffermalloc(int capacity, MemoryStack stack) Returns a newFT_Raster_Params.Bufferinstance allocated on the specifiedMemoryStack.static FT_Raster_Paramsmalloc(MemoryStack stack) Returns a newFT_Raster_Paramsinstance allocated on the specifiedMemoryStack.static longnbit_set(long struct) static voidnbit_set(long struct, long value) static longnbit_test(long struct) static voidnbit_test(long struct, long value) static @Nullable FT_SpanFuncnblack_spans(long struct) static voidnblack_spans(long struct, @Nullable FT_SpanFuncI value) static FT_BBoxnclip_box(long struct) Unsafe version ofclip_box().static voidUnsafe version ofclip_box.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static @Nullable FT_SpanFuncngray_spans(long struct) Unsafe version ofgray_spans().static voidngray_spans(long struct, @Nullable FT_SpanFuncI value) Unsafe version ofgray_spans.static @Nullable ByteBuffernsource(long struct, int capacity) Unsafe version ofsource.static voidnsource(long struct, @Nullable ByteBuffer value) Unsafe version ofsource.static @Nullable FT_Bitmapntarget(long struct) Unsafe version oftarget().static voidUnsafe version oftarget.static longnuser(long struct) Unsafe version ofuser().static voidnuser(long struct, long value) Unsafe version ofuser.set(@Nullable FT_Bitmap target, @Nullable ByteBuffer source, int flags, @Nullable FT_SpanFuncI gray_spans, long user, FT_BBox clip_box) Initializes this struct with the specified values.set(FT_Raster_Params src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).@Nullable ByteBuffersource(int capacity) source(@Nullable ByteBuffer value) Sets the address of the specifiedByteBufferto thesourcefield.@Nullable FT_Bitmaptarget()Sets the address of the specifiedFT_Bitmapto thetargetfield.longuser()user(long value) Sets the specified value to theuserfield.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. -
TARGET
public static final int TARGETThe struct member offsets. -
SOURCE
public static final int SOURCEThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
GRAY_SPANS
public static final int GRAY_SPANSThe struct member offsets. -
BLACK_SPANS
public static final int BLACK_SPANSThe struct member offsets. -
BIT_TEST
public static final int BIT_TESTThe struct member offsets. -
BIT_SET
public static final int BIT_SETThe struct member offsets. -
USER
public static final int USERThe struct member offsets. -
CLIP_BOX
public static final int CLIP_BOXThe struct member offsets.
-
-
Constructor Details
-
FT_Raster_Params
Creates aFT_Raster_Paramsinstance 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_Raster_Params>
-
target
- Returns:
- a
FT_Bitmapview of the struct pointed to by thetargetfield.
-
source
- Returns:
- a
ByteBufferview of the data pointed to by thesourcefield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
gray_spans
- Returns:
- the value of the
gray_spansfield.
-
user
public long user()- Returns:
- the value of the
userfield.
-
clip_box
- Returns:
- a
FT_BBoxview of theclip_boxfield.
-
target
Sets the address of the specifiedFT_Bitmapto thetargetfield. -
source
Sets the address of the specifiedByteBufferto thesourcefield. -
flags
Sets the specified value to theflagsfield. -
gray_spans
Sets the specified value to thegray_spansfield. -
user
Sets the specified value to theuserfield. -
clip_box
Copies the specifiedFT_BBoxto theclip_boxfield. -
clip_box
Passes theclip_boxfield to the specifiedConsumer. -
set
public FT_Raster_Params set(@Nullable FT_Bitmap target, @Nullable ByteBuffer source, int flags, @Nullable FT_SpanFuncI gray_spans, long user, FT_BBox clip_box) 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_Raster_Paramsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFT_Raster_Paramsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFT_Raster_Paramsinstance allocated withBufferUtils. -
create
Returns a newFT_Raster_Paramsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFT_Raster_Params.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFT_Raster_Params.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFT_Raster_Params.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFT_Raster_Params.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFT_Raster_Paramsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFT_Raster_Paramsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFT_Raster_Params.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFT_Raster_Params.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntarget
Unsafe version oftarget(). -
nsource
Unsafe version ofsource. -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
ngray_spans
Unsafe version ofgray_spans(). -
nblack_spans
-
nbit_test
public static long nbit_test(long struct) -
nbit_set
public static long nbit_set(long struct) -
nuser
public static long nuser(long struct) Unsafe version ofuser(). -
nclip_box
Unsafe version ofclip_box(). -
ntarget
Unsafe version oftarget. -
nsource
Unsafe version ofsource. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
ngray_spans
Unsafe version ofgray_spans. -
nblack_spans
-
nbit_test
public static void nbit_test(long struct, long value) -
nbit_set
public static void nbit_set(long struct, long value) -
nuser
public static void nuser(long struct, long value) Unsafe version ofuser. -
nclip_box
Unsafe version ofclip_box.
-