Class hb_draw_state_t

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class hb_draw_state_t extends Struct<hb_draw_state_t> implements NativeResource

 struct hb_draw_state_t {
     hb_bool_t path_open;
     float path_start_x;
     float path_start_y;
     float current_x;
     float current_y;
     {@link hb_var_num_t hb_var_num_t} reserved1;
     {@link hb_var_num_t hb_var_num_t} reserved2;
     {@link hb_var_num_t hb_var_num_t} reserved3;
     {@link hb_var_num_t hb_var_num_t} reserved4;
     {@link hb_var_num_t hb_var_num_t} reserved5;
     {@link hb_var_num_t hb_var_num_t} reserved6;
     {@link hb_var_num_t hb_var_num_t} reserved7;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int PATH_OPEN
      The struct member offsets.
    • PATH_START_X

      public static final int PATH_START_X
      The struct member offsets.
    • PATH_START_Y

      public static final int PATH_START_Y
      The struct member offsets.
    • CURRENT_X

      public static final int CURRENT_X
      The struct member offsets.
    • CURRENT_Y

      public static final int CURRENT_Y
      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.
  • Constructor Details

    • hb_draw_state_t

      public hb_draw_state_t(ByteBuffer container)
      Creates a hb_draw_state_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_draw_state_t>
    • path_open

      public boolean path_open()
      Returns:
      the value of the path_open field.
    • path_start_x

      public float path_start_x()
      Returns:
      the value of the path_start_x field.
    • path_start_y

      public float path_start_y()
      Returns:
      the value of the path_start_y field.
    • current_x

      public float current_x()
      Returns:
      the value of the current_x field.
    • current_y

      public float current_y()
      Returns:
      the value of the current_y field.
    • path_open

      public hb_draw_state_t path_open(boolean value)
      Sets the specified value to the path_open field.
    • path_start_x

      public hb_draw_state_t path_start_x(float value)
      Sets the specified value to the path_start_x field.
    • path_start_y

      public hb_draw_state_t path_start_y(float value)
      Sets the specified value to the path_start_y field.
    • current_x

      public hb_draw_state_t current_x(float value)
      Sets the specified value to the current_x field.
    • current_y

      public hb_draw_state_t current_y(float value)
      Sets the specified value to the current_y field.
    • set

      public hb_draw_state_t set(boolean path_open, float path_start_x, float path_start_y, float current_x, float current_y)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

      public static hb_draw_state_t calloc(MemoryStack stack)
      Returns a new hb_draw_state_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_draw_state_t.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new hb_draw_state_t.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

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

      public static int npath_open(long struct)
      Unsafe version of path_open().
    • npath_start_x

      public static float npath_start_x(long struct)
      Unsafe version of path_start_x().
    • npath_start_y

      public static float npath_start_y(long struct)
      Unsafe version of path_start_y().
    • ncurrent_x

      public static float ncurrent_x(long struct)
      Unsafe version of current_x().
    • ncurrent_y

      public static float ncurrent_y(long struct)
      Unsafe version of current_y().
    • nreserved1

      public static hb_var_num_t nreserved1(long struct)
    • nreserved2

      public static hb_var_num_t nreserved2(long struct)
    • nreserved3

      public static hb_var_num_t nreserved3(long struct)
    • nreserved4

      public static hb_var_num_t nreserved4(long struct)
    • nreserved5

      public static hb_var_num_t nreserved5(long struct)
    • nreserved6

      public static hb_var_num_t nreserved6(long struct)
    • nreserved7

      public static hb_var_num_t nreserved7(long struct)
    • npath_open

      public static void npath_open(long struct, int value)
      Unsafe version of path_open.
    • npath_start_x

      public static void npath_start_x(long struct, float value)
      Unsafe version of path_start_x.
    • npath_start_y

      public static void npath_start_y(long struct, float value)
      Unsafe version of path_start_y.
    • ncurrent_x

      public static void ncurrent_x(long struct, float value)
      Unsafe version of current_x.
    • ncurrent_y

      public static void ncurrent_y(long struct, float value)
      Unsafe version of current_y.
    • nreserved1

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

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

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

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

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

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

      public static void nreserved7(long struct, hb_var_num_t value)