Package org.lwjgl.sdl

Class SDL_DisplayMode.Buffer

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

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

    • Buffer

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

    • displayID

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

      public int format()
      Returns:
      the value of the format field.
    • w

      public int w()
      Returns:
      the value of the w field.
    • h

      public int h()
      Returns:
      the value of the h field.
    • pixel_density

      public float pixel_density()
      Returns:
      the value of the pixel_density field.
    • refresh_rate

      public float refresh_rate()
      Returns:
      the value of the refresh_rate field.
    • refresh_rate_numerator

      public int refresh_rate_numerator()
      Returns:
      the value of the refresh_rate_numerator field.
    • refresh_rate_denominator

      public int refresh_rate_denominator()
      Returns:
      the value of the refresh_rate_denominator field.
    • internal

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

      public SDL_DisplayMode.Buffer displayID(int value)
      Sets the specified value to the displayID field.
    • format

      public SDL_DisplayMode.Buffer format(int value)
      Sets the specified value to the format field.
    • w

      public SDL_DisplayMode.Buffer w(int value)
      Sets the specified value to the w field.
    • h

      public SDL_DisplayMode.Buffer h(int value)
      Sets the specified value to the h field.
    • pixel_density

      public SDL_DisplayMode.Buffer pixel_density(float value)
      Sets the specified value to the pixel_density field.
    • refresh_rate

      public SDL_DisplayMode.Buffer refresh_rate(float value)
      Sets the specified value to the refresh_rate field.
    • refresh_rate_numerator

      public SDL_DisplayMode.Buffer refresh_rate_numerator(int value)
      Sets the specified value to the refresh_rate_numerator field.
    • refresh_rate_denominator

      public SDL_DisplayMode.Buffer refresh_rate_denominator(int value)
      Sets the specified value to the refresh_rate_denominator field.
    • internal

      public SDL_DisplayMode.Buffer internal(long value)
      Sets the specified value to the internal field.