Package org.lwjgl.sdl

Class SDL_HapticCustom.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new SDL_HapticCustom.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_HapticCustom.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 short type()
      Returns:
      the value of the type field.
    • direction

      public SDL_HapticDirection direction()
      Returns:
      a SDL_HapticDirection view of the direction field.
    • length

      public int length()
      Returns:
      the value of the length field.
    • delay

      public short delay()
      Returns:
      the value of the delay field.
    • button

      public short button()
      Returns:
      the value of the button field.
    • interval

      public short interval()
      Returns:
      the value of the interval field.
    • channels

      public byte channels()
      Returns:
      the value of the channels field.
    • period

      public short period()
      Returns:
      the value of the period field.
    • samples

      public short samples()
      Returns:
      the value of the samples field.
    • data

      public ShortBuffer data()
      Returns:
      a ShortBuffer view of the data pointed to by the data field.
    • attack_length

      public short attack_length()
      Returns:
      the value of the attack_length field.
    • attack_level

      public short attack_level()
      Returns:
      the value of the attack_level field.
    • fade_length

      public short fade_length()
      Returns:
      the value of the fade_length field.
    • fade_level

      public short fade_level()
      Returns:
      the value of the fade_level field.
    • type

      public SDL_HapticCustom.Buffer type(short value)
      Sets the specified value to the type field.
    • direction

      public SDL_HapticCustom.Buffer direction(SDL_HapticDirection value)
      Copies the specified SDL_HapticDirection to the direction field.
    • direction

      Passes the direction field to the specified Consumer.
    • length

      public SDL_HapticCustom.Buffer length(int value)
      Sets the specified value to the length field.
    • delay

      public SDL_HapticCustom.Buffer delay(short value)
      Sets the specified value to the delay field.
    • button

      public SDL_HapticCustom.Buffer button(short value)
      Sets the specified value to the button field.
    • interval

      public SDL_HapticCustom.Buffer interval(short value)
      Sets the specified value to the interval field.
    • channels

      public SDL_HapticCustom.Buffer channels(byte value)
      Sets the specified value to the channels field.
    • period

      public SDL_HapticCustom.Buffer period(short value)
      Sets the specified value to the period field.
    • samples

      public SDL_HapticCustom.Buffer samples(short value)
      Sets the specified value to the samples field.
    • data

      public SDL_HapticCustom.Buffer data(ShortBuffer value)
      Sets the address of the specified ShortBuffer to the data field.
    • attack_length

      public SDL_HapticCustom.Buffer attack_length(short value)
      Sets the specified value to the attack_length field.
    • attack_level

      public SDL_HapticCustom.Buffer attack_level(short value)
      Sets the specified value to the attack_level field.
    • fade_length

      public SDL_HapticCustom.Buffer fade_length(short value)
      Sets the specified value to the fade_length field.
    • fade_level

      public SDL_HapticCustom.Buffer fade_level(short value)
      Sets the specified value to the fade_level field.