Package org.lwjgl.sdl

Class SDL_Finger.Buffer

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

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

    • Buffer

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

    • id

      public long id()
      Returns:
      the value of the id field.
    • x

      public float x()
      Returns:
      the value of the x field.
    • y

      public float y()
      Returns:
      the value of the y field.
    • pressure

      public float pressure()
      Returns:
      the value of the pressure field.
    • id

      public SDL_Finger.Buffer id(long value)
      Sets the specified value to the id field.
    • x

      public SDL_Finger.Buffer x(float value)
      Sets the specified value to the x field.
    • y

      public SDL_Finger.Buffer y(float value)
      Sets the specified value to the y field.
    • pressure

      public SDL_Finger.Buffer pressure(float value)
      Sets the specified value to the pressure field.