Package org.lwjgl.sdl

Class SDL_MessageBoxColor.Buffer

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

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

    • Buffer

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

    • r

      public byte r()
      Returns:
      the value of the r field.
    • g

      public byte g()
      Returns:
      the value of the g field.
    • b

      public byte b()
      Returns:
      the value of the b field.
    • r

      public SDL_MessageBoxColor.Buffer r(byte value)
      Sets the specified value to the r field.
    • g

      public SDL_MessageBoxColor.Buffer g(byte value)
      Sets the specified value to the g field.
    • b

      public SDL_MessageBoxColor.Buffer b(byte value)
      Sets the specified value to the b field.