Class DEVMODE.Buffer

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

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

    • Buffer

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

    • dmDeviceName

      @NativeType("TCHAR[32]") public ByteBuffer dmDeviceName()
      Returns:
      a ByteBuffer view of the dmDeviceName field.
    • dmDeviceNameString

      @NativeType("TCHAR[32]") public String dmDeviceNameString()
      Returns:
      the null-terminated string stored in the dmDeviceName field.
    • dmSpecVersion

      @NativeType("WORD") public short dmSpecVersion()
      Returns:
      the value of the dmSpecVersion field.
    • dmDriverVersion

      @NativeType("WORD") public short dmDriverVersion()
      Returns:
      the value of the dmDriverVersion field.
    • dmSize

      @NativeType("WORD") public short dmSize()
      Returns:
      the value of the dmSize field.
    • dmDriverExtra

      @NativeType("WORD") public short dmDriverExtra()
      Returns:
      the value of the dmDriverExtra field.
    • dmFields

      @NativeType("DWORD") public int dmFields()
      Returns:
      the value of the dmFields field.
    • dmOrientation

      public short dmOrientation()
      Returns:
      the value of the dmOrientation field.
    • dmPaperSize

      public short dmPaperSize()
      Returns:
      the value of the dmPaperSize field.
    • dmPaperLength

      public short dmPaperLength()
      Returns:
      the value of the dmPaperLength field.
    • dmPaperWidth

      public short dmPaperWidth()
      Returns:
      the value of the dmPaperWidth field.
    • dmScale

      public short dmScale()
      Returns:
      the value of the dmScale field.
    • dmCopies

      public short dmCopies()
      Returns:
      the value of the dmCopies field.
    • dmDefaultSource

      public short dmDefaultSource()
      Returns:
      the value of the dmDefaultSource field.
    • dmPrintQuality

      public short dmPrintQuality()
      Returns:
      the value of the dmPrintQuality field.
    • dmPosition

      public POINTL dmPosition()
      Returns:
      a POINTL view of the dmPosition field.
    • dmDisplayOrientation

      @NativeType("DWORD") public int dmDisplayOrientation()
      Returns:
      the value of the dmDisplayOrientation field.
    • dmDisplayFixedOutput

      @NativeType("DWORD") public int dmDisplayFixedOutput()
      Returns:
      the value of the dmDisplayFixedOutput field.
    • dmColor

      public short dmColor()
      Returns:
      the value of the dmColor field.
    • dmDuplex

      public short dmDuplex()
      Returns:
      the value of the dmDuplex field.
    • dmYResolution

      public short dmYResolution()
      Returns:
      the value of the dmYResolution field.
    • dmTTOption

      public short dmTTOption()
      Returns:
      the value of the dmTTOption field.
    • dmCollate

      public short dmCollate()
      Returns:
      the value of the dmCollate field.
    • dmFormName

      @NativeType("TCHAR[32]") public ByteBuffer dmFormName()
      Returns:
      a ByteBuffer view of the dmFormName field.
    • dmFormNameString

      @NativeType("TCHAR[32]") public String dmFormNameString()
      Returns:
      the null-terminated string stored in the dmFormName field.
    • dmLogPixels

      @NativeType("WORD") public short dmLogPixels()
      Returns:
      the value of the dmLogPixels field.
    • dmBitsPerPel

      @NativeType("DWORD") public int dmBitsPerPel()
      Returns:
      the value of the dmBitsPerPel field.
    • dmPelsWidth

      @NativeType("DWORD") public int dmPelsWidth()
      Returns:
      the value of the dmPelsWidth field.
    • dmPelsHeight

      @NativeType("DWORD") public int dmPelsHeight()
      Returns:
      the value of the dmPelsHeight field.
    • dmDisplayFlags

      @NativeType("DWORD") public int dmDisplayFlags()
      Returns:
      the value of the dmDisplayFlags field.
    • dmNup

      @NativeType("DWORD") public int dmNup()
      Returns:
      the value of the dmNup field.
    • dmDisplayFrequency

      @NativeType("DWORD") public int dmDisplayFrequency()
      Returns:
      the value of the dmDisplayFrequency field.
    • dmICMMethod

      @NativeType("DWORD") public int dmICMMethod()
      Returns:
      the value of the dmICMMethod field.
    • dmICMIntent

      @NativeType("DWORD") public int dmICMIntent()
      Returns:
      the value of the dmICMIntent field.
    • dmMediaType

      @NativeType("DWORD") public int dmMediaType()
      Returns:
      the value of the dmMediaType field.
    • dmDitherType

      @NativeType("DWORD") public int dmDitherType()
      Returns:
      the value of the dmDitherType field.
    • dmReserved1

      @NativeType("DWORD") public int dmReserved1()
      Returns:
      the value of the dmReserved1 field.
    • dmReserved2

      @NativeType("DWORD") public int dmReserved2()
      Returns:
      the value of the dmReserved2 field.
    • dmPanningWidth

      @NativeType("DWORD") public int dmPanningWidth()
      Returns:
      the value of the dmPanningWidth field.
    • dmPanningHeight

      @NativeType("DWORD") public int dmPanningHeight()
      Returns:
      the value of the dmPanningHeight field.
    • dmSpecVersion

      public DEVMODE.Buffer dmSpecVersion(@NativeType("WORD") short value)
      Sets the specified value to the dmSpecVersion field.
    • dmSize

      public DEVMODE.Buffer dmSize(@NativeType("WORD") short value)
      Sets the specified value to the dmSize field.
    • dmDriverExtra

      public DEVMODE.Buffer dmDriverExtra(@NativeType("WORD") short value)
      Sets the specified value to the dmDriverExtra field.