Package org.lwjgl.util.freetype
Class FT_Matrix
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct FT_Matrix {
FT_Fixed xx;
FT_Fixed xy;
FT_Fixed yx;
FT_Fixed yy;
}-
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 size 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionFT_Matrix(ByteBuffer container) Creates aFT_Matrixinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_Matrixcalloc()Returns a newFT_Matrixinstance allocated withmemCalloc.static FT_Matrix.Buffercalloc(int capacity) Returns a newFT_Matrix.Bufferinstance allocated withmemCalloc.static FT_Matrix.Buffercalloc(int capacity, MemoryStack stack) Returns a newFT_Matrix.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FT_Matrixcalloc(MemoryStack stack) Returns a newFT_Matrixinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FT_Matrixcreate()Returns a newFT_Matrixinstance allocated withBufferUtils.static FT_Matrix.Buffercreate(int capacity) Returns a newFT_Matrix.Bufferinstance allocated withBufferUtils.static FT_Matrixcreate(long address) Returns a newFT_Matrixinstance for the specified memory address.static FT_Matrix.Buffercreate(long address, int capacity) Create aFT_Matrix.Bufferinstance at the specified memory.static @Nullable FT_MatrixcreateSafe(long address) static @Nullable FT_Matrix.BuffercreateSafe(long address, int capacity) static FT_Matrixmalloc()Returns a newFT_Matrixinstance allocated withmemAlloc.static FT_Matrix.Buffermalloc(int capacity) Returns a newFT_Matrix.Bufferinstance allocated withmemAlloc.static FT_Matrix.Buffermalloc(int capacity, MemoryStack stack) Returns a newFT_Matrix.Bufferinstance allocated on the specifiedMemoryStack.static FT_Matrixmalloc(MemoryStack stack) Returns a newFT_Matrixinstance allocated on the specifiedMemoryStack.static longnxx(long struct) Unsafe version ofxx().static voidnxx(long struct, long value) Unsafe version ofxx.static longnxy(long struct) Unsafe version ofxy().static voidnxy(long struct, long value) Unsafe version ofxy.static longnyx(long struct) Unsafe version ofyx().static voidnyx(long struct, long value) Unsafe version ofyx.static longnyy(long struct) Unsafe version ofyy().static voidnyy(long struct, long value) Unsafe version ofyy.set(long xx, long xy, long yx, long yy) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).longxx()xx(long value) Sets the specified value to thexxfield.longxy()xy(long value) Sets the specified value to thexyfield.longyx()yx(long value) Sets the specified value to theyxfield.longyy()yy(long value) Sets the specified value to theyyfield.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. -
XX
public static final int XXThe struct member offsets. -
XY
public static final int XYThe struct member offsets. -
YX
public static final int YXThe struct member offsets. -
YY
public static final int YYThe struct member offsets.
-
-
Constructor Details
-
FT_Matrix
Creates aFT_Matrixinstance 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). -
xx
public long xx()- Returns:
- the value of the
xxfield.
-
xy
public long xy()- Returns:
- the value of the
xyfield.
-
yx
public long yx()- Returns:
- the value of the
yxfield.
-
yy
public long yy()- Returns:
- the value of the
yyfield.
-
xx
Sets the specified value to thexxfield. -
xy
Sets the specified value to thexyfield. -
yx
Sets the specified value to theyxfield. -
yy
Sets the specified value to theyyfield. -
set
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_Matrixinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFT_Matrixinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFT_Matrixinstance allocated withBufferUtils. -
create
Returns a newFT_Matrixinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFT_Matrix.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFT_Matrix.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFT_Matrix.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFT_Matrix.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFT_Matrixinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFT_Matrixinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFT_Matrix.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFT_Matrix.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nxx
public static long nxx(long struct) Unsafe version ofxx(). -
nxy
public static long nxy(long struct) Unsafe version ofxy(). -
nyx
public static long nyx(long struct) Unsafe version ofyx(). -
nyy
public static long nyy(long struct) Unsafe version ofyy(). -
nxx
public static void nxx(long struct, long value) Unsafe version ofxx. -
nxy
public static void nxy(long struct, long value) Unsafe version ofxy. -
nyx
public static void nyx(long struct, long value) Unsafe version ofyx. -
nyy
public static void nyy(long struct, long value) Unsafe version ofyy.
-