Class hb_color_line_t

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class hb_color_line_t extends Struct<hb_color_line_t> implements NativeResource

 struct hb_color_line_t {
     void * data;
     {@link hb_color_line_get_color_stops_func_tI hb_color_line_get_color_stops_func_t} get_color_stops;
     void * get_color_stops_user_data;
     {@link hb_color_line_get_extend_func_tI hb_color_line_get_extend_func_t} get_extend;
     void * get_extend_user_data;
     void * reserved0;
     void * reserved1;
     void * reserved2;
     void * reserved3;
     void * reserved4;
     void * reserved5;
     void * reserved6;
     void * reserved7;
     void * reserved8;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int DATA
      The struct member offsets.
    • GET_COLOR_STOPS

      public static final int GET_COLOR_STOPS
      The struct member offsets.
    • GET_COLOR_STOPS_USER_DATA

      public static final int GET_COLOR_STOPS_USER_DATA
      The struct member offsets.
    • GET_EXTEND

      public static final int GET_EXTEND
      The struct member offsets.
    • GET_EXTEND_USER_DATA

      public static final int GET_EXTEND_USER_DATA
      The struct member offsets.
    • RESERVED0

      public static final int RESERVED0
      The struct member offsets.
    • RESERVED1

      public static final int RESERVED1
      The struct member offsets.
    • RESERVED2

      public static final int RESERVED2
      The struct member offsets.
    • RESERVED3

      public static final int RESERVED3
      The struct member offsets.
    • RESERVED4

      public static final int RESERVED4
      The struct member offsets.
    • RESERVED5

      public static final int RESERVED5
      The struct member offsets.
    • RESERVED6

      public static final int RESERVED6
      The struct member offsets.
    • RESERVED7

      public static final int RESERVED7
      The struct member offsets.
    • RESERVED8

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

    • hb_color_line_t

      public hb_color_line_t(ByteBuffer container)
      Creates a hb_color_line_t 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<hb_color_line_t>
    • data

      public long data()
      Returns:
      the value of the data field.
    • get_color_stops

      public hb_color_line_get_color_stops_func_t get_color_stops()
      Returns:
      the value of the get_color_stops field.
    • get_color_stops_user_data

      public long get_color_stops_user_data()
      Returns:
      the value of the get_color_stops_user_data field.
    • get_extend

      public hb_color_line_get_extend_func_t get_extend()
      Returns:
      the value of the get_extend field.
    • get_extend_user_data

      public long get_extend_user_data()
      Returns:
      the value of the get_extend_user_data field.
    • data

      public hb_color_line_t data(long value)
      Sets the specified value to the data field.
    • get_color_stops

      Sets the specified value to the get_color_stops field.
    • get_color_stops_user_data

      public hb_color_line_t get_color_stops_user_data(long value)
      Sets the specified value to the get_color_stops_user_data field.
    • get_extend

      Sets the specified value to the get_extend field.
    • get_extend_user_data

      public hb_color_line_t get_extend_user_data(long value)
      Sets the specified value to the get_extend_user_data field.
    • set

      public hb_color_line_t set(long data, hb_color_line_get_color_stops_func_tI get_color_stops, long get_color_stops_user_data, hb_color_line_get_extend_func_tI get_extend, long get_extend_user_data)
      Initializes this struct with the specified values.
    • set

      public hb_color_line_t set(hb_color_line_t src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static hb_color_line_t.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new hb_color_line_t.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
    • ndata

      public static long ndata(long struct)
      Unsafe version of data().
    • nget_color_stops

      public static hb_color_line_get_color_stops_func_t nget_color_stops(long struct)
      Unsafe version of get_color_stops().
    • nget_color_stops_user_data

      public static long nget_color_stops_user_data(long struct)
      Unsafe version of get_color_stops_user_data().
    • nget_extend

      public static hb_color_line_get_extend_func_t nget_extend(long struct)
      Unsafe version of get_extend().
    • nget_extend_user_data

      public static long nget_extend_user_data(long struct)
      Unsafe version of get_extend_user_data().
    • nreserved0

      public static long nreserved0(long struct)
    • nreserved1

      public static long nreserved1(long struct)
    • nreserved2

      public static long nreserved2(long struct)
    • nreserved3

      public static long nreserved3(long struct)
    • nreserved4

      public static long nreserved4(long struct)
    • nreserved5

      public static long nreserved5(long struct)
    • nreserved6

      public static long nreserved6(long struct)
    • nreserved7

      public static long nreserved7(long struct)
    • nreserved8

      public static long nreserved8(long struct)
    • ndata

      public static void ndata(long struct, long value)
      Unsafe version of data.
    • nget_color_stops

      public static void nget_color_stops(long struct, hb_color_line_get_color_stops_func_tI value)
      Unsafe version of get_color_stops.
    • nget_color_stops_user_data

      public static void nget_color_stops_user_data(long struct, long value)
      Unsafe version of get_color_stops_user_data.
    • nget_extend

      public static void nget_extend(long struct, hb_color_line_get_extend_func_tI value)
      Unsafe version of get_extend.
    • nget_extend_user_data

      public static void nget_extend_user_data(long struct, long value)
      Unsafe version of get_extend_user_data.
    • nreserved0

      public static void nreserved0(long struct, long value)
    • nreserved1

      public static void nreserved1(long struct, long value)
    • nreserved2

      public static void nreserved2(long struct, long value)
    • nreserved3

      public static void nreserved3(long struct, long value)
    • nreserved4

      public static void nreserved4(long struct, long value)
    • nreserved5

      public static void nreserved5(long struct, long value)
    • nreserved6

      public static void nreserved6(long struct, long value)
    • nreserved7

      public static void nreserved7(long struct, long value)
    • nreserved8

      public static void nreserved8(long struct, long value)
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate