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.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 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_Varinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionaxis()static FT_MM_Varcreate(long address) Returns a newFT_MM_Varinstance for the specified memory address.static FT_MM_Var.Buffercreate(long address, int capacity) Create aFT_MM_Var.Bufferinstance at the specified memory.static @Nullable FT_MM_VarcreateSafe(long address) static @Nullable FT_MM_Var.BuffercreateSafe(long address, int capacity) static FT_Var_Axis.Buffernaxis(long struct) Unsafe version ofaxis().static FT_Var_Named_Style.Buffernnamedstyle(long struct) Unsafe version ofnamedstyle().static intnnum_axis(long struct) Unsafe version ofnum_axis().static intnnum_designs(long struct) Unsafe version ofnum_designs().static intnnum_namedstyles(long struct) Unsafe version ofnum_namedstyles().intnum_axis()intintintsizeof()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_Varinstance 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). -
num_axis
public int num_axis()- Returns:
- the value of the
num_axisfield.
-
num_designs
public int num_designs()- Returns:
- the value of the
num_designsfield.
-
num_namedstyles
public int num_namedstyles()- Returns:
- the value of the
num_namedstylesfield.
-
axis
- Returns:
- a
FT_Var_Axis.Bufferview of the struct array pointed to by theaxisfield.
-
namedstyle
- Returns:
- a
FT_Var_Named_Style.Bufferview of the struct array pointed to by thenamedstylefield.
-
create
Returns a newFT_MM_Varinstance for the specified memory address. -
createSafe
-
create
Create aFT_MM_Var.Bufferinstance 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().
-