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.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 size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.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_Raster_Params
(ByteBuffer container) Creates aFT_Raster_Params
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_Raster_Params
calloc()
Returns a newFT_Raster_Params
instance allocated withmemCalloc
.static FT_Raster_Params.Buffer
calloc
(int capacity) Returns a newFT_Raster_Params.Buffer
instance allocated withmemCalloc
.static FT_Raster_Params.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newFT_Raster_Params.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FT_Raster_Params
calloc
(MemoryStack stack) Returns a newFT_Raster_Params
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.clip_box()
Passes theclip_box
field to the specifiedConsumer
.Copies the specifiedFT_BBox
to theclip_box
field.static FT_Raster_Params
create()
Returns a newFT_Raster_Params
instance allocated withBufferUtils
.static FT_Raster_Params.Buffer
create
(int capacity) Returns a newFT_Raster_Params.Buffer
instance allocated withBufferUtils
.static FT_Raster_Params
create
(long address) Returns a newFT_Raster_Params
instance for the specified memory address.static FT_Raster_Params.Buffer
create
(long address, int capacity) Create aFT_Raster_Params.Buffer
instance at the specified memory.static @Nullable FT_Raster_Params
createSafe
(long address) static @Nullable FT_Raster_Params.Buffer
createSafe
(long address, int capacity) int
flags()
flags
(int value) Sets the specified value to theflags
field.@Nullable FT_SpanFunc
gray_spans
(@Nullable FT_SpanFuncI value) Sets the specified value to thegray_spans
field.static FT_Raster_Params
malloc()
Returns a newFT_Raster_Params
instance allocated withmemAlloc
.static FT_Raster_Params.Buffer
malloc
(int capacity) Returns a newFT_Raster_Params.Buffer
instance allocated withmemAlloc
.static FT_Raster_Params.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newFT_Raster_Params.Buffer
instance allocated on the specifiedMemoryStack
.static FT_Raster_Params
malloc
(MemoryStack stack) Returns a newFT_Raster_Params
instance allocated on the specifiedMemoryStack
.static long
nbit_set
(long struct) static void
nbit_set
(long struct, long value) static long
nbit_test
(long struct) static void
nbit_test
(long struct, long value) static @Nullable FT_SpanFunc
nblack_spans
(long struct) static void
nblack_spans
(long struct, @Nullable FT_SpanFuncI value) static FT_BBox
nclip_box
(long struct) Unsafe version ofclip_box()
.static void
Unsafe version ofclip_box
.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static @Nullable FT_SpanFunc
ngray_spans
(long struct) Unsafe version ofgray_spans()
.static void
ngray_spans
(long struct, @Nullable FT_SpanFuncI value) Unsafe version ofgray_spans
.static @Nullable ByteBuffer
nsource
(long struct, int capacity) Unsafe version ofsource
.static void
nsource
(long struct, @Nullable ByteBuffer value) Unsafe version ofsource
.static @Nullable FT_Bitmap
ntarget
(long struct) Unsafe version oftarget()
.static void
Unsafe version oftarget
.static long
nuser
(long struct) Unsafe version ofuser()
.static void
nuser
(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.int
sizeof()
Returnssizeof(struct)
.@Nullable ByteBuffer
source
(int capacity) source
(@Nullable ByteBuffer value) Sets the address of the specifiedByteBuffer
to thesource
field.@Nullable FT_Bitmap
target()
Sets the address of the specifiedFT_Bitmap
to thetarget
field.long
user()
user
(long value) Sets the specified value to theuser
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. -
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_Params
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_Raster_Params>
-
target
- Returns:
- a
FT_Bitmap
view of the struct pointed to by thetarget
field.
-
source
- Returns:
- a
ByteBuffer
view of the data pointed to by thesource
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
gray_spans
- Returns:
- the value of the
gray_spans
field.
-
user
public long user()- Returns:
- the value of the
user
field.
-
clip_box
- Returns:
- a
FT_BBox
view of theclip_box
field.
-
target
Sets the address of the specifiedFT_Bitmap
to thetarget
field. -
source
Sets the address of the specifiedByteBuffer
to thesource
field. -
flags
Sets the specified value to theflags
field. -
gray_spans
Sets the specified value to thegray_spans
field. -
user
Sets the specified value to theuser
field. -
clip_box
Copies the specifiedFT_BBox
to theclip_box
field. -
clip_box
Passes theclip_box
field 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_Params
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFT_Raster_Params
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFT_Raster_Params
instance allocated withBufferUtils
. -
create
Returns a newFT_Raster_Params
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFT_Raster_Params.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFT_Raster_Params.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFT_Raster_Params.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFT_Raster_Params.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFT_Raster_Params
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFT_Raster_Params
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFT_Raster_Params.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFT_Raster_Params.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-