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 Link icon

    • Buffer Link icon

      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 Link icon

      public Buffer(long address, int cap)
  • Method Details Link icon

    • displayID Link icon

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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