Package org.lwjgl.util.freetype
Class FT_MM_Var
- All Implemented Interfaces:
Pointer
struct FT_MM_Var {
FT_UInt num_axis;
FT_UInt num_designs;
FT_UInt num_namedstyles;
{@link FT_Var_Axis FT_Var_Axis} * axis;
{@link FT_Var_Named_Style FT_Var_Named_Style} * namedstyle;
}
-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionFT_MM_Var
(ByteBuffer container) Creates aFT_MM_Var
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionaxis()
static FT_MM_Var
create
(long address) Returns a newFT_MM_Var
instance for the specified memory address.static FT_MM_Var.Buffer
create
(long address, int capacity) Create aFT_MM_Var.Buffer
instance at the specified memory.static @Nullable FT_MM_Var
createSafe
(long address) static @Nullable FT_MM_Var.Buffer
createSafe
(long address, int capacity) static FT_Var_Axis.Buffer
naxis
(long struct) Unsafe version ofaxis()
.static FT_Var_Named_Style.Buffer
nnamedstyle
(long struct) Unsafe version ofnamedstyle()
.static int
nnum_axis
(long struct) Unsafe version ofnum_axis()
.static int
nnum_designs
(long struct) Unsafe version ofnum_designs()
.static int
nnum_namedstyles
(long struct) Unsafe version ofnum_namedstyles()
.int
num_axis()
int
int
int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
NUM_AXIS
public static final int NUM_AXISThe struct member offsets. -
NUM_DESIGNS
public static final int NUM_DESIGNSThe struct member offsets. -
NUM_NAMEDSTYLES
public static final int NUM_NAMEDSTYLESThe struct member offsets. -
AXIS
public static final int AXISThe struct member offsets. -
NAMEDSTYLE
public static final int NAMEDSTYLEThe struct member offsets.
-
-
Constructor Details
-
FT_MM_Var
Creates aFT_MM_Var
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)
. -
num_axis
public int num_axis()- Returns:
- the value of the
num_axis
field.
-
num_designs
public int num_designs()- Returns:
- the value of the
num_designs
field.
-
num_namedstyles
public int num_namedstyles()- Returns:
- the value of the
num_namedstyles
field.
-
axis
- Returns:
- a
FT_Var_Axis.Buffer
view of the struct array pointed to by theaxis
field.
-
namedstyle
- Returns:
- a
FT_Var_Named_Style.Buffer
view of the struct array pointed to by thenamedstyle
field.
-
create
Returns a newFT_MM_Var
instance for the specified memory address. -
createSafe
-
create
Create aFT_MM_Var.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nnum_axis
public static int nnum_axis(long struct) Unsafe version ofnum_axis()
. -
nnum_designs
public static int nnum_designs(long struct) Unsafe version ofnum_designs()
. -
nnum_namedstyles
public static int nnum_namedstyles(long struct) Unsafe version ofnum_namedstyles()
. -
naxis
Unsafe version ofaxis()
. -
nnamedstyle
Unsafe version ofnamedstyle()
.
-