Package org.lwjgl.util.freetype
Class FT_PaintLinearGradient
- All Implemented Interfaces:
Pointer
struct FT_PaintLinearGradient {
{@link FT_ColorLine FT_ColorLine} colorline;
{@link FT_Vector FT_Vector} p0;
{@link FT_Vector FT_Vector} p1;
{@link FT_Vector FT_Vector} p2;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionFT_PaintLinearGradient(ByteBuffer container) Creates aFT_PaintLinearGradientinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_PaintLinearGradientcreate(long address) Returns a newFT_PaintLinearGradientinstance for the specified memory address.create(long address, int capacity) Create aFT_PaintLinearGradient.Bufferinstance at the specified memory.static @Nullable FT_PaintLinearGradientcreateSafe(long address) static @Nullable FT_PaintLinearGradient.BuffercreateSafe(long address, int capacity) static FT_ColorLinencolorline(long struct) Unsafe version ofcolorline().static FT_Vectornp0(long struct) Unsafe version ofp0().static FT_Vectornp1(long struct) Unsafe version ofp1().static FT_Vectornp2(long struct) Unsafe version ofp2().p0()p1()p2()intsizeof()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. -
COLORLINE
public static final int COLORLINEThe struct member offsets. -
P0
public static final int P0The struct member offsets. -
P1
public static final int P1The struct member offsets. -
P2
public static final int P2The struct member offsets.
-
-
Constructor Details
-
FT_PaintLinearGradient
Creates aFT_PaintLinearGradientinstance 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_PaintLinearGradient>
-
colorline
- Returns:
- a
FT_ColorLineview of thecolorlinefield.
-
p0
- Returns:
- a
FT_Vectorview of thep0field.
-
p1
- Returns:
- a
FT_Vectorview of thep1field.
-
p2
- Returns:
- a
FT_Vectorview of thep2field.
-
create
Returns a newFT_PaintLinearGradientinstance for the specified memory address. -
createSafe
-
create
Create aFT_PaintLinearGradient.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
ncolorline
Unsafe version ofcolorline(). -
np0
Unsafe version ofp0(). -
np1
Unsafe version ofp1(). -
np2
Unsafe version ofp2().
-