Class FT_Raster_Params

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class FT_Raster_Params extends Struct<FT_Raster_Params> implements NativeResource

 struct FT_Raster_Params {
     {@link FT_Bitmap FT_Bitmap} const * target;
     void const * source;
     int flags;
     {@link FT_SpanFuncI FT_SpanFunc} gray_spans;
     {@link FT_SpanFuncI FT_SpanFunc} black_spans;
     FT_Raster_BitTest_Func bit_test;
     FT_Raster_BitTest_Func bit_set;
     void * user;
     {@link FT_BBox FT_BBox} clip_box;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • TARGET

      public static final int TARGET
      The struct member offsets.
    • SOURCE

      public static final int SOURCE
      The struct member offsets.
    • FLAGS

      public static final int FLAGS
      The struct member offsets.
    • GRAY_SPANS

      public static final int GRAY_SPANS
      The struct member offsets.
    • BLACK_SPANS

      public static final int BLACK_SPANS
      The struct member offsets.
    • BIT_TEST

      public static final int BIT_TEST
      The struct member offsets.
    • BIT_SET

      public static final int BIT_SET
      The struct member offsets.
    • USER

      public static final int USER
      The struct member offsets.
    • CLIP_BOX

      public static final int CLIP_BOX
      The struct member offsets.
  • Constructor Details

    • FT_Raster_Params

      public FT_Raster_Params(ByteBuffer container)
      Creates a FT_Raster_Params instance at the current position of the specified ByteBuffer 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
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<FT_Raster_Params>
    • target

      public @Nullable FT_Bitmap target()
      Returns:
      a FT_Bitmap view of the struct pointed to by the target field.
    • source

      public @Nullable ByteBuffer source(int capacity)
      Returns:
      a ByteBuffer view of the data pointed to by the source field.
    • flags

      public int flags()
      Returns:
      the value of the flags field.
    • gray_spans

      public @Nullable FT_SpanFunc gray_spans()
      Returns:
      the value of the gray_spans field.
    • user

      public long user()
      Returns:
      the value of the user field.
    • clip_box

      public FT_BBox clip_box()
      Returns:
      a FT_BBox view of the clip_box field.
    • target

      public FT_Raster_Params target(@Nullable FT_Bitmap value)
      Sets the address of the specified FT_Bitmap to the target field.
    • source

      public FT_Raster_Params source(@Nullable ByteBuffer value)
      Sets the address of the specified ByteBuffer to the source field.
    • flags

      public FT_Raster_Params flags(int value)
      Sets the specified value to the flags field.
    • gray_spans

      public FT_Raster_Params gray_spans(@Nullable FT_SpanFuncI value)
      Sets the specified value to the gray_spans field.
    • user

      public FT_Raster_Params user(long value)
      Sets the specified value to the user field.
    • clip_box

      public FT_Raster_Params clip_box(FT_BBox value)
      Copies the specified FT_BBox to the clip_box field.
    • clip_box

      public FT_Raster_Params clip_box(Consumer<FT_BBox> consumer)
      Passes the clip_box field to the specified Consumer.
    • set

      public FT_Raster_Params set(@Nullable FT_Bitmap target, @Nullable ByteBuffer source, int flags, @Nullable FT_SpanFuncI gray_spans, long user, FT_BBox clip_box)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static FT_Raster_Params malloc()
      Returns a new FT_Raster_Params instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static FT_Raster_Params calloc()
      Returns a new FT_Raster_Params instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static FT_Raster_Params create()
      Returns a new FT_Raster_Params instance allocated with BufferUtils.
    • create

      public static FT_Raster_Params create(long address)
      Returns a new FT_Raster_Params instance for the specified memory address.
    • createSafe

      public static @Nullable FT_Raster_Params createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static FT_Raster_Params.Buffer malloc(int capacity)
      Returns a new FT_Raster_Params.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static FT_Raster_Params.Buffer calloc(int capacity)
      Returns a new FT_Raster_Params.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static FT_Raster_Params.Buffer create(int capacity)
      Returns a new FT_Raster_Params.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static FT_Raster_Params.Buffer create(long address, int capacity)
      Create a FT_Raster_Params.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable FT_Raster_Params.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static FT_Raster_Params malloc(MemoryStack stack)
      Returns a new FT_Raster_Params instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static FT_Raster_Params calloc(MemoryStack stack)
      Returns a new FT_Raster_Params instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static FT_Raster_Params.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new FT_Raster_Params.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static FT_Raster_Params.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new FT_Raster_Params.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • ntarget

      public static @Nullable FT_Bitmap ntarget(long struct)
      Unsafe version of target().
    • nsource

      public static @Nullable ByteBuffer nsource(long struct, int capacity)
      Unsafe version of source.
    • nflags

      public static int nflags(long struct)
      Unsafe version of flags().
    • ngray_spans

      public static @Nullable FT_SpanFunc ngray_spans(long struct)
      Unsafe version of gray_spans().
    • nblack_spans

      public static @Nullable FT_SpanFunc nblack_spans(long struct)
    • nbit_test

      public static long nbit_test(long struct)
    • nbit_set

      public static long nbit_set(long struct)
    • nuser

      public static long nuser(long struct)
      Unsafe version of user().
    • nclip_box

      public static FT_BBox nclip_box(long struct)
      Unsafe version of clip_box().
    • ntarget

      public static void ntarget(long struct, @Nullable FT_Bitmap value)
      Unsafe version of target.
    • nsource

      public static void nsource(long struct, @Nullable ByteBuffer value)
      Unsafe version of source.
    • nflags

      public static void nflags(long struct, int value)
      Unsafe version of flags.
    • ngray_spans

      public static void ngray_spans(long struct, @Nullable FT_SpanFuncI value)
      Unsafe version of gray_spans.
    • nblack_spans

      public static void nblack_spans(long struct, @Nullable FT_SpanFuncI value)
    • nbit_test

      public static void nbit_test(long struct, long value)
    • nbit_set

      public static void nbit_set(long struct, long value)
    • nuser

      public static void nuser(long struct, long value)
      Unsafe version of user.
    • nclip_box

      public static void nclip_box(long struct, FT_BBox value)
      Unsafe version of clip_box.