Package org.lwjgl.sdl

Class SDL_HapticRamp.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new SDL_HapticRamp.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_HapticRamp.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.
    • start

      public short start()
      Returns:
      the value of the start field.
    • end

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

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

      public SDL_HapticRamp.Buffer direction(Consumer<SDL_HapticDirection> consumer)
      Passes the direction field to the specified Consumer.
    • length

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

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

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

      public SDL_HapticRamp.Buffer interval(short value)
      Sets the specified value to the interval field.
    • start

      public SDL_HapticRamp.Buffer start(short value)
      Sets the specified value to the start field.
    • end

      public SDL_HapticRamp.Buffer end(short value)
      Sets the specified value to the end field.
    • attack_length

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

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

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

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