Package org.lwjgl.sdl

Class SDL_MessageBoxButtonData.Buffer

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

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

    • Buffer

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

    • flags

      public int flags()
      Returns:
      the value of the flags field.
    • buttonID

      public int buttonID()
      Returns:
      the value of the buttonID field.
    • text

      public ByteBuffer text()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the text field.
    • textString

      public String textString()
      Returns:
      the null-terminated string pointed to by the text field.
    • flags

      public SDL_MessageBoxButtonData.Buffer flags(int value)
      Sets the specified value to the flags field.
    • buttonID

      public SDL_MessageBoxButtonData.Buffer buttonID(int value)
      Sets the specified value to the buttonID field.
    • text

      Sets the address of the specified encoded string to the text field.