Package org.lwjgl.sdl

Class SDL_HapticConstant.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new SDL_HapticConstant.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_HapticConstant.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.
    • level

      public short level()
      Returns:
      the value of the level 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_HapticConstant.Buffer type(short value)
      Sets the specified value to the type field.
    • direction

      Copies the specified SDL_HapticDirection to the direction field.
    • direction

      Passes the direction field to the specified Consumer.
    • length

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

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

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

      public SDL_HapticConstant.Buffer interval(short value)
      Sets the specified value to the interval field.
    • level

      public SDL_HapticConstant.Buffer level(short value)
      Sets the specified value to the level field.
    • attack_length

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

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

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

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