Package org.lwjgl.util.freetype
Class FT_COLR_Paint
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct FT_COLR_Paint {
FT_PaintFormat format;
union {
{@link FT_PaintColrLayers FT_PaintColrLayers} colr_layers;
{@link FT_PaintGlyph FT_PaintGlyph} glyph;
{@link FT_PaintSolid FT_PaintSolid} solid;
{@link FT_PaintLinearGradient FT_PaintLinearGradient} linear_gradient;
{@link FT_PaintRadialGradient FT_PaintRadialGradient} radial_gradient;
{@link FT_PaintSweepGradient FT_PaintSweepGradient} sweep_gradient;
{@link FT_PaintTransform FT_PaintTransform} transform;
{@link FT_PaintTranslate FT_PaintTranslate} translate;
{@link FT_PaintScale FT_PaintScale} scale;
{@link FT_PaintRotate FT_PaintRotate} rotate;
{@link FT_PaintSkew FT_PaintSkew} skew;
{@link FT_PaintComposite FT_PaintComposite} composite;
{@link FT_PaintColrGlyph FT_PaintColrGlyph} colr_glyph;
} u;
}
-
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 size 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 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 member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionFT_COLR_Paint
(ByteBuffer container) Creates aFT_COLR_Paint
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_COLR_Paint
calloc()
Returns a newFT_COLR_Paint
instance allocated withmemCalloc
.static FT_COLR_Paint.Buffer
calloc
(int capacity) Returns a newFT_COLR_Paint.Buffer
instance allocated withmemCalloc
.static FT_COLR_Paint.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newFT_COLR_Paint.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FT_COLR_Paint
calloc
(MemoryStack stack) Returns a newFT_COLR_Paint
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FT_COLR_Paint
create()
Returns a newFT_COLR_Paint
instance allocated withBufferUtils
.static FT_COLR_Paint.Buffer
create
(int capacity) Returns a newFT_COLR_Paint.Buffer
instance allocated withBufferUtils
.static FT_COLR_Paint
create
(long address) Returns a newFT_COLR_Paint
instance for the specified memory address.static FT_COLR_Paint.Buffer
create
(long address, int capacity) Create aFT_COLR_Paint.Buffer
instance at the specified memory.static @Nullable FT_COLR_Paint
createSafe
(long address) static @Nullable FT_COLR_Paint.Buffer
createSafe
(long address, int capacity) int
format()
static FT_COLR_Paint
malloc()
Returns a newFT_COLR_Paint
instance allocated withmemAlloc
.static FT_COLR_Paint.Buffer
malloc
(int capacity) Returns a newFT_COLR_Paint.Buffer
instance allocated withmemAlloc
.static FT_COLR_Paint.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newFT_COLR_Paint.Buffer
instance allocated on the specifiedMemoryStack
.static FT_COLR_Paint
malloc
(MemoryStack stack) Returns a newFT_COLR_Paint
instance allocated on the specifiedMemoryStack
.static int
nformat
(long struct) Unsafe version offormat()
.static FT_PaintColrGlyph
nu_colr_glyph
(long struct) Unsafe version ofu_colr_glyph()
.static FT_PaintColrLayers
nu_colr_layers
(long struct) Unsafe version ofu_colr_layers()
.static FT_PaintComposite
nu_composite
(long struct) Unsafe version ofu_composite()
.static FT_PaintGlyph
nu_glyph
(long struct) Unsafe version ofu_glyph()
.static FT_PaintLinearGradient
nu_linear_gradient
(long struct) Unsafe version ofu_linear_gradient()
.static FT_PaintRadialGradient
nu_radial_gradient
(long struct) Unsafe version ofu_radial_gradient()
.static FT_PaintRotate
nu_rotate
(long struct) Unsafe version ofu_rotate()
.static FT_PaintScale
nu_scale
(long struct) Unsafe version ofu_scale()
.static FT_PaintSkew
nu_skew
(long struct) Unsafe version ofu_skew()
.static FT_PaintSolid
nu_solid
(long struct) Unsafe version ofu_solid()
.static FT_PaintSweepGradient
nu_sweep_gradient
(long struct) Unsafe version ofu_sweep_gradient()
.static FT_PaintTransform
nu_transform
(long struct) Unsafe version ofu_transform()
.static FT_PaintTranslate
nu_translate
(long struct) Unsafe version ofu_translate()
.int
sizeof()
Returnssizeof(struct)
.u_glyph()
u_rotate()
u_scale()
u_skew()
u_solid()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
FORMAT
public static final int FORMATThe struct member offsets. -
U
public static final int UThe struct member offsets. -
U_COLR_LAYERS
public static final int U_COLR_LAYERSThe struct member offsets. -
U_GLYPH
public static final int U_GLYPHThe struct member offsets. -
U_SOLID
public static final int U_SOLIDThe struct member offsets. -
U_LINEAR_GRADIENT
public static final int U_LINEAR_GRADIENTThe struct member offsets. -
U_RADIAL_GRADIENT
public static final int U_RADIAL_GRADIENTThe struct member offsets. -
U_SWEEP_GRADIENT
public static final int U_SWEEP_GRADIENTThe struct member offsets. -
U_TRANSFORM
public static final int U_TRANSFORMThe struct member offsets. -
U_TRANSLATE
public static final int U_TRANSLATEThe struct member offsets. -
U_SCALE
public static final int U_SCALEThe struct member offsets. -
U_ROTATE
public static final int U_ROTATEThe struct member offsets. -
U_SKEW
public static final int U_SKEWThe struct member offsets. -
U_COMPOSITE
public static final int U_COMPOSITEThe struct member offsets. -
U_COLR_GLYPH
public static final int U_COLR_GLYPHThe struct member offsets.
-
-
Constructor Details
-
FT_COLR_Paint
Creates aFT_COLR_Paint
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)
.- Specified by:
sizeof
in classStruct<FT_COLR_Paint>
-
format
public int format()- Returns:
- the value of the
format
field.
-
u_colr_layers
- Returns:
- a
FT_PaintColrLayers
view of theu.colr_layers
field.
-
u_glyph
- Returns:
- a
FT_PaintGlyph
view of theu.glyph
field.
-
u_solid
- Returns:
- a
FT_PaintSolid
view of theu.solid
field.
-
u_linear_gradient
- Returns:
- a
FT_PaintLinearGradient
view of theu.linear_gradient
field.
-
u_radial_gradient
- Returns:
- a
FT_PaintRadialGradient
view of theu.radial_gradient
field.
-
u_sweep_gradient
- Returns:
- a
FT_PaintSweepGradient
view of theu.sweep_gradient
field.
-
u_transform
- Returns:
- a
FT_PaintTransform
view of theu.transform
field.
-
u_translate
- Returns:
- a
FT_PaintTranslate
view of theu.translate
field.
-
u_scale
- Returns:
- a
FT_PaintScale
view of theu.scale
field.
-
u_rotate
- Returns:
- a
FT_PaintRotate
view of theu.rotate
field.
-
u_skew
- Returns:
- a
FT_PaintSkew
view of theu.skew
field.
-
u_composite
- Returns:
- a
FT_PaintComposite
view of theu.composite
field.
-
u_colr_glyph
- Returns:
- a
FT_PaintColrGlyph
view of theu.colr_glyph
field.
-
malloc
Returns a newFT_COLR_Paint
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFT_COLR_Paint
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFT_COLR_Paint
instance allocated withBufferUtils
. -
create
Returns a newFT_COLR_Paint
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFT_COLR_Paint.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFT_COLR_Paint.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFT_COLR_Paint.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFT_COLR_Paint.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFT_COLR_Paint
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFT_COLR_Paint
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFT_COLR_Paint.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFT_COLR_Paint.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nformat
public static int nformat(long struct) Unsafe version offormat()
. -
nu_colr_layers
Unsafe version ofu_colr_layers()
. -
nu_glyph
Unsafe version ofu_glyph()
. -
nu_solid
Unsafe version ofu_solid()
. -
nu_linear_gradient
Unsafe version ofu_linear_gradient()
. -
nu_radial_gradient
Unsafe version ofu_radial_gradient()
. -
nu_sweep_gradient
Unsafe version ofu_sweep_gradient()
. -
nu_transform
Unsafe version ofu_transform()
. -
nu_translate
Unsafe version ofu_translate()
. -
nu_scale
Unsafe version ofu_scale()
. -
nu_rotate
Unsafe version ofu_rotate()
. -
nu_skew
Unsafe version ofu_skew()
. -
nu_composite
Unsafe version ofu_composite()
. -
nu_colr_glyph
Unsafe version ofu_colr_glyph()
.
-