Class PIXELFORMATDESCRIPTOR.Buffer

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

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

    • Buffer

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

    • nSize

      public short nSize()
      Returns:
      the value of the nSize field.
    • nVersion

      public short nVersion()
      Returns:
      the value of the nVersion field.
    • dwFlags

      public int dwFlags()
      Returns:
      the value of the dwFlags field.
    • iPixelType

      public byte iPixelType()
      Returns:
      the value of the iPixelType field.
    • cColorBits

      public byte cColorBits()
      Returns:
      the value of the cColorBits field.
    • cRedBits

      public byte cRedBits()
      Returns:
      the value of the cRedBits field.
    • cRedShift

      public byte cRedShift()
      Returns:
      the value of the cRedShift field.
    • cGreenBits

      public byte cGreenBits()
      Returns:
      the value of the cGreenBits field.
    • cGreenShift

      public byte cGreenShift()
      Returns:
      the value of the cGreenShift field.
    • cBlueBits

      public byte cBlueBits()
      Returns:
      the value of the cBlueBits field.
    • cBlueShift

      public byte cBlueShift()
      Returns:
      the value of the cBlueShift field.
    • cAlphaBits

      public byte cAlphaBits()
      Returns:
      the value of the cAlphaBits field.
    • cAlphaShift

      public byte cAlphaShift()
      Returns:
      the value of the cAlphaShift field.
    • cAccumBits

      public byte cAccumBits()
      Returns:
      the value of the cAccumBits field.
    • cAccumRedBits

      public byte cAccumRedBits()
      Returns:
      the value of the cAccumRedBits field.
    • cAccumGreenBits

      public byte cAccumGreenBits()
      Returns:
      the value of the cAccumGreenBits field.
    • cAccumBlueBits

      public byte cAccumBlueBits()
      Returns:
      the value of the cAccumBlueBits field.
    • cAccumAlphaBits

      public byte cAccumAlphaBits()
      Returns:
      the value of the cAccumAlphaBits field.
    • cDepthBits

      public byte cDepthBits()
      Returns:
      the value of the cDepthBits field.
    • cStencilBits

      public byte cStencilBits()
      Returns:
      the value of the cStencilBits field.
    • cAuxBuffers

      public byte cAuxBuffers()
      Returns:
      the value of the cAuxBuffers field.
    • iLayerType

      public byte iLayerType()
      Returns:
      the value of the iLayerType field.
    • bReserved

      public byte bReserved()
      Returns:
      the value of the bReserved field.
    • dwLayerMask

      public int dwLayerMask()
      Returns:
      the value of the dwLayerMask field.
    • dwVisibleMask

      public int dwVisibleMask()
      Returns:
      the value of the dwVisibleMask field.
    • dwDamageMask

      public int dwDamageMask()
      Returns:
      the value of the dwDamageMask field.
    • nSize

      public PIXELFORMATDESCRIPTOR.Buffer nSize(short value)
      Sets the specified value to the nSize field.
    • nVersion

      public PIXELFORMATDESCRIPTOR.Buffer nVersion(short value)
      Sets the specified value to the nVersion field.
    • dwFlags

      public PIXELFORMATDESCRIPTOR.Buffer dwFlags(int value)
      Sets the specified value to the dwFlags field.
    • iPixelType

      public PIXELFORMATDESCRIPTOR.Buffer iPixelType(byte value)
      Sets the specified value to the iPixelType field.
    • cColorBits

      public PIXELFORMATDESCRIPTOR.Buffer cColorBits(byte value)
      Sets the specified value to the cColorBits field.
    • cRedBits

      public PIXELFORMATDESCRIPTOR.Buffer cRedBits(byte value)
      Sets the specified value to the cRedBits field.
    • cRedShift

      public PIXELFORMATDESCRIPTOR.Buffer cRedShift(byte value)
      Sets the specified value to the cRedShift field.
    • cGreenBits

      public PIXELFORMATDESCRIPTOR.Buffer cGreenBits(byte value)
      Sets the specified value to the cGreenBits field.
    • cGreenShift

      public PIXELFORMATDESCRIPTOR.Buffer cGreenShift(byte value)
      Sets the specified value to the cGreenShift field.
    • cBlueBits

      public PIXELFORMATDESCRIPTOR.Buffer cBlueBits(byte value)
      Sets the specified value to the cBlueBits field.
    • cBlueShift

      public PIXELFORMATDESCRIPTOR.Buffer cBlueShift(byte value)
      Sets the specified value to the cBlueShift field.
    • cAlphaBits

      public PIXELFORMATDESCRIPTOR.Buffer cAlphaBits(byte value)
      Sets the specified value to the cAlphaBits field.
    • cAlphaShift

      public PIXELFORMATDESCRIPTOR.Buffer cAlphaShift(byte value)
      Sets the specified value to the cAlphaShift field.
    • cAccumBits

      public PIXELFORMATDESCRIPTOR.Buffer cAccumBits(byte value)
      Sets the specified value to the cAccumBits field.
    • cAccumRedBits

      public PIXELFORMATDESCRIPTOR.Buffer cAccumRedBits(byte value)
      Sets the specified value to the cAccumRedBits field.
    • cAccumGreenBits

      public PIXELFORMATDESCRIPTOR.Buffer cAccumGreenBits(byte value)
      Sets the specified value to the cAccumGreenBits field.
    • cAccumBlueBits

      public PIXELFORMATDESCRIPTOR.Buffer cAccumBlueBits(byte value)
      Sets the specified value to the cAccumBlueBits field.
    • cAccumAlphaBits

      public PIXELFORMATDESCRIPTOR.Buffer cAccumAlphaBits(byte value)
      Sets the specified value to the cAccumAlphaBits field.
    • cDepthBits

      public PIXELFORMATDESCRIPTOR.Buffer cDepthBits(byte value)
      Sets the specified value to the cDepthBits field.
    • cStencilBits

      public PIXELFORMATDESCRIPTOR.Buffer cStencilBits(byte value)
      Sets the specified value to the cStencilBits field.
    • cAuxBuffers

      public PIXELFORMATDESCRIPTOR.Buffer cAuxBuffers(byte value)
      Sets the specified value to the cAuxBuffers field.
    • iLayerType

      public PIXELFORMATDESCRIPTOR.Buffer iLayerType(byte value)
      Sets the specified value to the iLayerType field.
    • bReserved

      public PIXELFORMATDESCRIPTOR.Buffer bReserved(byte value)
      Sets the specified value to the bReserved field.
    • dwLayerMask

      public PIXELFORMATDESCRIPTOR.Buffer dwLayerMask(int value)
      Sets the specified value to the dwLayerMask field.
    • dwVisibleMask

      public PIXELFORMATDESCRIPTOR.Buffer dwVisibleMask(int value)
      Sets the specified value to the dwVisibleMask field.
    • dwDamageMask

      public PIXELFORMATDESCRIPTOR.Buffer dwDamageMask(int value)
      Sets the specified value to the dwDamageMask field.