Package org.lwjgl.util.freetype
Class FT_Outline_Funcs
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct FT_Outline_Funcs {
{@link FT_Outline_MoveToFuncI FT_Outline_MoveToFunc} move_to;
{@link FT_Outline_LineToFuncI FT_Outline_LineToFunc} line_to;
{@link FT_Outline_ConicToFuncI FT_Outline_ConicToFunc} conic_to;
{@link FT_Outline_CubicToFuncI FT_Outline_CubicToFunc} cubic_to;
int shift;
FT_Pos delta;
}
-
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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionFT_Outline_Funcs
(ByteBuffer container) Creates aFT_Outline_Funcs
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_Outline_Funcs
calloc()
Returns a newFT_Outline_Funcs
instance allocated withmemCalloc
.static FT_Outline_Funcs.Buffer
calloc
(int capacity) Returns a newFT_Outline_Funcs.Buffer
instance allocated withmemCalloc
.static FT_Outline_Funcs.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newFT_Outline_Funcs.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FT_Outline_Funcs
calloc
(MemoryStack stack) Returns a newFT_Outline_Funcs
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.@Nullable FT_Outline_ConicToFunc
conic_to()
conic_to
(@Nullable FT_Outline_ConicToFuncI value) Sets the specified value to theconic_to
field.static FT_Outline_Funcs
create()
Returns a newFT_Outline_Funcs
instance allocated withBufferUtils
.static FT_Outline_Funcs.Buffer
create
(int capacity) Returns a newFT_Outline_Funcs.Buffer
instance allocated withBufferUtils
.static FT_Outline_Funcs
create
(long address) Returns a newFT_Outline_Funcs
instance for the specified memory address.static FT_Outline_Funcs.Buffer
create
(long address, int capacity) Create aFT_Outline_Funcs.Buffer
instance at the specified memory.static @Nullable FT_Outline_Funcs
createSafe
(long address) static @Nullable FT_Outline_Funcs.Buffer
createSafe
(long address, int capacity) @Nullable FT_Outline_CubicToFunc
cubic_to()
cubic_to
(@Nullable FT_Outline_CubicToFuncI value) Sets the specified value to thecubic_to
field.long
delta()
delta
(long value) Sets the specified value to thedelta
field.@Nullable FT_Outline_LineToFunc
line_to()
line_to
(@Nullable FT_Outline_LineToFuncI value) Sets the specified value to theline_to
field.static FT_Outline_Funcs
malloc()
Returns a newFT_Outline_Funcs
instance allocated withmemAlloc
.static FT_Outline_Funcs.Buffer
malloc
(int capacity) Returns a newFT_Outline_Funcs.Buffer
instance allocated withmemAlloc
.static FT_Outline_Funcs.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newFT_Outline_Funcs.Buffer
instance allocated on the specifiedMemoryStack
.static FT_Outline_Funcs
malloc
(MemoryStack stack) Returns a newFT_Outline_Funcs
instance allocated on the specifiedMemoryStack
.@Nullable FT_Outline_MoveToFunc
move_to()
move_to
(@Nullable FT_Outline_MoveToFuncI value) Sets the specified value to themove_to
field.static @Nullable FT_Outline_ConicToFunc
nconic_to
(long struct) Unsafe version ofconic_to()
.static void
nconic_to
(long struct, @Nullable FT_Outline_ConicToFuncI value) Unsafe version ofconic_to
.static @Nullable FT_Outline_CubicToFunc
ncubic_to
(long struct) Unsafe version ofcubic_to()
.static void
ncubic_to
(long struct, @Nullable FT_Outline_CubicToFuncI value) Unsafe version ofcubic_to
.static long
ndelta
(long struct) Unsafe version ofdelta()
.static void
ndelta
(long struct, long value) Unsafe version ofdelta
.static @Nullable FT_Outline_LineToFunc
nline_to
(long struct) Unsafe version ofline_to()
.static void
nline_to
(long struct, @Nullable FT_Outline_LineToFuncI value) Unsafe version ofline_to
.static @Nullable FT_Outline_MoveToFunc
nmove_to
(long struct) Unsafe version ofmove_to()
.static void
nmove_to
(long struct, @Nullable FT_Outline_MoveToFuncI value) Unsafe version ofmove_to
.static int
nshift
(long struct) Unsafe version ofshift()
.static void
nshift
(long struct, int value) Unsafe version ofshift
.set
(FT_Outline_Funcs src) Copies the specified struct data to this struct.set
(FT_Outline_MoveToFuncI move_to, FT_Outline_LineToFuncI line_to, FT_Outline_ConicToFuncI conic_to, FT_Outline_CubicToFuncI cubic_to, int shift, long delta) Initializes this struct with the specified values.int
shift()
shift
(int value) Sets the specified value to theshift
field.int
sizeof()
Returnssizeof(struct)
.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. -
MOVE_TO
public static final int MOVE_TOThe struct member offsets. -
LINE_TO
public static final int LINE_TOThe struct member offsets. -
CONIC_TO
public static final int CONIC_TOThe struct member offsets. -
CUBIC_TO
public static final int CUBIC_TOThe struct member offsets. -
SHIFT
public static final int SHIFTThe struct member offsets. -
DELTA
public static final int DELTAThe struct member offsets.
-
-
Constructor Details
-
FT_Outline_Funcs
Creates aFT_Outline_Funcs
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_Outline_Funcs>
-
move_to
- Returns:
- the value of the
move_to
field.
-
line_to
- Returns:
- the value of the
line_to
field.
-
conic_to
- Returns:
- the value of the
conic_to
field.
-
cubic_to
- Returns:
- the value of the
cubic_to
field.
-
shift
public int shift()- Returns:
- the value of the
shift
field.
-
delta
public long delta()- Returns:
- the value of the
delta
field.
-
move_to
Sets the specified value to themove_to
field. -
line_to
Sets the specified value to theline_to
field. -
conic_to
Sets the specified value to theconic_to
field. -
cubic_to
Sets the specified value to thecubic_to
field. -
shift
Sets the specified value to theshift
field. -
delta
Sets the specified value to thedelta
field. -
set
public FT_Outline_Funcs set(FT_Outline_MoveToFuncI move_to, FT_Outline_LineToFuncI line_to, FT_Outline_ConicToFuncI conic_to, FT_Outline_CubicToFuncI cubic_to, int shift, long delta) 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_Outline_Funcs
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFT_Outline_Funcs
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFT_Outline_Funcs
instance allocated withBufferUtils
. -
create
Returns a newFT_Outline_Funcs
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFT_Outline_Funcs.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFT_Outline_Funcs.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFT_Outline_Funcs.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFT_Outline_Funcs.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFT_Outline_Funcs
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFT_Outline_Funcs
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFT_Outline_Funcs.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFT_Outline_Funcs.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nmove_to
Unsafe version ofmove_to()
. -
nline_to
Unsafe version ofline_to()
. -
nconic_to
Unsafe version ofconic_to()
. -
ncubic_to
Unsafe version ofcubic_to()
. -
nshift
public static int nshift(long struct) Unsafe version ofshift()
. -
ndelta
public static long ndelta(long struct) Unsafe version ofdelta()
. -
nmove_to
Unsafe version ofmove_to
. -
nline_to
Unsafe version ofline_to
. -
nconic_to
Unsafe version ofconic_to
. -
ncubic_to
Unsafe version ofcubic_to
. -
nshift
public static void nshift(long struct, int value) Unsafe version ofshift
. -
ndelta
public static void ndelta(long struct, long value) Unsafe version ofdelta
.
-