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.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 size 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 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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.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_COLR_Paint(ByteBuffer container) Creates aFT_COLR_Paintinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_COLR_Paintcalloc()Returns a newFT_COLR_Paintinstance allocated withmemCalloc.static FT_COLR_Paint.Buffercalloc(int capacity) Returns a newFT_COLR_Paint.Bufferinstance allocated withmemCalloc.static FT_COLR_Paint.Buffercalloc(int capacity, MemoryStack stack) Returns a newFT_COLR_Paint.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FT_COLR_Paintcalloc(MemoryStack stack) Returns a newFT_COLR_Paintinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FT_COLR_Paintcreate()Returns a newFT_COLR_Paintinstance allocated withBufferUtils.static FT_COLR_Paint.Buffercreate(int capacity) Returns a newFT_COLR_Paint.Bufferinstance allocated withBufferUtils.static FT_COLR_Paintcreate(long address) Returns a newFT_COLR_Paintinstance for the specified memory address.static FT_COLR_Paint.Buffercreate(long address, int capacity) Create aFT_COLR_Paint.Bufferinstance at the specified memory.static @Nullable FT_COLR_PaintcreateSafe(long address) static @Nullable FT_COLR_Paint.BuffercreateSafe(long address, int capacity) intformat()static FT_COLR_Paintmalloc()Returns a newFT_COLR_Paintinstance allocated withmemAlloc.static FT_COLR_Paint.Buffermalloc(int capacity) Returns a newFT_COLR_Paint.Bufferinstance allocated withmemAlloc.static FT_COLR_Paint.Buffermalloc(int capacity, MemoryStack stack) Returns a newFT_COLR_Paint.Bufferinstance allocated on the specifiedMemoryStack.static FT_COLR_Paintmalloc(MemoryStack stack) Returns a newFT_COLR_Paintinstance allocated on the specifiedMemoryStack.static intnformat(long struct) Unsafe version offormat().static FT_PaintColrGlyphnu_colr_glyph(long struct) Unsafe version ofu_colr_glyph().static FT_PaintColrLayersnu_colr_layers(long struct) Unsafe version ofu_colr_layers().static FT_PaintCompositenu_composite(long struct) Unsafe version ofu_composite().static FT_PaintGlyphnu_glyph(long struct) Unsafe version ofu_glyph().static FT_PaintLinearGradientnu_linear_gradient(long struct) Unsafe version ofu_linear_gradient().static FT_PaintRadialGradientnu_radial_gradient(long struct) Unsafe version ofu_radial_gradient().static FT_PaintRotatenu_rotate(long struct) Unsafe version ofu_rotate().static FT_PaintScalenu_scale(long struct) Unsafe version ofu_scale().static FT_PaintSkewnu_skew(long struct) Unsafe version ofu_skew().static FT_PaintSolidnu_solid(long struct) Unsafe version ofu_solid().static FT_PaintSweepGradientnu_sweep_gradient(long struct) Unsafe version ofu_sweep_gradient().static FT_PaintTransformnu_transform(long struct) Unsafe version ofu_transform().static FT_PaintTranslatenu_translate(long struct) Unsafe version ofu_translate().intsizeof()Returnssizeof(struct).u_glyph()u_rotate()u_scale()u_skew()u_solid()Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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_Paintinstance 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_COLR_Paint>
-
format
public int format()- Returns:
- the value of the
formatfield.
-
u_colr_layers
- Returns:
- a
FT_PaintColrLayersview of theu.colr_layersfield.
-
u_glyph
- Returns:
- a
FT_PaintGlyphview of theu.glyphfield.
-
u_solid
- Returns:
- a
FT_PaintSolidview of theu.solidfield.
-
u_linear_gradient
- Returns:
- a
FT_PaintLinearGradientview of theu.linear_gradientfield.
-
u_radial_gradient
- Returns:
- a
FT_PaintRadialGradientview of theu.radial_gradientfield.
-
u_sweep_gradient
- Returns:
- a
FT_PaintSweepGradientview of theu.sweep_gradientfield.
-
u_transform
- Returns:
- a
FT_PaintTransformview of theu.transformfield.
-
u_translate
- Returns:
- a
FT_PaintTranslateview of theu.translatefield.
-
u_scale
- Returns:
- a
FT_PaintScaleview of theu.scalefield.
-
u_rotate
- Returns:
- a
FT_PaintRotateview of theu.rotatefield.
-
u_skew
- Returns:
- a
FT_PaintSkewview of theu.skewfield.
-
u_composite
- Returns:
- a
FT_PaintCompositeview of theu.compositefield.
-
u_colr_glyph
- Returns:
- a
FT_PaintColrGlyphview of theu.colr_glyphfield.
-
malloc
Returns a newFT_COLR_Paintinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFT_COLR_Paintinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFT_COLR_Paintinstance allocated withBufferUtils. -
create
Returns a newFT_COLR_Paintinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFT_COLR_Paint.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFT_COLR_Paint.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFT_COLR_Paint.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFT_COLR_Paint.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFT_COLR_Paintinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFT_COLR_Paintinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFT_COLR_Paint.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFT_COLR_Paint.Bufferinstance allocated on the specifiedMemoryStackand 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().
-