Package org.lwjgl.sdl

Class SDL_HapticPeriodic.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new SDL_HapticPeriodic.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_HapticPeriodic.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.
    • period

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

      public short magnitude()
      Returns:
      the value of the magnitude field.
    • offset

      public short offset()
      Returns:
      the value of the offset field.
    • phase

      public short phase()
      Returns:
      the value of the phase 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_HapticPeriodic.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_HapticPeriodic.Buffer length(int value)
      Sets the specified value to the length field.
    • delay

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

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

      public SDL_HapticPeriodic.Buffer interval(short value)
      Sets the specified value to the interval field.
    • period

      public SDL_HapticPeriodic.Buffer period(short value)
      Sets the specified value to the period field.
    • magnitude

      public SDL_HapticPeriodic.Buffer magnitude(short value)
      Sets the specified value to the magnitude field.
    • offset

      public SDL_HapticPeriodic.Buffer offset(short value)
      Sets the specified value to the offset field.
    • phase

      public SDL_HapticPeriodic.Buffer phase(short value)
      Sets the specified value to the phase field.
    • attack_length

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

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

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

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