Package org.lwjgl.sdl

Class SDL_HapticDirection.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new SDL_HapticDirection.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 SDL_HapticDirection.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

    • type

      public byte type()
      Returns:
      the value of the type field.
    • dir

      public IntBuffer dir()
      Returns:
      a IntBuffer view of the dir field.
    • dir

      public int dir(int index)
      Returns:
      the value at the specified index of the dir field.
    • type

      public SDL_HapticDirection.Buffer type(byte value)
      Sets the specified value to the type field.
    • dir

      Copies the specified IntBuffer to the dir field.
    • dir

      public SDL_HapticDirection.Buffer dir(int index, int value)
      Sets the specified value at the specified index of the dir field.