Package org.lwjgl.util.freetype
Class FT_PaintSweepGradient
- All Implemented Interfaces:
Pointer
struct FT_PaintSweepGradient {
{@link FT_ColorLine FT_ColorLine} colorline;
{@link FT_Vector FT_Vector} center;
FT_Fixed start_angle;
FT_Fixed end_angle;
}-
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 size in bytes.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_PaintSweepGradient(ByteBuffer container) Creates aFT_PaintSweepGradientinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncenter()static FT_PaintSweepGradientcreate(long address) Returns a newFT_PaintSweepGradientinstance for the specified memory address.static FT_PaintSweepGradient.Buffercreate(long address, int capacity) Create aFT_PaintSweepGradient.Bufferinstance at the specified memory.static @Nullable FT_PaintSweepGradientcreateSafe(long address) static @Nullable FT_PaintSweepGradient.BuffercreateSafe(long address, int capacity) longstatic FT_Vectorncenter(long struct) Unsafe version ofcenter().static FT_ColorLinencolorline(long struct) Unsafe version ofcolorline().static longnend_angle(long struct) Unsafe version ofend_angle().static longnstart_angle(long struct) Unsafe version ofstart_angle().intsizeof()Returnssizeof(struct).longMethods 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. -
CENTER
public static final int CENTERThe struct member offsets. -
START_ANGLE
public static final int START_ANGLEThe struct member offsets. -
END_ANGLE
public static final int END_ANGLEThe struct member offsets.
-
-
Constructor Details
-
FT_PaintSweepGradient
Creates aFT_PaintSweepGradientinstance 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_PaintSweepGradient>
-
colorline
- Returns:
- a
FT_ColorLineview of thecolorlinefield.
-
center
- Returns:
- a
FT_Vectorview of thecenterfield.
-
start_angle
public long start_angle()- Returns:
- the value of the
start_anglefield.
-
end_angle
public long end_angle()- Returns:
- the value of the
end_anglefield.
-
create
Returns a newFT_PaintSweepGradientinstance for the specified memory address. -
createSafe
-
create
Create aFT_PaintSweepGradient.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
ncolorline
Unsafe version ofcolorline(). -
ncenter
Unsafe version ofcenter(). -
nstart_angle
public static long nstart_angle(long struct) Unsafe version ofstart_angle(). -
nend_angle
public static long nend_angle(long struct) Unsafe version ofend_angle().
-