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.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.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_Funcsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_Outline_Funcscalloc()Returns a newFT_Outline_Funcsinstance allocated withmemCalloc.static FT_Outline_Funcs.Buffercalloc(int capacity) Returns a newFT_Outline_Funcs.Bufferinstance allocated withmemCalloc.static FT_Outline_Funcs.Buffercalloc(int capacity, MemoryStack stack) Returns a newFT_Outline_Funcs.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FT_Outline_Funcscalloc(MemoryStack stack) Returns a newFT_Outline_Funcsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.@Nullable FT_Outline_ConicToFuncconic_to()conic_to(@Nullable FT_Outline_ConicToFuncI value) Sets the specified value to theconic_tofield.static FT_Outline_Funcscreate()Returns a newFT_Outline_Funcsinstance allocated withBufferUtils.static FT_Outline_Funcs.Buffercreate(int capacity) Returns a newFT_Outline_Funcs.Bufferinstance allocated withBufferUtils.static FT_Outline_Funcscreate(long address) Returns a newFT_Outline_Funcsinstance for the specified memory address.static FT_Outline_Funcs.Buffercreate(long address, int capacity) Create aFT_Outline_Funcs.Bufferinstance at the specified memory.static @Nullable FT_Outline_FuncscreateSafe(long address) static @Nullable FT_Outline_Funcs.BuffercreateSafe(long address, int capacity) @Nullable FT_Outline_CubicToFunccubic_to()cubic_to(@Nullable FT_Outline_CubicToFuncI value) Sets the specified value to thecubic_tofield.longdelta()delta(long value) Sets the specified value to thedeltafield.@Nullable FT_Outline_LineToFuncline_to()line_to(@Nullable FT_Outline_LineToFuncI value) Sets the specified value to theline_tofield.static FT_Outline_Funcsmalloc()Returns a newFT_Outline_Funcsinstance allocated withmemAlloc.static FT_Outline_Funcs.Buffermalloc(int capacity) Returns a newFT_Outline_Funcs.Bufferinstance allocated withmemAlloc.static FT_Outline_Funcs.Buffermalloc(int capacity, MemoryStack stack) Returns a newFT_Outline_Funcs.Bufferinstance allocated on the specifiedMemoryStack.static FT_Outline_Funcsmalloc(MemoryStack stack) Returns a newFT_Outline_Funcsinstance allocated on the specifiedMemoryStack.@Nullable FT_Outline_MoveToFuncmove_to()move_to(@Nullable FT_Outline_MoveToFuncI value) Sets the specified value to themove_tofield.static @Nullable FT_Outline_ConicToFuncnconic_to(long struct) Unsafe version ofconic_to().static voidnconic_to(long struct, @Nullable FT_Outline_ConicToFuncI value) Unsafe version ofconic_to.static @Nullable FT_Outline_CubicToFuncncubic_to(long struct) Unsafe version ofcubic_to().static voidncubic_to(long struct, @Nullable FT_Outline_CubicToFuncI value) Unsafe version ofcubic_to.static longndelta(long struct) Unsafe version ofdelta().static voidndelta(long struct, long value) Unsafe version ofdelta.static @Nullable FT_Outline_LineToFuncnline_to(long struct) Unsafe version ofline_to().static voidnline_to(long struct, @Nullable FT_Outline_LineToFuncI value) Unsafe version ofline_to.static @Nullable FT_Outline_MoveToFuncnmove_to(long struct) Unsafe version ofmove_to().static voidnmove_to(long struct, @Nullable FT_Outline_MoveToFuncI value) Unsafe version ofmove_to.static intnshift(long struct) Unsafe version ofshift().static voidnshift(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.intshift()shift(int value) Sets the specified value to theshiftfield.intsizeof()Returnssizeof(struct).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. -
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_Funcsinstance 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_Outline_Funcs>
-
move_to
- Returns:
- the value of the
move_tofield.
-
line_to
- Returns:
- the value of the
line_tofield.
-
conic_to
- Returns:
- the value of the
conic_tofield.
-
cubic_to
- Returns:
- the value of the
cubic_tofield.
-
shift
public int shift()- Returns:
- the value of the
shiftfield.
-
delta
public long delta()- Returns:
- the value of the
deltafield.
-
move_to
Sets the specified value to themove_tofield. -
line_to
Sets the specified value to theline_tofield. -
conic_to
Sets the specified value to theconic_tofield. -
cubic_to
Sets the specified value to thecubic_tofield. -
shift
Sets the specified value to theshiftfield. -
delta
Sets the specified value to thedeltafield. -
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_Funcsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFT_Outline_Funcsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFT_Outline_Funcsinstance allocated withBufferUtils. -
create
Returns a newFT_Outline_Funcsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFT_Outline_Funcs.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFT_Outline_Funcs.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFT_Outline_Funcs.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFT_Outline_Funcs.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFT_Outline_Funcsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFT_Outline_Funcsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFT_Outline_Funcs.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFT_Outline_Funcs.Bufferinstance allocated on the specifiedMemoryStackand 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.
-