Class NkDrawList.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<NkDrawList>, NativeResource, Pointer
Enclosing class:
NkDrawList

public static class NkDrawList.Buffer extends StructBuffer<NkDrawList, NkDrawList.Buffer> implements NativeResource
An array of NkDrawList structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new NkDrawList.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by NkDrawList.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • clip_rect

      @NativeType("struct nk_rect") public NkRect clip_rect()
      Returns:
      a NkRect view of the clip_rect field.
    • circle_vtx

      @NativeType("struct nk_vec2[12]") public NkVec2.Buffer circle_vtx()
      Returns:
      a NkVec2.Buffer view of the circle_vtx field.
    • circle_vtx

      @NativeType("struct nk_vec2") public NkVec2 circle_vtx(int index)
      Returns:
      a NkVec2 view of the struct at the specified index of the circle_vtx field.
    • config

      @NativeType("struct nk_convert_config") public NkConvertConfig config()
      Returns:
      a NkConvertConfig view of the config field.
    • buffer

      @NativeType("struct nk_buffer *") public @Nullable NkBuffer buffer()
      Returns:
      a NkBuffer view of the struct pointed to by the buffer field.
    • vertices

      @NativeType("struct nk_buffer *") public @Nullable NkBuffer vertices()
      Returns:
      a NkBuffer view of the struct pointed to by the vertices field.
    • elements

      @NativeType("struct nk_buffer *") public @Nullable NkBuffer elements()
      Returns:
      a NkBuffer view of the struct pointed to by the elements field.
    • element_count

      @NativeType("unsigned int") public int element_count()
      Returns:
      the value of the element_count field.
    • vertex_count

      @NativeType("unsigned int") public int vertex_count()
      Returns:
      the value of the vertex_count field.
    • cmd_count

      @NativeType("unsigned int") public int cmd_count()
      Returns:
      the value of the cmd_count field.
    • cmd_offset

      @NativeType("nk_size") public long cmd_offset()
      Returns:
      the value of the cmd_offset field.
    • path_count

      @NativeType("unsigned int") public int path_count()
      Returns:
      the value of the path_count field.
    • path_offset

      @NativeType("unsigned int") public int path_offset()
      Returns:
      the value of the path_offset field.
    • line_AA

      @NativeType("enum nk_anti_aliasing") public int line_AA()
      Returns:
      the value of the line_AA field.
    • shape_AA

      @NativeType("enum nk_anti_aliasing") public int shape_AA()
      Returns:
      the value of the shape_AA field.
    • userdata

      @NativeType("nk_handle") public NkHandle userdata()
      Returns:
      a NkHandle view of the userdata field.