Class SDL_PinchFingerEvent.Buffer

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

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

    • Buffer

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

      @NativeType("SDL_EventType") public int type()
      Returns:
      the value of the type field.
    • timestamp

      @NativeType("Uint64") public long timestamp()
      Returns:
      the value of the timestamp field.
    • scale

      public float scale()
      Returns:
      the value of the scale field.
    • windowID

      @NativeType("SDL_WindowID") public int windowID()
      Returns:
      the value of the windowID field.
    • type

      public SDL_PinchFingerEvent.Buffer type(@NativeType("SDL_EventType") int value)
      Sets the specified value to the type field.
    • timestamp

      public SDL_PinchFingerEvent.Buffer timestamp(@NativeType("Uint64") long value)
      Sets the specified value to the timestamp field.
    • scale

      public SDL_PinchFingerEvent.Buffer scale(float value)
      Sets the specified value to the scale field.
    • windowID

      public SDL_PinchFingerEvent.Buffer windowID(@NativeType("SDL_WindowID") int value)
      Sets the specified value to the windowID field.