Package org.lwjgl.sdl

Class SDL_DisplayEvent.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new SDL_DisplayEvent.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_DisplayEvent.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 int type()
      Returns:
      the value of the type field.
    • timestamp

      public long timestamp()
      Returns:
      the value of the timestamp field.
    • displayID

      public int displayID()
      Returns:
      the value of the displayID field.
    • data1

      public int data1()
      Returns:
      the value of the data1 field.
    • data2

      public int data2()
      Returns:
      the value of the data2 field.
    • type

      public SDL_DisplayEvent.Buffer type(int value)
      Sets the specified value to the type field.
    • timestamp

      public SDL_DisplayEvent.Buffer timestamp(long value)
      Sets the specified value to the timestamp field.
    • displayID

      public SDL_DisplayEvent.Buffer displayID(int value)
      Sets the specified value to the displayID field.
    • data1

      public SDL_DisplayEvent.Buffer data1(int value)
      Sets the specified value to the data1 field.
    • data2

      public SDL_DisplayEvent.Buffer data2(int value)
      Sets the specified value to the data2 field.