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.-
Nested Class Summary
Nested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newDEVMODE.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionintshortshortdmColor()shortdmCopies()shortintintintintintshortdmDriverExtra(short value) Sets the specified value to thedmDriverExtrafield.shortshortdmDuplex()intdmFields()intintshortintintdmNup()shortintintshortshortshortintintshortintintshortdmScale()shortdmSize()dmSize(short value) Sets the specified value to thedmSizefield.shortdmSpecVersion(short value) Sets the specified value to thedmSpecVersionfield.shortshortMethods inherited from class StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class Pointer.Default
equals, hashCodeMethods inherited from interface NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newDEVMODE.Bufferinstance 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
- Returns:
- a
ByteBufferview of thedmDeviceNamefield.
-
dmDeviceNameString
- Returns:
- the null-terminated string stored in the
dmDeviceNamefield.
-
dmSpecVersion
- Returns:
- the value of the
dmSpecVersionfield.
-
dmDriverVersion
- Returns:
- the value of the
dmDriverVersionfield.
-
dmSize
- Returns:
- the value of the
dmSizefield.
-
dmDriverExtra
- Returns:
- the value of the
dmDriverExtrafield.
-
dmFields
- Returns:
- the value of the
dmFieldsfield.
-
dmOrientation
public short dmOrientation()- Returns:
- the value of the
dmOrientationfield.
-
dmPaperSize
public short dmPaperSize()- Returns:
- the value of the
dmPaperSizefield.
-
dmPaperLength
public short dmPaperLength()- Returns:
- the value of the
dmPaperLengthfield.
-
dmPaperWidth
public short dmPaperWidth()- Returns:
- the value of the
dmPaperWidthfield.
-
dmScale
public short dmScale()- Returns:
- the value of the
dmScalefield.
-
dmCopies
public short dmCopies()- Returns:
- the value of the
dmCopiesfield.
-
dmDefaultSource
public short dmDefaultSource()- Returns:
- the value of the
dmDefaultSourcefield.
-
dmPrintQuality
public short dmPrintQuality()- Returns:
- the value of the
dmPrintQualityfield.
-
dmPosition
-
dmDisplayOrientation
- Returns:
- the value of the
dmDisplayOrientationfield.
-
dmDisplayFixedOutput
- Returns:
- the value of the
dmDisplayFixedOutputfield.
-
dmColor
public short dmColor()- Returns:
- the value of the
dmColorfield.
-
dmDuplex
public short dmDuplex()- Returns:
- the value of the
dmDuplexfield.
-
dmYResolution
public short dmYResolution()- Returns:
- the value of the
dmYResolutionfield.
-
dmTTOption
public short dmTTOption()- Returns:
- the value of the
dmTTOptionfield.
-
dmCollate
public short dmCollate()- Returns:
- the value of the
dmCollatefield.
-
dmFormName
- Returns:
- a
ByteBufferview of thedmFormNamefield.
-
dmFormNameString
- Returns:
- the null-terminated string stored in the
dmFormNamefield.
-
dmLogPixels
- Returns:
- the value of the
dmLogPixelsfield.
-
dmBitsPerPel
- Returns:
- the value of the
dmBitsPerPelfield.
-
dmPelsWidth
- Returns:
- the value of the
dmPelsWidthfield.
-
dmPelsHeight
- Returns:
- the value of the
dmPelsHeightfield.
-
dmDisplayFlags
- Returns:
- the value of the
dmDisplayFlagsfield.
-
dmNup
- Returns:
- the value of the
dmNupfield.
-
dmDisplayFrequency
- Returns:
- the value of the
dmDisplayFrequencyfield.
-
dmICMMethod
- Returns:
- the value of the
dmICMMethodfield.
-
dmICMIntent
- Returns:
- the value of the
dmICMIntentfield.
-
dmMediaType
- Returns:
- the value of the
dmMediaTypefield.
-
dmDitherType
- Returns:
- the value of the
dmDitherTypefield.
-
dmReserved1
- Returns:
- the value of the
dmReserved1field.
-
dmReserved2
- Returns:
- the value of the
dmReserved2field.
-
dmPanningWidth
- Returns:
- the value of the
dmPanningWidthfield.
-
dmPanningHeight
- Returns:
- the value of the
dmPanningHeightfield.
-
dmSpecVersion
Sets the specified value to thedmSpecVersionfield. -
dmSize
Sets the specified value to thedmSizefield. -
dmDriverExtra
Sets the specified value to thedmDriverExtrafield.
-